2011-06-05 03:45:04 +00:00
|
|
|
struct Timer::State {
|
|
|
|
bool enabled;
|
|
|
|
unsigned milliseconds;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
enabled = false;
|
|
|
|
milliseconds = 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2011-02-24 09:25:20 +00:00
|
|
|
struct Window::State {
|
2011-08-06 14:03:52 +00:00
|
|
|
bool backgroundColorOverride;
|
|
|
|
Color backgroundColor;
|
2011-02-24 09:25:20 +00:00
|
|
|
bool fullScreen;
|
|
|
|
Geometry geometry;
|
2011-09-05 03:48:23 +00:00
|
|
|
bool ignore;
|
2011-02-27 09:05:10 +00:00
|
|
|
reference_array<Layout&> layout;
|
|
|
|
reference_array<Menu&> menu;
|
2011-09-05 03:48:23 +00:00
|
|
|
string menuFont;
|
2011-02-24 09:25:20 +00:00
|
|
|
bool menuVisible;
|
|
|
|
bool resizable;
|
2011-09-05 03:48:23 +00:00
|
|
|
string statusFont;
|
2011-02-27 09:05:10 +00:00
|
|
|
string statusText;
|
2011-02-24 09:25:20 +00:00
|
|
|
bool statusVisible;
|
2011-02-27 09:05:10 +00:00
|
|
|
string title;
|
2011-02-24 09:25:20 +00:00
|
|
|
bool visible;
|
2011-02-27 09:05:10 +00:00
|
|
|
reference_array<Widget&> widget;
|
2011-09-05 03:48:23 +00:00
|
|
|
string widgetFont;
|
2011-02-24 09:25:20 +00:00
|
|
|
|
|
|
|
State() {
|
2011-08-06 14:03:52 +00:00
|
|
|
backgroundColorOverride = false;
|
|
|
|
backgroundColor = { 0, 0, 0, 255 };
|
2011-02-24 09:25:20 +00:00
|
|
|
fullScreen = false;
|
|
|
|
geometry = { 128, 128, 256, 256 };
|
2011-09-05 03:48:23 +00:00
|
|
|
ignore = false;
|
2011-02-24 09:25:20 +00:00
|
|
|
menuVisible = false;
|
|
|
|
resizable = true;
|
|
|
|
statusVisible = false;
|
|
|
|
visible = false;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Action::State {
|
|
|
|
bool enabled;
|
2011-09-05 03:48:23 +00:00
|
|
|
Menu *menu;
|
2011-02-24 09:25:20 +00:00
|
|
|
bool visible;
|
2011-09-05 03:48:23 +00:00
|
|
|
Window *window;
|
2011-02-24 09:25:20 +00:00
|
|
|
|
|
|
|
State() {
|
|
|
|
enabled = true;
|
2011-09-05 03:48:23 +00:00
|
|
|
menu = 0;
|
2011-02-24 09:25:20 +00:00
|
|
|
visible = true;
|
2011-09-05 03:48:23 +00:00
|
|
|
window = 0;
|
2011-02-24 09:25:20 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Menu::State {
|
2011-02-27 09:05:10 +00:00
|
|
|
reference_array<Action&> action;
|
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2011-02-27 09:05:10 +00:00
|
|
|
struct Item::State {
|
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2011-02-27 09:05:10 +00:00
|
|
|
struct CheckItem::State {
|
2011-02-24 09:25:20 +00:00
|
|
|
bool checked;
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
|
|
|
|
State() {
|
|
|
|
checked = false;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2011-02-27 09:05:10 +00:00
|
|
|
struct RadioItem::State {
|
2011-02-24 09:25:20 +00:00
|
|
|
bool checked;
|
2011-02-27 09:05:10 +00:00
|
|
|
reference_array<RadioItem&> group;
|
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
|
|
|
|
State() {
|
|
|
|
checked = true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2011-09-05 03:48:23 +00:00
|
|
|
struct Sizable::State {
|
|
|
|
Layout *layout;
|
|
|
|
Window *window;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
layout = 0;
|
|
|
|
window = 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Layout::State {
|
|
|
|
State() {
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2011-02-24 09:25:20 +00:00
|
|
|
struct Widget::State {
|
|
|
|
bool abstract;
|
|
|
|
bool enabled;
|
2011-09-05 03:48:23 +00:00
|
|
|
string font;
|
2011-02-24 09:25:20 +00:00
|
|
|
Geometry geometry;
|
|
|
|
bool visible;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
abstract = false;
|
|
|
|
enabled = true;
|
|
|
|
geometry = { 0, 0, 0, 0 };
|
|
|
|
visible = true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Button::State {
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
|
|
|
|
State() {
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2011-11-04 11:57:54 +00:00
|
|
|
struct Canvas::State {
|
|
|
|
uint32_t *data;
|
|
|
|
unsigned width;
|
|
|
|
unsigned height;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
data = nullptr;
|
|
|
|
width = 256;
|
|
|
|
height = 256;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2011-02-24 09:25:20 +00:00
|
|
|
struct CheckBox::State {
|
|
|
|
bool checked;
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
|
|
|
|
State() {
|
|
|
|
checked = false;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ComboBox::State {
|
|
|
|
unsigned selection;
|
2011-10-16 09:44:48 +00:00
|
|
|
vector<string> text;
|
2011-02-24 09:25:20 +00:00
|
|
|
|
|
|
|
State() {
|
|
|
|
selection = 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct HexEdit::State {
|
|
|
|
unsigned columns;
|
|
|
|
unsigned length;
|
|
|
|
unsigned offset;
|
|
|
|
unsigned rows;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
columns = 16;
|
|
|
|
length = 0;
|
|
|
|
offset = 0;
|
|
|
|
rows = 16;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2011-08-06 14:03:52 +00:00
|
|
|
struct HorizontalScrollBar::State {
|
|
|
|
unsigned length;
|
|
|
|
unsigned position;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
length = 101;
|
|
|
|
position = 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2011-02-24 09:25:20 +00:00
|
|
|
struct HorizontalSlider::State {
|
|
|
|
unsigned length;
|
|
|
|
unsigned position;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
length = 101;
|
|
|
|
position = 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Label::State {
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct LineEdit::State {
|
|
|
|
bool editable;
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
|
|
|
|
State() {
|
|
|
|
editable = true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ListView::State {
|
|
|
|
bool checkable;
|
2011-02-27 09:05:10 +00:00
|
|
|
array<bool> checked;
|
|
|
|
lstring headerText;
|
2011-02-24 09:25:20 +00:00
|
|
|
bool headerVisible;
|
2011-02-27 09:05:10 +00:00
|
|
|
bool selected;
|
|
|
|
unsigned selection;
|
2011-10-16 09:44:48 +00:00
|
|
|
vector<lstring> text;
|
2011-02-24 09:25:20 +00:00
|
|
|
|
2011-02-27 09:05:10 +00:00
|
|
|
State() {
|
2011-02-24 09:25:20 +00:00
|
|
|
checkable = false;
|
|
|
|
headerVisible = false;
|
2011-02-27 09:05:10 +00:00
|
|
|
selected = false;
|
|
|
|
selection = 0;
|
2011-02-24 09:25:20 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ProgressBar::State {
|
|
|
|
unsigned position;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
position = 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct RadioBox::State {
|
|
|
|
bool checked;
|
2011-02-27 09:05:10 +00:00
|
|
|
reference_array<RadioBox&> group;
|
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
|
|
|
|
State() {
|
|
|
|
checked = true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TextEdit::State {
|
|
|
|
unsigned cursorPosition;
|
|
|
|
bool editable;
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
bool wordWrap;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
cursorPosition = 0;
|
|
|
|
editable = true;
|
|
|
|
wordWrap = false;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2011-08-06 14:03:52 +00:00
|
|
|
struct VerticalScrollBar::State {
|
|
|
|
unsigned length;
|
|
|
|
unsigned position;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
length = 101;
|
|
|
|
position = 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2011-02-24 09:25:20 +00:00
|
|
|
struct VerticalSlider::State {
|
|
|
|
unsigned length;
|
|
|
|
unsigned position;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
length = 101;
|
|
|
|
position = 0;
|
|
|
|
}
|
|
|
|
};
|