Skip to content

Class UI::Text

ClassList > UI > Text

  • #include <Text.h>

Inherits the following classes: ImguiItem

Public Attributes

Type Name
int args_count = 0
float args_list
float * args_ptr
bool mode

Public Attributes inherited from ImguiItem

See ImguiItem

Type Name
std::function< void(void)> ButtonFunc = [] {}
Callback function executed when button is pressed.
bool fixed_size = false
Whether item size is fixed.
bool is_activated = false
Whether item is currently active/focused.
bool is_button_pressed
Whether button is currently pressed.
std::string notagname = ""
Display name without tag prefix.
bool show_tag_name = false
Whether to display tag name.
int uitm_id = -1
Unique item ID within layer.
std::string uitm_name = ""
Item name for display and lookup.
ImVec2 uitm_size
Item size in pixels.
ImItemType uitm_type = NONE\_INP
Item type identifier.
bool using_size = false
Whether to apply custom size.

Public Functions

Type Name
virtual void RenderItem () override const
Renders the item's UI .
virtual void SetArgsList (int length, ...) override const
Sets variable argument list for text output items.
virtual void SetArgsList (int length, float * f1) const
Sets argument list from float array for text output.
Text ()
Text (const std::string & name)

Public Functions inherited from ImguiItem

See ImguiItem

Type Name
virtual void CallButtonFunc () const
Executes the button callback.
void DisableTagName () const
Disables tag name display.
void EnableTagName () const
Enables tag name display.
const char * GetCharName () const
Returns item name as C-string.
virtual Parameters * GetPara ()
Returns pointer to parameter value.
std::string GetTagName () const
Returns the tag name for display.
ImguiItem ()
Default constructor.
ImguiItem (ImItemType type, const std::string & name)
Constructs item with type and name.
void Rename (const std::string & name) const
Renames the item.
virtual void RenderItem () const
Renders the item's UI .
virtual void ResetBufferID (int id)
Updates texture/framebuffer ID for viewport items.
virtual void ResetSize (const ImVec2 & size)
Updates size for viewport items.
virtual void ResetUV (const ImVec2 & min, const ImVec2 & max)
Updates UV coordinates for viewport items.
virtual void SetArgsList (int length, ...) const
Sets variable argument list for text output items.
virtual void SetArgsList (int length, float * f1) const
Sets argument list from float array for text output.
virtual ~ImguiItem ()
Virtual destructor for proper cleanup of derived classes.

Public Attributes Documentation

variable args_count

int UI::Text::args_count;

variable args_list

float UI::Text::args_list[5];

variable args_ptr

float* UI::Text::args_ptr;

variable mode

bool UI::Text::mode;

Public Functions Documentation

function RenderItem

Renders the item's UI .

virtual void UI::Text::RenderItem () override const

Override this to implement item-specific rendering logic using ImGui calls. Called every frame when parent layer is visible.

Note:

Default implementation logs error. All derived classes must override.

Implements ImguiItem::RenderItem


function SetArgsList [1/2]

Sets variable argument list for text output items.

inline virtual void UI::Text::SetArgsList (
    int length,
    ...
) override const

Used by text output items to support formatted string display.

Parameters:

  • length Number of arguments
  • ... Variable arguments for formatting

Note:

Override in text output classes

Implements ImguiItem::SetArgsList


function SetArgsList [2/2]

Sets argument list from float array for text output.

inline virtual void UI::Text::SetArgsList (
    int length,
    float * f1
) const

Parameters:

  • length Array length
  • f1 Float array pointer

Note:

Override in text output classes

Implements ImguiItem::SetArgsList


function Text [1/2]

UI::Text::Text () 

function Text [2/2]

UI::Text::Text (
    const std::string & name
) 


The documentation for this class was generated from the following file src/UI/item/Text.h