TUIX v0.6Beta
Basic Display Widgets
Basic display widgets provide labels, clickable hyperlinks, panels, visual separators, category badges, tags, and status monitors.
Text (`content_builder.TEXT`)
| Method | Description |
|---|---|
| objects.tuix_text_set_text(obj_ptr, text: str | bytes) -> int | Sets UTF-8 text content with grapheme-cluster measurement. |
| objects.tuix_text_set_fg(obj_ptr, r: int, g: int, b: int) -> int | Sets foreground RGB text color. |
| objects.tuix_text_set_bg(obj_ptr, r: int, g: int, b: int) -> int | Sets background RGB text color. |
| objects.tuix_text_clear_bg(obj_ptr) -> int | Clears custom background color, returning to transparent/default. |
| objects.tuix_text_set_style(obj_ptr, bold: bool, italic: bool, underlined: bool, dim: bool) -> int | Sets font typography styles (bold, italic, underlined, dim). |
ClickableText (`content_builder.CLICKABLE_TEXT`)
| Method | Description |
|---|---|
| objects.tuix_clickable_text_set_text(obj_ptr, text) -> int | Sets visible text label for the clickable link. |
| objects.tuix_clickable_text_set_foreground(obj_ptr, r, g, b) -> int | Sets foreground RGB text color. |
| objects.tuix_clickable_text_set_background(obj_ptr, r, g, b) -> int | Sets background highlight RGB color. |
| objects.tuix_clickable_text_clear_background(obj_ptr) -> int | Clears custom background color. |
| objects.tuix_clickable_text_take_pressed(obj_ptr) -> int | Reads and consumes click event (returns 1 if clicked, 0 otherwise). |
| objects.tuix_clickable_text_reset(obj_ptr) -> None | Resets pressed state manually. |
Box (`content_builder.BOX`)
| Method | Description |
|---|---|
| objects.tuix_box_set_title(obj_ptr, title) -> int | Sets framed panel header title text. |
| objects.tuix_box_set_colors(obj_ptr, border_r, border_g, border_b, bg_r, bg_g, bg_b) -> int | Sets border line and background RGB colors. |
| objects.tuix_box_set_border(obj_ptr, enabled: bool) -> int | Toggles border outline visibility. |
Divider, Badge, Tag & Status
| Widget & Method | Description |
|---|---|
| objects.tuix_divider_set_orientation(obj_ptr, vertical: int) -> int | Sets horizontal (`0`) or vertical (`1`) divider line orientation. |
| objects.tuix_divider_set_symbol(obj_ptr, sym: str | bytes) -> int | Sets custom dividing glyph symbol (e.g. `|`, `-`, `=`). |
| objects.tuix_divider_set_color(obj_ptr, r: int, g: int, b: int) -> int | Sets RGB color of the divider line. |
| objects.tuix_badge_set_text(obj_ptr, text: str | bytes) -> int | Sets text content of the badge label. |
| objects.tuix_badge_set_colors(obj_ptr, fr, fg, fb, br, bg, bb) -> int | Sets foreground and background RGB colors of the badge. |
| objects.tuix_tag_set_text(obj_ptr, text: str | bytes) -> int | Sets tag label text. |
| objects.tuix_tag_set_brackets(obj_ptr, left: str, right: str) -> int | Sets custom enclosure bracket characters (e.g. `[`, `]` or `<`, `>`). |
| objects.tuix_tag_set_colors(obj_ptr, fr, fg, fb, br, bg, bb) -> int | Sets tag text and background RGB colors. |
| objects.tuix_status_set_status(obj_ptr, text: str | bytes) -> int | Sets status message text. |
| objects.tuix_status_set_level(obj_ptr, level: int) -> int | Sets status severity level (0=IDLE, 1=OK, 2=WARN, 3=ERROR). |
| objects.tuix_status_set_palette(obj_ptr, level: int, fr, fg, fb, br, bg, bb) -> int | Configures custom RGB palette for a specific severity level. |