Ignore:
Timestamp:
02/16/13 09:44:59 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added support for moving and resizing the message area

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/plugin/src/xplra/MessageWindow.h

    r47 r48  
    6868                                        XPLMMouseStatus mouse, void* refCon);
    6969
     70
     71    /**
     72     * The minimal width of the message area.
     73     */
     74    static const int minimalWidth = 150;
     75
     76    /**
     77     * The size of the resize sensitivity area.
     78     */
     79    static const int resizeArea = 50;
     80
    7081private:
    7182    /**
     
    119130     */
    120131    float hideTime;
     132
     133    /**
     134     * The mouse mode
     135     */
     136    enum {
     137        // Move the message area
     138        MOUSE_MOVE,
     139
     140        // Resize the message area from the left
     141        MOUSE_RESIZE_LEFT,
     142
     143        // Resize the message area from the right.
     144        MOUSE_RESIZE_RIGHT
     145    } mouseMode;
     146
     147    /**
     148     * The X-coordinate where the window was clicked.
     149     */
     150    int clickedX;
     151
     152    /**
     153     * The Y-coordinate where the window was clicked.
     154     */
     155    int clickedY;
    121156
    122157    /**
Note: See TracChangeset for help on using the changeset viewer.