cmdfx 0.2.1
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
button.hpp File Reference

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< ButtonCmdFX::Canvas::getButtonAt (int x, int y)
 

Detailed Description

C++ Extensions for CmdFX Button UI.

Author
Gregory Mitchell (me@gm.nosp@m.itch.nosp@m.215.x.nosp@m.yz)
Version
0.2.1
Date
2025-05-27