commit de anar a dormir

This commit is contained in:
2024-10-09 23:01:44 +02:00
parent f2fa216b0d
commit 3fa5b227ae
17 changed files with 59 additions and 74 deletions

View File

@@ -5,7 +5,8 @@
#include <string> // for string, basic_string
#include <vector> // for vector
#include "input.h" // for inputs_e
class Text;
#include "text.h"
#include <memory>
struct db_button_t
{
@@ -20,7 +21,7 @@ class DefineButtons
private:
// Objetos
Input *input; // Objeto pata gestionar la entrada
Text *text; // Objeto para escribir texto
std::shared_ptr<Text> text; // Objeto para escribir texto
// Variables
bool enabled; // Indica si el objeto está habilitado
@@ -45,14 +46,11 @@ private:
public:
// Constructor
DefineButtons(Text *text);
DefineButtons(std::unique_ptr<Text> text);
// Destructor
~DefineButtons() = default;
// Actualiza las variables del objeto
void update();
// Dibuja el objeto en pantalla
void render();