Subversion Repositories tpanel

Rev

Rev 404 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 404 Rev 408
Line 369... Line 369...
369
             */
369
             */
370
            int getHeight() { return ht; }
370
            int getHeight() { return ht; }
371
            /**
371
            /**
372
             * Returns the left position in pixels.
372
             * Returns the left position in pixels.
373
             */
373
             */
374
            int getLeftPosition() { return lt; }
374
            int getLeftPosition() { return mPosLeft; }
375
            /**
375
            /**
376
             * Returns the top position of the button in pixels.
376
             * Returns the top position of the button in pixels.
377
             */
377
             */
-
 
378
            int getTopPosition() { return mPosTop; }
-
 
379
            /**
-
 
380
             * Returns the original left position.
-
 
381
             */
-
 
382
            int getLeftOriginPosition() { return lt; }
-
 
383
            /**
-
 
384
             * Returns the original top position.
-
 
385
             */
378
            int getTopPosition() { return tp; }
386
            int getTopOriginPosition() { return tp; }
379
            /**
387
            /**
380
             * Returns the Z-order. This number marks the order the buttons
388
             * Returns the Z-order. This number marks the order the buttons
381
             * are drawed on the screen. Inside a page or subpage the buttons
389
             * are drawed on the screen. Inside a page or subpage the buttons
382
             * are always sorted.
390
             * are always sorted.
383
             */
391
             */
Line 520... Line 528...
520
            void setTop(int top);
528
            void setTop(int top);
521
            void setLeft(int left);
529
            void setLeft(int left);
522
            void setLeftTop(int left, int top);
530
            void setLeftTop(int left, int top);
523
            void setRectangle(int left, int top, int right, int bottom);
531
            void setRectangle(int left, int top, int right, int bottom);
524
            void getRectangle(int *left, int *top, int *height, int *width);
532
            void getRectangle(int *left, int *top, int *height, int *width);
-
 
533
            void resetButton();
525
            void setResourceName(const std::string& name, int instance);
534
            void setResourceName(const std::string& name, int instance);
526
            int getBitmapJustification(int *x, int *y, int instance);
535
            int getBitmapJustification(int *x, int *y, int instance);
527
            void setBitmapJustification(int j, int x, int y, int instance);
536
            void setBitmapJustification(int j, int x, int y, int instance);
528
            int getIconJustification(int *x, int *y, int instance);
537
            int getIconJustification(int *x, int *y, int instance);
529
            void setIconJustification(int j, int x, int y, int instance);
538
            void setIconJustification(int j, int x, int y, int instance);
Line 1383... Line 1392...
1383
            int mCursorPosition{0}; // The cursor position if this is of type TEXT_INPUT
1392
            int mCursorPosition{0}; // The cursor position if this is of type TEXT_INPUT
1384
            bool mHasFocus{false};  // If this is of type TEXT_INPUT this holds the focus state
1393
            bool mHasFocus{false};  // If this is of type TEXT_INPUT this holds the focus state
1385
            std::string dummy;      // dummy string used to return an empty string.
1394
            std::string dummy;      // dummy string used to return an empty string.
1386
            std::string mPassword;  // Contains the last typed password (askPassword()).
1395
            std::string mPassword;  // Contains the last typed password (askPassword()).
1387
            std::string mUser;      // If this contains a user name contained in the User Password list, the user is asked for a password.
1396
            std::string mUser;      // If this contains a user name contained in the User Password list, the user is asked for a password.
-
 
1397
            int mPosLeft{0};        // The actual left position of the button
-
 
1398
            int mPosTop{0};         // The actual top position of the button
-
 
1399
            int mWidthOrig{0};      // The original width
-
 
1400
            int mHeightOrig{0};     // The original height
1388
    };
1401
    };
1389
 
1402
 
1390
    typedef struct BUTTONS_T
1403
    typedef struct BUTTONS_T
1391
    {
1404
    {
1392
        TButton *button{nullptr};
1405
        TButton *button{nullptr};