#include <SizableWindow.h>
Inheritance diagram for OglGui::SizableWindow:
Public Types | |
enum | ActionBits { North = 1, East = 2, NorthEast = 3, South = 4, NorthSouth = 5, SouthEast = 6, West = 8, NorthWest = 9, EastWest = 10, SouthWest = 12, Move = 16, AllDir = 15 } |
Public Member Functions | |
SizableWindow (Window *parent, int w, int h, bool is2D=true) | |
SizableWindow (Window *parent, int x, int y, int w, int h, bool is2D=true) | |
bool | IsTopWindowInParent () |
virtual void | BringToFront () |
virtual void | DisplayFunc () |
virtual void | MouseFunc (int msg, int but, int state, int x, int y) |
This function is called by the event handling system everytime the user has moved or clicked the mouse. | |
void | ActOnModifier (int state) |
int | ActOnModifier () |
void | SetToFrontOnMouseDown (bool m=true) |
void | SetHighLightBorderType (int type) |
void | SetAllowHighlight (bool mode) |
void | SetHighLightInset (int inset) |
void | SetAllowMove (bool mode) |
bool | GetAllowMove () |
void | SetMoveFeedback (bool mode) |
void | SetMoveCursor (int nr) |
virtual void | SetBorderType (int type) |
void | SetMinMaxXY (int minX, int maxX, int minY, int maxY) |
void | SetMinMaxSizes (int minW, int maxW, int minH, int maxH) |
void | SetAllowMoveDirections (int bits, bool mode=true) |
void | SetAllowSizeDirections (int bits, bool mode=true) |
Protected Member Functions | |
void | SetActionCursor (int action) |
int | GetAction (int x, int y) |
bool | ClampMinMax (int &nX, int &nY, int &nW, int &nH) |
void | CheckMinMax (int action, int &nX, int &nY, int &nW, int &nH) |
void | PerformAction (int x, int y) |
Protected Attributes | |
int | mAction |
int | mHighLightBorderType |
int | mNormalBorderType |
int | mMoveCursorNr |
bool | mMoveFeedback |
bool | mToFrontOnMouseDown |
bool | mAllowHighLight |
bool | mAllowMove |
bool | mAllowSizeNorth |
bool | mAllowSizeEast |
bool | mAllowSizeSouth |
bool | mAllowSizeWest |
bool | mAllowMoveHor |
bool | mAllowMoveVert |
bool | mHighLight |
int | mActOnModifier |
int | mHighLightInset |
int | mSensePix |
int | mDx |
int | mDy |
int | mMinX |
int | mMinY |
int | mMaxX |
int | mMaxY |
int | mMinW |
int | mMaxW |
int | mMinH |
int | mMaxH |
Private Member Functions | |
void | Init () |
Definition at line 21 of file SizableWindow.h.