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
UIElement.h File Reference

Containing the abstract base class for all user interface elements (controls, indicators, containers). More...

#include "UIElementType.h"
#include "TouchTypes.h"
#include "Keys.h"
#include <stdint.h>
#include <Adafruit_GFX.h>
#include "Fonts/FreeSans12pt7b.h"

Go to the source code of this file.

Classes

class  UIElement
 Abstract base class for all user interface elements (controls, indicators, containers). More...
 

Macros

#define RGB565(r, g, b)
 Macro that can be used to convert a RGB888 color to the RGB565 format.
 

Detailed Description

Containing the abstract base class for all user interface elements (controls, indicators, containers).

Macro Definition Documentation

◆ RGB565

#define RGB565 ( r,
g,
b )
Value:
((((r)& 0xF8) << 8) | (((g) & 0xFC) << 3) | (((b) & 0xF8) >> 3))

Macro that can be used to convert a RGB888 color to the RGB565 format.

Input the r, g, b values as 8-bit values.