C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
ui_core.h File Reference
#include "pico/stdlib.h"
#include "sw/ui_core/ui_control_event.h"
#include "sw/display_device/display_device.h"
#include "sw/widget/widget.h"
#include <vector>
#include <map>
#include <string>
#include <set>
Include dependency graph for ui_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Model
 This is the Model abstract class of Model_View_Control design pattern. More...
 
class  UIControlledModel
 Class that adds UI Controller to the basic Model class. More...
 
class  UIControlledIncrementalValue
 The UIControlledIncrementalValue is a kind of Model that have special feature such as a value that can be incremented or decremented. This value runs between a min_value and a max_value. More...
 
class  UIModelManager
 This is an Abstract class that is used to implement the manager of object on a screen. More...
 
class  UIController
 UIController is the abstract class that hosts all controller object in the Model-View-Controll design pattern. More...
 

Macros

#define UI_MODEL_OBJECT_STATUS_TIME_OUT_us   3000000
 the time out used by the UIModelManager that indicates there is no more UI_ModelObject Status change.
 

Enumerations

enum class  ControlledObjectStatus { IS_WAITING , HAS_FOCUS , IS_ACTIVE }
 The list of status that a Model can have. (0) IS_WAITING (1) HAS_FOCUS (2) IS_ACTIVE. More...
 
enum class  ControlledObjectStatusTimeOutReason { NO_TIME_OUT , MANAGER_INACTIVE , MANAGED_OBJECT_INACTIVE }
 The list of reason of manager time out report. (0) NO_TIME_OUT (1) MANAGER_INACTIVE (3) MANAGED_OBJECT_INACTIVE. More...
 

Detailed Description

Author
xiansnn (xians.nosp@m.nn@h.nosp@m.otmai.nosp@m.l.co.nosp@m.m)
Version
0.1
Date
2025-01-11

Enumeration Type Documentation

◆ ControlledObjectStatus

enum class ControlledObjectStatus
strong

The list of status that a Model can have. (0) IS_WAITING (1) HAS_FOCUS (2) IS_ACTIVE.

Enumerator
IS_WAITING 

The object is inactive, nothing to do.

HAS_FOCUS 

The widget or object manager is pointing to this model.

IS_ACTIVE 

The user has selected (clicked) on this model. ControlEvent are then passed to this model in order to be processed.

◆ ControlledObjectStatusTimeOutReason

The list of reason of manager time out report. (0) NO_TIME_OUT (1) MANAGER_INACTIVE (3) MANAGED_OBJECT_INACTIVE.

Enumerator
NO_TIME_OUT 

no time out

MANAGER_INACTIVE 

The object is inactive, nothing to do.

MANAGED_OBJECT_INACTIVE 

The widget or object manager is pointing to this model.