GuiFormCtrl

Engine/source/gui/containers/guiFormCtrl.h

More...

Callbacks

DECLARE_CALLBACK(void , onResize , () )

Private Types

Parent 

Private Static Functions

bool
_setHasMenu(void * object, const char * index, const char * data)

Public Functions

bool

Return true if this set accepts the given object as a child.

addObject(SimObject * object)

Add the given object to the set.

onRender(Point2I offset, const RectI & updateRect)

Called when this control is to render itself.

Called when this object is asked to sleep.

bool

Called when this object is asked to wake up returns true if it's actually awake at the end.

Remove the given object from the set.

bool
resize(const Point2I & newPosition, const Point2I & newExtent)

Changes the size and/or position of this control.

setCaption(const char * caption)
setHasMenu(bool value)

Public Static Functions

Detailed Description

Callbacks

DECLARE_CALLBACK(void , onResize , () )

Private Types

typedef GuiPanel Parent 

Private Attributes

bool mCanMove 
String mCaption 
RectI mCloseButton 
StringTableEntry mContent 
StringTableEntry mContentLibrary 
bool mDepressed 
Resource< GFont > mFont 
bool mHasMenu 
RectI mMaximizeButton 
GuiMenuBar * mMenuBar 
RectI mMinimizeButton 
Point2I mMouseDownPosition 
bool mMouseMovingWin 
bool mMouseOver 
RectI mOrigBounds 
String mSmallCaption 
RectI mStandardBounds 
Point2I mThumbSize 
bool mUseSmallCaption 

Private Static Functions

_setHasMenu(void * object, const char * index, const char * data)

Public Functions

GuiFormCtrl()

~GuiFormCtrl()

acceptsAsChild(SimObject * object)

Reimplemented from: GuiControl

addObject(SimObject * object)

Reimplemented from: GuiContainer

DECLARE_CONOBJECT(GuiFormCtrl )

getMenuBarID()

onMouseDown(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseEnter(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseLeave(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseMove(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseUp(const GuiEvent & event)

Reimplemented from: GuiControl

onRender(Point2I offset, const RectI & updateRect)

Reimplemented from: GuiControl

onSleep()

Reimplemented from: GuiControl

onWake()

Reimplemented from: GuiControl

removeObject(SimObject * object)

Reimplemented from: GuiContainer

resize(const Point2I & newPosition, const Point2I & newExtent)

Reimplemented from: GuiContainer

setCaption(const char * caption)

setHasMenu(bool value)

Public Static Functions

initPersistFields()