class
GUIDropDownMenu
Inherits:
GUIWidget
This is a generic GUI drop down box class that can be used for: list boxes, menu bars or context menus.
Public
Constructors
GUIDropDownMenu
GUIDropDownMenu(const HSceneObject &parent, const DropDownBoxCreateInformation &createInformation, GUIDropDownType type)
Creates a new drop down box widget.
- parent
- Parent scene object to attach the drop down box to.
- createInformation
- Various parameters that control the drop down menu features and content.
- type
- Specific type of drop down box to display.
Private
Methods
NotifySubMenuOpened
void NotifySubMenuOpened(DropDownSubMenu *subMenu)
Called when the specified sub-menu is opened.
NotifySubMenuClosed
void NotifySubMenuClosed(DropDownSubMenu *subMenu)
Called when the specified sub-menu is opened.
DropDownFocusLost
void DropDownFocusLost()
Called when the drop down box loses focus (and should be closed).
OnCreated
void OnCreated() override
Called once when the component has been created.
Called regardless of the state the component is in.
OnDestroyed
void OnDestroyed() override
Called once just before the component is destroyed.
Called regardless of the state the component is in.
Fields
mMenuCreateInformation
DropDownBoxCreateInformation mMenuCreateInformation
mType
GUIDropDownType mType
mBackgroundFramePadding
RectOffset mBackgroundFramePadding
mScrollbarWidth
GUILogicalUnit mScrollbarWidth
mScrollButtonHeight
GUILogicalUnit mScrollButtonHeight
mRootMenu
DropDownSubMenu * mRootMenu
mFrontHitBox
GUIDropDownHitBox * mFrontHitBox
mBackHitBox
GUIDropDownHitBox * mBackHitBox
mCaptureHitBox
GUIDropDownHitBox * mCaptureHitBox
mAdditionalCaptureBounds
Vector<GUIPhysicalArea> mAdditionalCaptureBounds