UIText

class in InfEngine.ui

Inherits from: InfUIScreenComponent

Description

Figma-style text label rendered with ImGui draw primitives.

Inherits x, y, width, height from InfUIScreenComponent. All fields carry group metadata so the generic inspector renderer displays them in collapsible sections automatically.

description

Properties

Name Type Description
text str (read-only)
font_path str (read-only)
font_size float (read-only)
line_height float (read-only)
letter_spacing float (read-only)
text_align_h TextAlignH (read-only)
text_align_v TextAlignV (read-only)
overflow TextOverflow (read-only)
resize_mode TextResizeMode (read-only)
color list (read-only)

properties

Public Methods

Method Description
is_auto_width() → bool
is_auto_height() → bool
is_fixed_size() → bool
get_wrap_width() → float
get_layout_tolerance() → float
get_editor_wrap_width() → float
get_auto_size_padding() → tuple[float, float]
is_width_editable() → bool
is_height_editable() → bool

public_methods

Example

# TODO: Add example for UIText

example

See Also

see_also