HPL3/Amnesia: Rebirth/Scripting/cWidgetMenuItem
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
- 1 Fields
- 2 Functions
- 3 Details
- 3.1 AddMenuItem
- 3.2 AddSeparator
- 3.3 AddShortcut
- 3.4 AttachChild
- 3.5 CenterGlobalPositionInSet
- 3.6 ClearMenuItems
- 3.7 ClipsGraphics
- 3.8 GetCallbacksDisabled
- 3.9 GetChildMenu
- 3.10 GetChildrenOffset
- 3.11 GetClipActive
- 3.12 GetColorMul
- 3.13 GetDefaultFontColor
- 3.14 GetDefaultFontSize
- 3.15 GetDefaultFontType
- 3.16 GetFocusNavigation
- 3.17 GetGlobalPosition
- 3.18 GetLocalPosition
- 3.19 GetMouseIsOver
- 3.20 GetName
- 3.21 GetParent
- 3.22 GetParentMenu
- 3.23 GetPointerGfx
- 3.24 GetScrollAmount
- 3.25 GetSet
- 3.26 GetShortcutText
- 3.27 GetSize
- 3.28 GetText
- 3.29 GetTextLength
- 3.30 GetToolTip
- 3.31 GetToolTipWidget
- 3.32 GetType
- 3.33 GetUserValue
- 3.34 HasFocus
- 3.35 HasFocusNavigation
- 3.36 Init
- 3.37 IsChecked
- 3.38 IsConnectedTo
- 3.39 IsConnectedToChildren
- 3.40 IsDefault
- 3.41 IsEnabled
- 3.42 IsGlobalKeyPressListener
- 3.43 IsGlobalUIInputListener
- 3.44 IsMenuOpen
- 3.45 IsParent
- 3.46 IsRightUnderMouse
- 3.47 IsSeparator
- 3.48 IsVisible
- 3.49 PointIsInside
- 3.50 ProcessMessage
- 3.51 RemoveChild
- 3.52 SetAffectedByScroll
- 3.53 SetCallbacksDisabled
- 3.54 SetChecked
- 3.55 SetChildrenOffset
- 3.56 SetClipActive
- 3.57 SetColorMul
- 3.58 SetConnectedToChildren
- 3.59 SetDefault
- 3.60 SetDefaultFontColor
- 3.61 SetDefaultFontSize
- 3.62 SetDefaultFontType
- 3.63 SetEnabled
- 3.64 SetFocusNavigation
- 3.65 SetGlobalKeyPressListener
- 3.66 SetGlobalPosition
- 3.67 SetGlobalUIInputListener
- 3.68 SetName
- 3.69 SetPosition
- 3.70 SetScrollAmount
- 3.71 SetSize
- 3.72 SetText
- 3.73 SetToolTip
- 3.74 SetToolTipEnabled
- 3.75 SetUserValue
- 3.76 SetVisible
- 3.77 Update
- 4 References
Fields
cWidgetMenuItem has no public fields.
Functions
Details
AddMenuItem
AddSeparator
void AddSeparator()
Returns:
- void
AddShortcut
cGuiGlobalShortcut@ AddShortcut(int alKeyModifiers,
eKey aKey,
eGuiMessage aMsg = eGuiMessage_ButtonPressed,
const cGuiMessageData &in aData = cGuiMessageData,
bool abBypassVisibility = true,
bool abBypassEnabled = true)
Parameters
- alKeyModifiers (int) —
- aKey (eKey) —
- aMsg (eGuiMessage) —
- aData (cGuiMessageData) —
- abBypassVisibility (bool) —
- abBypassEnabled (bool) —
Returns:
- cGuiGlobalShortcut@—
AttachChild
CenterGlobalPositionInSet
void CenterGlobalPositionInSet()
Returns:
- void
ClearMenuItems
void ClearMenuItems()
Returns:
- void
ClipsGraphics
bool ClipsGraphics()
Returns:
- bool—
GetCallbacksDisabled
bool GetCallbacksDisabled()
Returns:
- bool—
GetChildMenu
iWidgetMenu@ GetChildMenu()
Returns:
- iWidgetMenu@—
GetChildrenOffset
const cVector3f& GetChildrenOffset()
Returns:
- const cVector3f&—
GetClipActive
bool GetClipActive()
Returns:
- bool—
GetColorMul
const cColor& GetColorMul()
Returns:
- const cColor&—
GetDefaultFontColor
const cColor& GetDefaultFontColor()
Returns:
- const cColor&—
GetDefaultFontSize
const cVector2f& GetDefaultFontSize()
Returns:
- const cVector2f&—
GetDefaultFontType
iFontData@ GetDefaultFontType()
Returns:
- iFontData@—
GetGlobalPosition
const cVector3f& GetGlobalPosition()
Returns:
- const cVector3f&—
GetLocalPosition
const cVector3f& GetLocalPosition()
Returns:
- const cVector3f&—
GetMouseIsOver
bool GetMouseIsOver()
Returns:
- bool—
GetName
const tString& GetName()
Returns:
- const tString&—
GetParent
iWidget@ GetParent()
Returns:
- iWidget@—
GetParentMenu
iWidgetMenu@ GetParentMenu()
Returns:
- iWidgetMenu@—
GetPointerGfx
cGuiGfxElement@ GetPointerGfx()
Returns:
- cGuiGfxElement@—
GetScrollAmount
const cVector3f& GetScrollAmount()
Returns:
- const cVector3f&—
GetSet
cGuiSet@ GetSet()
Returns:
- cGuiSet@—
GetShortcutText
const tWString& GetShortcutText()
Returns:
- const tWString&—
GetSize
const cVector2f& GetSize()
Returns:
- const cVector2f&—
GetText
const tWString& GetText()
Returns:
- const tWString&—
GetTextLength
float GetTextLength()
Returns:
- float—
GetToolTip
const tWString& GetToolTip()
Returns:
- const tWString&—
GetToolTipWidget
iWidget@ GetToolTipWidget()
Returns:
- iWidget@—
GetType
eWidgetType GetType()
Returns:
- eWidgetType—
GetUserValue
int GetUserValue()
Returns:
- int—
HasFocus
bool HasFocus()
Returns:
- bool—
bool HasFocusNavigation()
Returns:
- bool—
Init
void Init()
Returns:
- void
IsChecked
bool IsChecked()
Returns:
- bool—
IsConnectedTo
bool IsConnectedTo(iWidget@ apWidget,
bool abIsStartWidget = true)
Parameters
- apWidget (iWidget@) —
- abIsStartWidget (bool) —
Returns:
- bool—
IsConnectedToChildren
bool IsConnectedToChildren()
Returns:
- bool—
IsDefault
bool IsDefault()
Returns:
- bool—
IsEnabled
bool IsEnabled()
Returns:
- bool—
IsGlobalKeyPressListener
bool IsGlobalKeyPressListener()
Returns:
- bool—
IsGlobalUIInputListener
bool IsGlobalUIInputListener()
Returns:
- bool—
IsMenuOpen
bool IsMenuOpen()
Returns:
- bool—
IsParent
bool IsParent()
Returns:
- bool—
IsRightUnderMouse
bool IsRightUnderMouse()
Returns:
- bool—
IsSeparator
bool IsSeparator()
Returns:
- bool—
IsVisible
bool IsVisible()
Returns:
- bool—
PointIsInside
bool PointIsInside(const cVector2f &in avPoint,
bool abOnlyClipped)
Parameters
- avPoint (cVector2f) —
- abOnlyClipped (bool) —
Returns:
- bool—
ProcessMessage
bool ProcessMessage(eGuiMessage aMessage,
const cGuiMessageData &in aData,
bool abSkipVisCheck = false,
bool abSkipEnabledCheck = false)
Parameters
- aMessage (eGuiMessage) —
- aData (cGuiMessageData) —
- abSkipVisCheck (bool) —
- abSkipEnabledCheck (bool) —
Returns:
- bool—
RemoveChild
SetAffectedByScroll
void SetAffectedByScroll(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetCallbacksDisabled
void SetCallbacksDisabled(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetChecked
void SetChecked(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetChildrenOffset
SetClipActive
void SetClipActive(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetColorMul
SetConnectedToChildren
void SetConnectedToChildren(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetDefault
void SetDefault(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetDefaultFontColor
SetDefaultFontSize
SetDefaultFontType
SetEnabled
void SetEnabled(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetGlobalKeyPressListener
void SetGlobalKeyPressListener(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetGlobalPosition
SetGlobalUIInputListener
void SetGlobalUIInputListener(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetName
SetPosition
SetScrollAmount
SetSize
SetText
SetToolTip
SetToolTipEnabled
void SetToolTipEnabled(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetUserValue
void SetUserValue(int alX)
Parameters
- alX (int) —
Returns:
- void
SetVisible
void SetVisible(bool abX)
Parameters
- abX (bool) —
Returns:
- void
Update
void Update(float afTimeStep)
Parameters
- afTimeStep (float) —
Returns:
- void