| 1 |
struct Application::State { |
| 2 |
string name; |
| 3 |
bool quit = false; |
| 4 |
} applicationState; |
| 5 |
|
| 6 |
struct Timer::State { |
| 7 |
bool enabled = false; |
| 8 |
unsigned interval = 0; |
| 9 |
}; |
| 10 |
|
| 11 |
struct BrowserWindow::State { |
| 12 |
lstring filters; |
| 13 |
Window* parent = nullptr; |
| 14 |
string path; |
| 15 |
string title; |
| 16 |
}; |
| 17 |
|
| 18 |
struct MessageWindow::State { |
| 19 |
MessageWindow::Buttons buttons = MessageWindow::Buttons::Ok; |
| 20 |
Window* parent = nullptr; |
| 21 |
string text; |
| 22 |
string title; |
| 23 |
}; |
| 24 |
|
| 25 |
struct Window::State { |
| 26 |
bool backgroundColorOverride = false; |
| 27 |
Color backgroundColor = {0, 0, 0, 255}; |
| 28 |
bool droppable = false; |
| 29 |
bool fullScreen = false; |
| 30 |
Geometry geometry = {128, 128, 256, 256}; |
| 31 |
group<Layout> layout; |
| 32 |
group<Menu> menu; |
| 33 |
string menuFont; |
| 34 |
bool menuVisible = false; |
| 35 |
bool modal = false; |
| 36 |
bool resizable = true; |
| 37 |
string statusFont; |
| 38 |
string statusText; |
| 39 |
bool statusVisible = false; |
| 40 |
string title; |
| 41 |
bool visible = false; |
| 42 |
group<Widget> widget; |
| 43 |
string widgetFont; |
| 44 |
}; |
| 45 |
|
| 46 |
struct Action::State { |
| 47 |
bool enabled = true; |
| 48 |
Menu* menu = nullptr; |
| 49 |
bool visible = true; |
| 50 |
Window* window = nullptr; |
| 51 |
}; |
| 52 |
|
| 53 |
struct Menu::State { |
| 54 |
group<Action> action; |
| 55 |
nall::image image; |
| 56 |
string text; |
| 57 |
}; |
| 58 |
|
| 59 |
struct Item::State { |
| 60 |
nall::image image; |
| 61 |
string text; |
| 62 |
}; |
| 63 |
|
| 64 |
struct CheckItem::State { |
| 65 |
bool checked = false; |
| 66 |
string text; |
| 67 |
}; |
| 68 |
|
| 69 |
struct RadioItem::State { |
| 70 |
bool checked = true; |
| 71 |
nall::group<RadioItem> group; |
| 72 |
string text; |
| 73 |
}; |
| 74 |
|
| 75 |
struct Sizable::State { |
| 76 |
bool enabled = true; |
| 77 |
Sizable* parent = nullptr; |
| 78 |
bool visible = true; |
| 79 |
Window* window = nullptr; |
| 80 |
}; |
| 81 |
|
| 82 |
struct Layout::State { |
| 83 |
Widget* widget = nullptr; |
| 84 |
unsigned widgetSelection = 0; |
| 85 |
}; |
| 86 |
|
| 87 |
struct Widget::State { |
| 88 |
bool abstract = false; |
| 89 |
string font; |
| 90 |
Geometry geometry = {0, 0, 0, 0}; |
| 91 |
}; |
| 92 |
|
| 93 |
struct Button::State { |
| 94 |
nall::image image; |
| 95 |
Orientation orientation = Orientation::Horizontal; |
| 96 |
string text; |
| 97 |
}; |
| 98 |
|
| 99 |
struct Canvas::State { |
| 100 |
Color color; |
| 101 |
uint32_t* data = nullptr; |
| 102 |
bool droppable = false; |
| 103 |
vector<Color> gradient = {{}, {}, {}, {}}; |
| 104 |
nall::image image; |
| 105 |
Canvas::Mode mode = Canvas::Mode::Color; |
| 106 |
unsigned width = 0; |
| 107 |
unsigned height = 0; |
| 108 |
}; |
| 109 |
|
| 110 |
struct CheckButton::State { |
| 111 |
bool checked = false; |
| 112 |
nall::image image; |
| 113 |
Orientation orientation = Orientation::Horizontal; |
| 114 |
string text; |
| 115 |
}; |
| 116 |
|
| 117 |
struct CheckLabel::State { |
| 118 |
bool checked = false; |
| 119 |
string text; |
| 120 |
}; |
| 121 |
|
| 122 |
struct ComboButton::State { |
| 123 |
unsigned selection = 0; |
| 124 |
vector<string> text; |
| 125 |
}; |
| 126 |
|
| 127 |
struct Console::State { |
| 128 |
}; |
| 129 |
|
| 130 |
struct Frame::State { |
| 131 |
Layout* layout = nullptr; |
| 132 |
string text; |
| 133 |
}; |
| 134 |
|
| 135 |
struct HexEdit::State { |
| 136 |
unsigned columns = 16; |
| 137 |
unsigned length = 0; |
| 138 |
unsigned offset = 0; |
| 139 |
unsigned rows = 16; |
| 140 |
}; |
| 141 |
|
| 142 |
struct HorizontalScroller::State { |
| 143 |
unsigned length = 101; |
| 144 |
unsigned position = 0; |
| 145 |
}; |
| 146 |
|
| 147 |
struct HorizontalSlider::State { |
| 148 |
unsigned length = 101; |
| 149 |
unsigned position = 0; |
| 150 |
}; |
| 151 |
|
| 152 |
struct Label::State { |
| 153 |
string text; |
| 154 |
}; |
| 155 |
|
| 156 |
struct LineEdit::State { |
| 157 |
bool editable = true; |
| 158 |
string text; |
| 159 |
}; |
| 160 |
|
| 161 |
struct ListView::State { |
| 162 |
bool checkable = false; |
| 163 |
vector<bool> checked; |
| 164 |
lstring headerText; |
| 165 |
bool headerVisible = false; |
| 166 |
vector<vector<nall::image>> image; |
| 167 |
bool selected = false; |
| 168 |
unsigned selection = 0; |
| 169 |
vector<lstring> text; |
| 170 |
}; |
| 171 |
|
| 172 |
struct ProgressBar::State { |
| 173 |
unsigned position = 0; |
| 174 |
}; |
| 175 |
|
| 176 |
struct RadioButton::State { |
| 177 |
bool checked = true; |
| 178 |
nall::group<RadioButton> group; |
| 179 |
nall::image image; |
| 180 |
Orientation orientation = Orientation::Horizontal; |
| 181 |
string text; |
| 182 |
}; |
| 183 |
|
| 184 |
struct RadioLabel::State { |
| 185 |
bool checked = true; |
| 186 |
nall::group<RadioLabel> group; |
| 187 |
string text; |
| 188 |
}; |
| 189 |
|
| 190 |
struct TabFrame::State { |
| 191 |
vector<nall::image> image; |
| 192 |
vector<Layout*> layout; |
| 193 |
unsigned selection = 0; |
| 194 |
lstring text; |
| 195 |
}; |
| 196 |
|
| 197 |
struct TextEdit::State { |
| 198 |
unsigned cursorPosition = 0; |
| 199 |
bool editable = true; |
| 200 |
string text; |
| 201 |
bool wordWrap = true; |
| 202 |
}; |
| 203 |
|
| 204 |
struct VerticalScroller::State { |
| 205 |
unsigned length = 101; |
| 206 |
unsigned position = 0; |
| 207 |
}; |
| 208 |
|
| 209 |
struct VerticalSlider::State { |
| 210 |
unsigned length = 101; |
| 211 |
unsigned position = 0; |
| 212 |
}; |
| 213 |
|
| 214 |
struct Viewport::State { |
| 215 |
bool droppable = false; |
| 216 |
}; |