2011-02-24 09:25:20 +00:00
|
|
|
struct Font::State {
|
|
|
|
bool bold;
|
2011-02-27 09:05:10 +00:00
|
|
|
string family;
|
2011-02-24 09:25:20 +00:00
|
|
|
bool italic;
|
|
|
|
unsigned size;
|
|
|
|
bool underline;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
bold = false;
|
|
|
|
italic = false;
|
|
|
|
size = 8;
|
|
|
|
underline = false;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
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 {
|
|
|
|
bool backgroundColor;
|
|
|
|
unsigned backgroundColorRed, backgroundColorGreen, backgroundColorBlue;
|
|
|
|
bool fullScreen;
|
|
|
|
Geometry geometry;
|
2011-02-27 09:05:10 +00:00
|
|
|
reference_array<Layout&> layout;
|
|
|
|
reference_array<Menu&> menu;
|
2011-02-24 09:25:20 +00:00
|
|
|
Font *menuFont;
|
|
|
|
bool menuVisible;
|
|
|
|
bool resizable;
|
|
|
|
Font *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-02-24 09:25:20 +00:00
|
|
|
Font *widgetFont;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
backgroundColor = false;
|
|
|
|
backgroundColorRed = 0;
|
|
|
|
backgroundColorGreen = 0;
|
|
|
|
backgroundColorBlue = 0;
|
|
|
|
fullScreen = false;
|
|
|
|
geometry = { 128, 128, 256, 256 };
|
|
|
|
menuFont = 0;
|
|
|
|
menuVisible = false;
|
|
|
|
resizable = true;
|
|
|
|
statusVisible = false;
|
|
|
|
visible = false;
|
|
|
|
widgetFont = 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Action::State {
|
|
|
|
bool enabled;
|
|
|
|
Window *parent;
|
|
|
|
bool visible;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
enabled = true;
|
|
|
|
parent = 0;
|
|
|
|
visible = true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Widget::State {
|
|
|
|
bool abstract;
|
|
|
|
bool enabled;
|
|
|
|
Font *font;
|
|
|
|
Geometry geometry;
|
|
|
|
bool visible;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
abstract = false;
|
|
|
|
enabled = true;
|
|
|
|
font = 0;
|
|
|
|
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() {
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
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-02-27 09:05:10 +00:00
|
|
|
linear_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;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
linear_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;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct VerticalSlider::State {
|
|
|
|
unsigned length;
|
|
|
|
unsigned position;
|
|
|
|
|
|
|
|
State() {
|
|
|
|
length = 101;
|
|
|
|
position = 0;
|
|
|
|
}
|
|
|
|
};
|