#include <AGUI2MenuGrid.h>
Public Types | |
| enum | ACTIONFLAGS_ : ACTIONFLAGS { ACTIONFLAGS_NONE = 0 , ACTIONFLAGS_UP = ( 1U << ( 0 ) ) , ACTIONFLAGS_DOWN = ( 1U << ( 1 ) ) , ACTIONFLAGS_LEFT = ( 1U << ( 2 ) ) , ACTIONFLAGS_RIGHT = ( 1U << ( 3 ) ) , ACTIONFLAGS_OK = ( 1U << ( 4 ) ) , ACTIONFLAGS_CANCEL = ( 1U << ( 5 ) ) , ACTIONFLAGS_MOUSEUPDATED = ( 1U << ( 6 ) ) } |
| using | ACTIONFLAGS = TUINT32 |
| using | ActivateCallback = void ( * )( void* a_pUserData, AGUI2MenuGridItem* a_pItem ) |
| using | FocusCallback = void ( * )( void* a_pUserData, AGUI2MenuGridItem* a_pOldFocus, AGUI2MenuGridItem* a_pNewFocus ) |
Public Types inherited from AGUI2Element | |
| using | t_PostRender = void ( * )() |
Public Member Functions | |
| AGUI2MenuGrid () | |
| ~AGUI2MenuGrid () | |
| TBOOL | CreateGrid (TINT a_iNumColumns, TINT a_iNumRows, TFLOAT a_fColumnGap, TFLOAT a_fRowGap) |
| void | Update (TFLOAT a_fDeltaTime) |
| TBOOL | ProcessInputEvent (const Toshi::TInputInterface::InputEvent *a_pEvent) |
| TBOOL | ProcessInputCommand (AInputCommand a_eCommand, const Toshi::TInputInterface::InputEvent *a_pEvent) |
| void | AddMenuGridItem (AGUI2MenuGridItem &a_rMenuItem) |
| void | SetFocusAt (AGUI2MenuGridItem *a_pMenuItem) |
| void | ReflowChildren () |
| TBOOL | TriggerButtonPress (AGUI2MenuGridItem &a_rMenuItem) |
| void | SetMouseStateDirty () |
| AGUI2MenuGridItem * | GetFocusedMenuItem () const |
| AGUI2MenuGridItem * | GetHoveredMenuItem () const |
| AGUI2MenuGridItem * | GetLastMenuItem () const |
| void | SetCallbackUserData (void *a_pUserData) |
| void | SetItemActivationCallback (ActivateCallback a_fnCallback) |
| void | SetItemFocusCallback (FocusCallback a_fnCallback) |
| void | SetFocusSound (ASoundId a_eSound) |
| void | SetSelectSound (ASoundId a_eSound) |
| void | SetBackSound (ASoundId a_eSound) |
| void | BlockActivation (TBOOL a_bBlock) |
Public Member Functions inherited from AGUI2Element | |
| AGUI2Element () | |
| virtual | ~AGUI2Element ()=default |
| virtual void | Tick (TFLOAT a_fDeltaTime) |
| virtual void | PreRender () |
| virtual void | Render () |
| virtual void | PostRender () |
| virtual void | GetDimensions (TFLOAT &a_rWidth, TFLOAT &a_rHeight) |
| virtual TFLOAT | GetWidth () |
| virtual TFLOAT | GetHeight () |
| virtual void | SetWidth (TFLOAT a_fWidth) |
| virtual void | SetHeight (TFLOAT a_fHeight) |
| virtual void | SetDimensions (TFLOAT a_fWidth, TFLOAT a_fHeight) |
| virtual void | GetMins (TFLOAT &a_fX, TFLOAT &a_fY) |
| virtual void | GetMaxs (TFLOAT &a_fX, TFLOAT &a_fY) |
| virtual void | SetColour (TUINT32 a_uiColour) |
| virtual void | SetAlpha (TFLOAT a_fAlpha) |
| virtual void | SetShadowAlpha (TFLOAT a_fAlpha) |
| virtual void | SetFocus (TBOOL a_bFocused) |
| virtual TBOOL | IsPointInside (TFLOAT a_fX, TFLOAT a_fY) |
| void | AnchorPos (TFLOAT &a_rX, TFLOAT &a_rY, TFLOAT a_fWidth, TFLOAT a_fHeight) |
| void | PivotPos (TFLOAT &a_rX, TFLOAT &a_rY, TFLOAT a_fWidth, TFLOAT a_fHeight) |
| void | GetScreenTransform (AGUI2Transform &a_rOutTransform) |
| void | GetInvScreenTransform (AGUI2Transform &a_rOutTransform) |
| void | Show () |
| void | Hide () |
| void | SetInFront () |
| void | SetRenderBeforeChildren () |
| TBOOL | HasFlags (TUINT32 a_uiFlags) const |
| TBOOL | IsVisible () const |
| TBOOL | IsFocused () const |
| TBOOL | ShouldRenderBeforeChildren () |
| TBOOL | IsInFront () const |
| TFLOAT | GetAlpha () const |
| void | AddChildTail (AGUI2Element &a_rElement) |
| void | AddChildHead (AGUI2Element &a_rElement) |
| void | SetTranslation (TFLOAT a_fX, TFLOAT a_fY) |
| void | SetTranslation (const Toshi::TVector2 &a_rTranslation) |
| void | SetTransform (TFLOAT a_fX, TFLOAT a_fY, float a_fRotAngle=0.0f) |
| void | SetAnchor (AGUI2ATTACHMENT a_eAnchor) |
| void | SetPivot (AGUI2ATTACHMENT a_ePivot) |
| void | SetAttachment (AGUI2ATTACHMENT a_eAnchor, AGUI2ATTACHMENT a_ePivot) |
| t_PostRender | SetPostRenderCallback (t_PostRender a_cbNewCallback) |
| AGUI2Transform & | GetTransform () |
| AGUI2Element * | ChildBegin () const |
| AGUI2Element * | ChildRBegin () const |
| AGUI2Element * | GetNextChild (AGUI2Element *a_pCurrentChild) |
| AGUI2Element * | GetPrevChild (AGUI2Element *a_pCurrentChild) |
| void | RemoveSelf () |
| void | LinkChildBefore (AGUI2Element &a_rNewChildren, AGUI2Element &a_rInsertAfter) |
Public Member Functions inherited from AGUI2ElementNode | |
| AGUI2ElementNode () | |
| virtual | ~AGUI2ElementNode () |
| void | Unlink () |
| void | LinkAfter (AGUI2ElementNode &a_rNode) |
| void | LinkBefore (AGUI2ElementNode &a_rNode) |
| TBOOL | IsLinked () const |
| AGUI2ElementNode * | GetNext () const |
| AGUI2ElementNode * | GetPrev () const |
Additional Inherited Members | |
Public Attributes inherited from AGUI2ElementNode | |
| friend | AGUI2Element |
Static Public Attributes inherited from AGUI2Element | |
| static TUINT32 | s_uiVisibilityMask = 0xFFFFFFFF |
Protected Attributes inherited from AGUI2Element | |
| AGUI2Element * | m_pParent |
| AGUI2Transform | m_oTransform |
| AGUI2ElementNode | m_Children |
| AGUI2ATTACHMENT | m_eAnchor |
| AGUI2ATTACHMENT | m_ePivot |
| TFLOAT | m_fWidth |
| TFLOAT | m_fHeight |
| TUINT32 | m_uiColour |
| TUINT32 | m_eFlags |
| t_PostRender | m_cbPostRender |
| TUINT32 | m_uiVisibilityMask |
Protected Attributes inherited from AGUI2ElementNode | |
| AGUI2ElementNode * | m_pNext |
| AGUI2ElementNode * | m_pPrev |
Definition at line 8 of file AGUI2MenuGrid.h.
| using AGUI2MenuGrid::ACTIONFLAGS = TUINT32 |
Definition at line 11 of file AGUI2MenuGrid.h.
| using AGUI2MenuGrid::ActivateCallback = void ( * )( void* a_pUserData, AGUI2MenuGridItem* a_pItem ) |
Definition at line 24 of file AGUI2MenuGrid.h.
| using AGUI2MenuGrid::FocusCallback = void ( * )( void* a_pUserData, AGUI2MenuGridItem* a_pOldFocus, AGUI2MenuGridItem* a_pNewFocus ) |
Definition at line 25 of file AGUI2MenuGrid.h.
| Enumerator | |
|---|---|
| ACTIONFLAGS_NONE | |
| ACTIONFLAGS_UP | |
| ACTIONFLAGS_DOWN | |
| ACTIONFLAGS_LEFT | |
| ACTIONFLAGS_RIGHT | |
| ACTIONFLAGS_OK | |
| ACTIONFLAGS_CANCEL | |
| ACTIONFLAGS_MOUSEUPDATED | |
Definition at line 12 of file AGUI2MenuGrid.h.
| AGUI2MenuGrid::AGUI2MenuGrid | ( | ) |
Definition at line 18 of file AGUI2MenuGrid.cpp.
| AGUI2MenuGrid::~AGUI2MenuGrid | ( | ) |
Definition at line 49 of file AGUI2MenuGrid.cpp.
| void AGUI2MenuGrid::AddMenuGridItem | ( | AGUI2MenuGridItem & | a_rMenuItem | ) |
Definition at line 55 of file AGUI2MenuGrid.cpp.
|
inline |
Definition at line 60 of file AGUI2MenuGrid.h.
| TBOOL AGUI2MenuGrid::CreateGrid | ( | TINT | a_iNumColumns, |
| TINT | a_iNumRows, | ||
| TFLOAT | a_fColumnGap, | ||
| TFLOAT | a_fRowGap ) |
Definition at line 165 of file AGUI2MenuGrid.cpp.
|
inline |
Definition at line 48 of file AGUI2MenuGrid.h.
|
inline |
Definition at line 49 of file AGUI2MenuGrid.h.
|
inline |
Definition at line 50 of file AGUI2MenuGrid.h.
| TBOOL AGUI2MenuGrid::ProcessInputCommand | ( | AInputCommand | a_eCommand, |
| const Toshi::TInputInterface::InputEvent * | a_pEvent ) |
Definition at line 264 of file AGUI2MenuGrid.cpp.
| TBOOL AGUI2MenuGrid::ProcessInputEvent | ( | const Toshi::TInputInterface::InputEvent * | a_pEvent | ) |
Definition at line 248 of file AGUI2MenuGrid.cpp.
| void AGUI2MenuGrid::ReflowChildren | ( | ) |
Definition at line 88 of file AGUI2MenuGrid.cpp.
|
inline |
Definition at line 58 of file AGUI2MenuGrid.h.
|
inline |
Definition at line 52 of file AGUI2MenuGrid.h.
| void AGUI2MenuGrid::SetFocusAt | ( | AGUI2MenuGridItem * | a_pMenuItem | ) |
Definition at line 77 of file AGUI2MenuGrid.cpp.
|
inline |
Definition at line 56 of file AGUI2MenuGrid.h.
|
inline |
Definition at line 53 of file AGUI2MenuGrid.h.
|
inline |
Definition at line 54 of file AGUI2MenuGrid.h.
|
inline |
Definition at line 46 of file AGUI2MenuGrid.h.
|
inline |
Definition at line 57 of file AGUI2MenuGrid.h.
| TBOOL AGUI2MenuGrid::TriggerButtonPress | ( | AGUI2MenuGridItem & | a_rMenuItem | ) |
Definition at line 142 of file AGUI2MenuGrid.cpp.
| void AGUI2MenuGrid::Update | ( | TFLOAT | a_fDeltaTime | ) |
Definition at line 183 of file AGUI2MenuGrid.cpp.