cmdfx 0.2.1
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
scenes.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "cmdfx/core/scenes.h"
14#include "cmdfx/ui/button.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
26#define MAX_BUTTONS_PER_SCENE 128
27
39
51
68
82int Scene_addButton(int uid, CmdFX_Button* button, int x, int y);
83
95int Scene_removeButton(int uid, CmdFX_Button* button);
96
111int Scene_removeButtonAt(int uid, int x, int y);
112
125
126#ifdef __cplusplus
127}
128#endif
Button declarations for the CmdFX UI Library.
Scenes API for CmdFX.
Represents a CmdFX button.
Definition button.h:42
CmdFX_Button ** Scene_getButtons(int uid)
Gets the buttons of a scene.
int Scene_getButtonsCount(int uid)
Gets the number of buttons in a scene.
int Scene_removeButtonAt(int uid, int x, int y)
Removes a button from a scene at the specified coordinates.
int Scene_removeAllButtons(int uid)
Removes all buttons from a scene.
int Scene_removeButton(int uid, CmdFX_Button *button)
Removes a button from a scene.
int Scene_addButton(int uid, CmdFX_Button *button, int x, int y)
Adds a button to a scene.
int * Scene_getButtonCoordinates(int uid, CmdFX_Button *button)
Gets the coordinates of a button in a scene.