|
| | UIWidget (UIDisplayDevice *_display_screen, size_t _frame_width, size_t _frame_height, uint8_t _widget_anchor_x, uint8_t _widget_anchor_y, bool _widget_with_border, uint8_t _widget_border_width=1, FramebufferFormat _framebuffer_format=FramebufferFormat::MONO_VLSB, StructFramebufferText _framebuffer_txt_cnf={.font=font_8x8}) |
| | Construct a new UIWidget object.
|
| |
| | ~UIWidget () |
| | Destroy the UIWidget object.
|
| |
| void | add_widget (UIWidget *_sub_widget) |
| |
| virtual void | refresh () |
| | WARNING : this function can be redefined. When several widget display one Model, only le last one must clear_change_flag()
|
| |
|
| static FramebufferColor | blinking_us (uint32_t _blink_period) |
| |
Definition at line 363 of file ui_core.h.
◆ UIWidget()
| UIWidget::UIWidget |
( |
UIDisplayDevice * | _display_screen, |
|
|
size_t | _frame_width, |
|
|
size_t | _frame_height, |
|
|
uint8_t | _widget_anchor_x, |
|
|
uint8_t | _widget_anchor_y, |
|
|
bool | _widget_with_border, |
|
|
uint8_t | _widget_border_width = 1, |
|
|
FramebufferFormat | _framebuffer_format = FramebufferFormat::MONO_VLSB, |
|
|
StructFramebufferText | _framebuffer_txt_cnf = {.font = font_8x8} ) |
Construct a new UIWidget object.
- Parameters
-
| _display_screen | |
| _frame_width | |
| _frame_height | |
| _widget_anchor_x | |
| _widget_anchor_y | |
| _widget_with_border | |
| _widget_border_width | |
| _framebuffer_format | |
| _framebuffer_txt_cnf | |
Definition at line 200 of file ui_core.cpp.
◆ ~UIWidget()
◆ add_widget()
| void UIWidget::add_widget |
( |
UIWidget * | _sub_widget | ) |
|
◆ blinking_us()
| FramebufferColor UIWidget::blinking_us |
( |
uint32_t | _blink_period | ) |
|
|
static |
- Parameters
-
- Returns
- FramebufferColor
Definition at line 195 of file ui_core.cpp.
◆ draw_border()
| void UIWidget::draw_border |
( |
| ) |
|
|
protected |
◆ refresh()
| void UIWidget::refresh |
( |
| ) |
|
|
virtual |
WARNING : this function can be redefined. When several widget display one Model, only le last one must clear_change_flag()
First: Scan all contained sub-widgets if any and call refresh() member function of each of them.
Then: apply refresh() on the containing widget if any changes require a screen redraw and finally : clear model change flag
Reimplemented in TestCursorWidgetWithIncrementalValue, and TestObjectManagerWidget.
Definition at line 235 of file ui_core.cpp.
◆ set_display_screen()
Set the display screen object.
- Parameters
-
Definition at line 225 of file ui_core.cpp.
◆ set_displayed_model()
| void UIWidget::set_displayed_model |
( |
UIModelObject * | _new_displayed_model | ) |
|
|
protectedvirtual |
Set the displayed model object.
- Parameters
-
Definition at line 220 of file ui_core.cpp.
◆ widget_border_width
| uint8_t UIWidget::widget_border_width |
|
protected |
◆ widget_height
| size_t UIWidget::widget_height {8} |
|
protected |
◆ widget_start_x
| uint8_t UIWidget::widget_start_x |
|
protected |
◆ widget_start_y
| uint8_t UIWidget::widget_start_y |
|
protected |
◆ widget_width
| size_t UIWidget::widget_width {128} |
|
protected |
◆ widgets
| std::vector<UIWidget *> UIWidget::widgets |
|
protected |
The documentation for this class was generated from the following files:
- C:/Users/chris/OneDrive/MyRP2_CPP_UI/ui_core/ui_core.h
- C:/Users/chris/OneDrive/MyRP2_CPP_UI/ui_core/ui_core.cpp