#include <ScrollChoiceMenuItem.h>
|
| | Rgb32MenuItem (RuntimeRenderingFn renderFn, const RgbColor32 &col, uint16_t id, bool includeAlpha, MenuItem *next=nullptr) |
| | Rgb32MenuItem (uint16_t id, RuntimeRenderingFn renderFn, bool includeAlpha, MenuItem *next=nullptr) |
| | Rgb32MenuItem (const AnyMenuInfo *info, RuntimeRenderingFn renderFn, const RgbColor32 &col, bool includeAlpha, MenuItem *next=nullptr, bool isPgm=INFO_LOCATION_PGM) |
| | Rgb32MenuItem (const AnyMenuInfo *info, const RgbColor32 &col, bool includeAlpha, MenuItem *next=nullptr, bool isPgm=INFO_LOCATION_PGM) |
| RgbColor32 * | getUnderlying () |
| RgbColor32 | getColorData () |
| void | setColorData (const RgbColor32 &other) |
| bool | isAlphaInUse () const |
A Menu item that can display and edit RGB values that are 32 bits wide, that is 8 bit per element and an optional alpha channel. This is based on editable runtime menu item. Rendering function is rgbAlphaItemRenderFn
◆ Rgb32MenuItem() [1/4]
Creates a color data menu item that can be edited, optionally including an alpha channel
- Parameters
-
| id | the id of the item |
| renderFn | the rendering function to use - see default in the class definition |
| includeAlpha | true to include alpha channel, otherwise false. |
| initial | the initial value |
| next | optional pointer to the next menu item |
◆ Rgb32MenuItem() [2/4]
Creates a color data menu item that can be edited, optionally including an alpha channel
- Parameters
-
| id | the id of the item |
| renderFn | the rendering function to use - see default in the class definition |
| includeAlpha | true to include alpha channel, otherwise false. |
| next | optional pointer to the next menu item |
◆ Rgb32MenuItem() [3/4]
Creates a color data menu item that can be edited, optionally including an alpha channel from an info block for static name, id etc.
- Parameters
-
| info | the info block containing the static data |
| renderFn | the rendering function to use - see default in the class definition |
| col | the initial color |
| includeAlpha | true to include alpha channel, otherwise false. |
| next | optional pointer to the next menu item |
| isPgm | optional if the item is in program memory or RAM. |
◆ Rgb32MenuItem() [4/4]
| Rgb32MenuItem::Rgb32MenuItem |
( |
const AnyMenuInfo * | info, |
|
|
const RgbColor32 & | col, |
|
|
bool | includeAlpha, |
|
|
MenuItem * | next = nullptr, |
|
|
bool | isPgm = INFO_LOCATION_PGM ) |
Creates a color data menu item that can be edited, optionally including an alpha channel from an info block for static name, id etc.
- Parameters
-
| info | the info block containing the static data |
| col | the initial color |
| includeAlpha | true to include alpha channel, otherwise false. |
| next | optional pointer to the next menu item |
| isPgm | optional if the item is in program memory or RAM. |
◆ getUnderlying()
- Returns
- the underlying color data that can be directly modified.
◆ getColorData()
- Returns
- a copy of the underlying color data
◆ setColorData()
| void Rgb32MenuItem::setColorData |
( |
const RgbColor32 & | other | ) |
|
|
inline |
copy the color data provided as the latest
- Parameters
-
◆ isAlphaInUse()
| bool Rgb32MenuItem::isAlphaInUse |
( |
| ) |
const |
|
inline |
- Returns
- true if the alpha channel is in use for this menuitem, otherwise false.
The documentation for this class was generated from the following files: