coastline 0.0.4
Loading...
Searching...
No Matches
MenuPanel Class Reference

A panel of a screen of the front end. More...

#include <frontend.h>

Public Member Functions

 MenuPanel ()
 Clear widget pointers and panel selections.
int RestoreSelection ()
 Clamp the saved menu hover index to this panel's navigation range and select it.
virtual ~MenuPanel ()
 Destroy the panel without deleting its widget pointers.
virtual bool RunFrame ()
 Run a frame of every item of the panel.
void SetBeforeWidgetsCallback (int(*callback)(void))
 Set the callback invoked before panel widgets run.
void SetAfterWidgetsCallback (int(*callback)(void))
 Set the callback invoked after panel widgets run.
int SetFlags (int value)
 Replace the panel flags.
unsigned short GetWidgetCount () const
unsigned short SetWidgetCount (unsigned short value)
 Replace the number of widgets in the panel.
MenuWidget * GetWidget (int index) const
MenuWidget * SetWidget (int index, MenuWidget *widget)
 Replace the widget at index.
float GetX () const
float SetX (float value)
 Set the panel's horizontal position.
float GetY () const
float SetY (float value)
 Set the panel's vertical position.
MenuScreen * SetScreen (MenuScreen *screen)
 Associate the panel with screen.
unsigned short GetNavigationCount () const
unsigned short SetNavigationCount (unsigned short value)
 Replace the number of navigable widgets.

Detailed Description

A panel of a screen of the front end.

Constructor & Destructor Documentation

◆ MenuPanel()

MenuPanel::MenuPanel ( )

Clear widget pointers and panel selections.

Ghidra address:
BRD3D: 0x10048470
Ghidra address:
BRGlide: 0x100418c0

◆ ~MenuPanel()

virtual MenuPanel::~MenuPanel ( )
virtual

Destroy the panel without deleting its widget pointers.

Ghidra address:
BRD3D: 0x100484e0
Ghidra address:
BRGlide: 0x10041930

Member Function Documentation

◆ RestoreSelection()

int MenuPanel::RestoreSelection ( )

Clamp the saved menu hover index to this panel's navigation range and select it.

Returns
One.
Ghidra address:
BRD3D: 0x100484f0
Ghidra address:
BRGlide: 0x10041940

◆ RunFrame()

virtual bool MenuPanel::RunFrame ( )
virtual

Run a frame of every item of the panel.

Returns
Whether the panel still runs.
Ghidra address:
BRD3D: 0x10048530
Ghidra address:
BRGlide: 0x10041980

◆ SetBeforeWidgetsCallback()

void MenuPanel::SetBeforeWidgetsCallback ( int(* callback )(void))
inline

Set the callback invoked before panel widgets run.

◆ SetAfterWidgetsCallback()

void MenuPanel::SetAfterWidgetsCallback ( int(* callback )(void))
inline

Set the callback invoked after panel widgets run.

◆ SetFlags()

int MenuPanel::SetFlags ( int value)
inline

Replace the panel flags.

◆ GetWidgetCount()

unsigned short MenuPanel::GetWidgetCount ( ) const
inline
Returns
The number of widgets in the panel.

◆ SetWidgetCount()

unsigned short MenuPanel::SetWidgetCount ( unsigned short value)
inline

Replace the number of widgets in the panel.

◆ GetWidget()

MenuWidget * MenuPanel::GetWidget ( int index) const
inline
Returns
The widget at index.

◆ SetWidget()

MenuWidget * MenuPanel::SetWidget ( int index,
MenuWidget * widget )
inline

Replace the widget at index.

◆ GetX()

float MenuPanel::GetX ( ) const
inline
Returns
The panel's horizontal position.

◆ SetX()

float MenuPanel::SetX ( float value)
inline

Set the panel's horizontal position.

◆ GetY()

float MenuPanel::GetY ( ) const
inline
Returns
The panel's vertical position.

◆ SetY()

float MenuPanel::SetY ( float value)
inline

Set the panel's vertical position.

◆ SetScreen()

MenuScreen * MenuPanel::SetScreen ( MenuScreen * screen)
inline

Associate the panel with screen.

◆ GetNavigationCount()

unsigned short MenuPanel::GetNavigationCount ( ) const
inline
Returns
The number of navigable widgets.

◆ SetNavigationCount()

unsigned short MenuPanel::SetNavigationCount ( unsigned short value)
inline

Replace the number of navigable widgets.


The documentation for this class was generated from the following file: