fromValue static method
Returns the GuiControl for the given native value.
Throws ArgumentError if value does not correspond to a known entry.
Implementation
static GuiControl fromValue(int value) => switch (value) {
0 => DEFAULT,
1 => LABEL,
2 => BUTTON,
3 => TOGGLE,
4 => SLIDER,
5 => PROGRESSBAR,
6 => CHECKBOX,
7 => COMBOBOX,
8 => DROPDOWNBOX,
9 => TEXTBOX,
10 => VALUEBOX,
11 => CONTROL11,
12 => LISTVIEW,
13 => COLORPICKER,
14 => SCROLLBAR,
15 => STATUSBAR,
_ => throw ArgumentError('Unknown value for $GuiControl: $value'),
};