C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
widget_square_led.h
Go to the documentation of this file.
1
11
12#include "sw/widget/widget.h"
14
15#pragma once
16
27
33{
34private:
35protected:
40
41public:
51 GraphicDisplayDevice *graphic_display_screen,
54
55 virtual void draw();
56};
57
61class WidgetBlinkingSquareLed : public WidgetSquareLed, public Blinker
62{
63private:
64protected:
67
68public:
78 GraphicDisplayDevice *graphic_display_screen,
81
82 virtual void draw();
83};
84
89{
90private:
91 /* data */
92public:
99 GraphicDisplayDevice *graphic_display_screen,
100 struct_ConfigGraphicWidget graph_cfg, CanvasFormat format);
102 virtual void get_value_of_interest();
103};
CanvasFormat
the format of the canvas
Definition canvas.h:60
This is the abstract class to handle all generic behavior of physical graphic display devices (e....
Definition display_device.h:30
GraphicWidget(GraphicDisplayDevice *graphic_display_screen, struct_ConfigGraphicWidget graph_cfg, CanvasFormat canvas_format, Model *displayed_object=nullptr)
Construct a new Graphic Widget object.
Definition widget.cpp:44
This is the Model abstract class of Model_View_Control design pattern.
Definition ui_core.h:67
WidgetBlinkingSquareLed(Model *actual_displayed_model, GraphicDisplayDevice *graphic_display_screen, struct_ConfigGraphicWidget graph_cfg, CanvasFormat format)
Construct a new GraphicWidget Square Led object.
Definition widget_square_led.cpp:3
virtual void draw()
a pure virtual member that is called to effectively draw the widget.
Definition widget_square_led.cpp:14
LEDStatus led_status
the operating status of the LED (blinking, ON, OFF)
Definition widget_square_led.h:66
virtual void get_value_of_interest()
A pure virtual method that results in the transfer of the displayed values of the displayed model to ...
Definition widget_square_led.cpp:93
WidgetFocusIndicator(Model *actual_displayed_model, GraphicDisplayDevice *graphic_display_screen, struct_ConfigGraphicWidget graph_cfg, CanvasFormat format)
constructor for the UICOntrolledModel focus indicator
Definition widget_square_led.cpp:82
Model * actual_displayed_model
a pointer to the Model actually displayed by the widget
Definition widget.h:106
bool led_is_on
the status of the led, on or off
Definition widget_square_led.h:39
virtual void draw()
a pure virtual member that is called to effectively draw the widget.
Definition widget_square_led.cpp:67
WidgetSquareLed(Model *actual_displayed_model, GraphicDisplayDevice *graphic_display_screen, struct_ConfigGraphicWidget graph_cfg, CanvasFormat format)
Construct a new GraphicWidget Square Led object.
Definition widget_square_led.cpp:56
data structure used to configure graphic framebuffer
Definition canvas.h:73
LEDStatus
enumeration of the status of a blinking LED
Definition widget_square_led.h:19
@ LED_IS_BLINKING
LED is blinking.
Definition widget_square_led.h:21
@ LED_IS_ON
LED is switched ON.
Definition widget_square_led.h:23
@ LED_IS_OFF
LED is switched OFF.
Definition widget_square_led.h:25