libpromeki 1.0.0-alpha
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
promeki::TuiWidget Class Reference

TUI-specific widget base class. More...

#include <widget.h>

Inheritance diagram for promeki::TuiWidget:
Collaboration diagram for promeki::TuiWidget:

Public Member Functions

 TuiWidget (ObjectBase *parent=nullptr)
 Constructs a TuiWidget.
 
 ~TuiWidget () override
 Destructor.
 
void update () override
 Marks the widget as needing a repaint.
 

Friends

class TuiSubsystem
 

Detailed Description

TUI-specific widget base class.

Thin subclass of the core Widget that adds TUI-specific behavior: notifying TuiSubsystem when the widget is dirty so that the screen can be repainted.

All geometry, visibility, focus, size policy, layout, and event dispatch functionality is inherited from Widget.

Thread Safety
Thread-affine via ObjectBase. All TUI widgets must be created and accessed from the thread that owns the TUI EventLoop (typically the thread that drives TuiSubsystem). Cross-thread interaction is supported only through ObjectBase signal/slot dispatch.

Constructor & Destructor Documentation

◆ TuiWidget()

promeki::TuiWidget::TuiWidget ( ObjectBase *  parent = nullptr)

Constructs a TuiWidget.

Parameters
parentOptional parent widget.

Member Function Documentation

◆ update()

void promeki::TuiWidget::update ( )
override

Marks the widget as needing a repaint.

Overrides Widget::update() to also notify TuiSubsystem that the screen needs repainting.


The documentation for this class was generated from the following file: