![]() |
cmdfx 0.2.1
Lightweight game engine for your terminal
|
C++ Extensions for CmdFX Button UI. More...
#include <stdlib.h>
#include "cmdfx/core/events.h"
#include "cmdfx/ui/button.h"
#include "cmdfx/core/sprites.hpp"
#include "cmdfx/core/builder.hpp"
#include <vector>
#include <memory>
Go to the source code of this file.
Classes | |
class | CmdFX::Button |
A C++ wrapper around the CmdFX_Button struct. More... | |
Namespaces | |
namespace | CmdFX |
Primary namespace for CmdFX. | |
namespace | CmdFX::Canvas |
C++ wrapper for the CmdFX canvas. | |
Functions | |
std::vector< std::unique_ptr< Button > > | CmdFX::Canvas::getRegisteredButtons () |
Gets all registered buttons in the UI manager as a vector of unique_ptr<Button>. | |
int | CmdFX::Canvas::getRegisteredButtonsCount () |
std::vector< std::unique_ptr< Button > > | CmdFX::Canvas::getAllButtonsAt (int x, int y) |
std::unique_ptr< Button > | CmdFX::Canvas::getButtonAt (int x, int y) |