cmdfx 0.2.1
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
CmdFX::SceneButtons Class Referencefinal

Public Member Functions

 SceneButtons (int uid)
 
 SceneButtons (const Scene &scene)
 
std::vector< std::unique_ptr< Button > > getButtons ()
 Gets the buttons in the scene.
 
std::vector< int > getButtonCoordinates (int index, Button &button)
 
int addButton (Button &button, int x, int y)
 
int removeButton (Button &button)
 
int removeButtonAt (int x, int y)
 
int removeAllButtons ()
 

Member Function Documentation

◆ getButtons()

std::vector< std::unique_ptr< Button > > CmdFX::SceneButtons::getButtons ( )
inline

Gets the buttons in the scene.

Returns
A vector of unique_ptr<Button> containing all buttons in the scene.

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