mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-11-23 10:05:27 +00:00
Updated Widgets (markdown)
parent
97642ca45e
commit
839e01e9dc
@ -419,11 +419,14 @@ OptionsField is a widget to create a field, in which you can change its value wi
|
||||
OptionsField my_OptionsField_widget{
|
||||
Point parent_pos,
|
||||
int length,
|
||||
options_t options
|
||||
options_t options,
|
||||
bool centered,
|
||||
};
|
||||
```
|
||||
`parent_pos` is an array of two integer, represents where the top left corner of the widget should be positioned. The length is an integer which tells how many options you have into your options parameter. The options_t field is an array of options in which your portapack can choose to display.
|
||||
|
||||
Centered is a bool that if you true it, you can make all the text in it in the center. It’s originally init-ed, so if you don’t define it, it will be default false.
|
||||
|
||||
**Example**
|
||||
An OptionsField called `my_optionsField`, with 3 options positioned at 10 from top and 10 from left:
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user