HPL3/Amnesia: Rebirth/Scripting/cWidgetContextMenu
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 GetArrowOffset
- 3.9 GetCallbacksDisabled
- 3.10 GetCheckOffset
- 3.11 GetChildrenOffset
- 3.12 GetClipActive
- 3.13 GetColorMul
- 3.14 GetDefaultFontColor
- 3.15 GetDefaultFontSize
- 3.16 GetDefaultFontType
- 3.17 GetFocusNavigation
- 3.18 GetGlobalPosition
- 3.19 GetHighlightedItem
- 3.20 GetLocalPosition
- 3.21 GetMenuItemWidth
- 3.22 GetMouseIsOver
- 3.23 GetName
- 3.24 GetParent
- 3.25 GetParentItem
- 3.26 GetParentMenu
- 3.27 GetPointerGfx
- 3.28 GetScrollAmount
- 3.29 GetSet
- 3.30 GetSize
- 3.31 GetText
- 3.32 GetTextOffset
- 3.33 GetToolTip
- 3.34 GetToolTipWidget
- 3.35 GetTopMostMenu
- 3.36 GetType
- 3.37 GetUserValue
- 3.38 HasFocus
- 3.39 HasFocusNavigation
- 3.40 Hide
- 3.41 Init
- 3.42 IsConnectedTo
- 3.43 IsConnectedToChildren
- 3.44 IsEnabled
- 3.45 IsGlobalKeyPressListener
- 3.46 IsGlobalUIInputListener
- 3.47 IsRightUnderMouse
- 3.48 IsSubmenuOpen
- 3.49 IsVisible
- 3.50 PointIsInside
- 3.51 ProcessMessage
- 3.52 RemoveChild
- 3.53 SavePrevAttentionWidget
- 3.54 SetAffectedByScroll
- 3.55 SetArrowPos
- 3.56 SetCallbacksDisabled
- 3.57 SetCheckPos
- 3.58 SetChildrenOffset
- 3.59 SetClipActive
- 3.60 SetColorMul
- 3.61 SetConnectedToChildren
- 3.62 SetDefaultFontColor
- 3.63 SetDefaultFontSize
- 3.64 SetDefaultFontType
- 3.65 SetEnabled
- 3.66 SetFocusNavigation
- 3.67 SetGlobalKeyPressListener
- 3.68 SetGlobalPosition
- 3.69 SetGlobalUIInputListener
- 3.70 SetHighlightedItem
- 3.71 SetMustHide
- 3.72 SetName
- 3.73 SetParentItem
- 3.74 SetPosition
- 3.75 SetPrevAttention
- 3.76 SetScrollAmount
- 3.77 SetSize
- 3.78 SetText
- 3.79 SetTextPos
- 3.80 SetToolTip
- 3.81 SetToolTipEnabled
- 3.82 SetUserValue
- 3.83 SetVisible
- 3.84 Update
- 4 References
Fields
cWidgetContextMenu has no public fields.
Functions
Details
AddMenuItem
cWidgetMenuItem@ AddMenuItem(const tWString &in asText)
Parameters
- asText (tWString) —
Returns:
- cWidgetMenuItem@—
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—
GetArrowOffset
const cVector3f& GetArrowOffset()
Returns:
- const cVector3f&—
GetCallbacksDisabled
bool GetCallbacksDisabled()
Returns:
- bool—
GetCheckOffset
const cVector3f& GetCheckOffset()
Returns:
- const cVector3f&—
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&—
GetHighlightedItem
cWidgetMenuItem@ GetHighlightedItem()
Returns:
- cWidgetMenuItem@—
GetLocalPosition
const cVector3f& GetLocalPosition()
Returns:
- const cVector3f&—
GetMenuItemWidth
float GetMenuItemWidth()
Returns:
- float—
GetMouseIsOver
bool GetMouseIsOver()
Returns:
- bool—
GetName
const tString& GetName()
Returns:
- const tString&—
GetParent
iWidget@ GetParent()
Returns:
- iWidget@—
GetParentItem
cWidgetMenuItem@ GetParentItem()
Returns:
- cWidgetMenuItem@—
GetParentMenu
iWidgetMenu@ GetParentMenu()
Returns:
- iWidgetMenu@—
GetPointerGfx
cGuiGfxElement@ GetPointerGfx()
Returns:
- cGuiGfxElement@—
GetScrollAmount
const cVector3f& GetScrollAmount()
Returns:
- const cVector3f&—
GetSet
cGuiSet@ GetSet()
Returns:
- cGuiSet@—
GetSize
const cVector2f& GetSize()
Returns:
- const cVector2f&—
GetText
const tWString& GetText()
Returns:
- const tWString&—
GetTextOffset
const cVector3f& GetTextOffset()
Returns:
- const cVector3f&—
GetToolTip
const tWString& GetToolTip()
Returns:
- const tWString&—
GetToolTipWidget
iWidget@ GetToolTipWidget()
Returns:
- iWidget@—
GetTopMostMenu
iWidgetMenu@ GetTopMostMenu()
Returns:
- iWidgetMenu@—
GetType
eWidgetType GetType()
Returns:
- eWidgetType—
GetUserValue
int GetUserValue()
Returns:
- int—
HasFocus
bool HasFocus()
Returns:
- bool—
bool HasFocusNavigation()
Returns:
- bool—
Hide
void Hide()
Returns:
- void
Init
void Init()
Returns:
- void
IsConnectedTo
bool IsConnectedTo(iWidget@ apWidget,
bool abIsStartWidget = true)
Parameters
- apWidget (iWidget@) —
- abIsStartWidget (bool) —
Returns:
- bool—
IsConnectedToChildren
bool IsConnectedToChildren()
Returns:
- bool—
IsEnabled
bool IsEnabled()
Returns:
- bool—
IsGlobalKeyPressListener
bool IsGlobalKeyPressListener()
Returns:
- bool—
IsGlobalUIInputListener
bool IsGlobalUIInputListener()
Returns:
- bool—
IsRightUnderMouse
bool IsRightUnderMouse()
Returns:
- bool—
bool IsSubmenuOpen()
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
SavePrevAttentionWidget
void SavePrevAttentionWidget()
Returns:
- void
SetAffectedByScroll
void SetAffectedByScroll(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetArrowPos
SetCallbacksDisabled
void SetCallbacksDisabled(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetCheckPos
SetChildrenOffset
SetClipActive
void SetClipActive(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetColorMul
SetConnectedToChildren
void SetConnectedToChildren(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
SetHighlightedItem
void SetHighlightedItem(cWidgetMenuItem@ apItem)
Parameters
- apItem (cWidgetMenuItem@) —
Returns:
- void
SetMustHide
void SetMustHide(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetName
SetParentItem
void SetParentItem(cWidgetMenuItem@ apParentItem)
Parameters
- apParentItem (cWidgetMenuItem@) —
Returns:
- void
SetPosition
SetPrevAttention
SetScrollAmount
SetSize
SetText
SetTextPos
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