UI_Lib  a1366e08a59cc549a65fa26081e6409aa12f26d5
This is a user interface library for graphical LCDs. It offers many different controls and indicators that can be nested depending on the element types.
Loading...
Searching...
No Matches
BoolControl.h File Reference

Containing a class for a boolean control that is showing a boolean variable value and offers the possibility to toggle the value. More...

Go to the source code of this file.

Classes

class  BoolControl
 Class for a boolean control that is showing a boolean variable value and offers the possibility to toggle the value. More...
 

Macros

#define DEFAULT_BOOLCONTROL_TOGGLESWITCH_WIDTH   40
 Default width for the toggle switch.
 
#define DEFAULT_BOOLCONTROL_TOGGLESWITCH_HEIGHT   20
 Default height for the toggle switch.
 
#define DEFAULT_BOOLCONTROL_TOGGLESWITCH_SLIDER_SPACING   3
 Default spacing between the toggle switch outline and the slider circle.
 
#define DEFAULT_BOOLCONTROL_CHECKBOX_SIZE   20
 Default width and height for the checkbox.
 
#define DEFAULT_BOOLCONTROL_CHECKBOX_CHECK_SPACING   3
 Default spacing between the checkbox outline and the checkbox mark.
 

Typedefs

typedef enum BoolControlStyles BoolControlStyles_t
 Available boolean control styles.
 

Enumerations

enum  BoolControlStyles { BOOLCONTROL_STYLE_TOGGLESWITCH , BOOLCONTROL_STYLE_CHECKBOX , BOOLCONTROL_STYLE_CLASSIC }
 Available boolean control styles. More...
 

Detailed Description

Containing a class for a boolean control that is showing a boolean variable value and offers the possibility to toggle the value.

Enumeration Type Documentation

◆ BoolControlStyles

Available boolean control styles.

Enumerator
BOOLCONTROL_STYLE_TOGGLESWITCH 

The boolean control is styled like a toggle switch.

BOOLCONTROL_STYLE_CHECKBOX 

The boolean control is styled like a check box.

BOOLCONTROL_STYLE_CLASSIC 

The boolean control is styled with a rectangle with ON/OFF text.