2013-03-15 13:11:33 +00:00
|
|
|
struct Application::State {
|
2013-01-05 09:19:04 +00:00
|
|
|
string name;
|
2013-03-15 13:11:33 +00:00
|
|
|
bool quit = false;
|
|
|
|
} applicationState;
|
2013-01-05 09:19:04 +00:00
|
|
|
|
2011-06-05 03:45:04 +00:00
|
|
|
struct Timer::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
bool enabled = false;
|
|
|
|
unsigned milliseconds = 0;
|
2011-06-05 03:45:04 +00:00
|
|
|
};
|
|
|
|
|
2013-03-19 08:48:50 +00:00
|
|
|
struct BrowserWindow::State {
|
|
|
|
lstring filters;
|
|
|
|
Window *parent = nullptr;
|
|
|
|
string path;
|
|
|
|
string title;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct MessageWindow::State {
|
|
|
|
MessageWindow::Buttons buttons = MessageWindow::Buttons::Ok;
|
|
|
|
Window *parent = nullptr;
|
|
|
|
string text;
|
|
|
|
string title;
|
|
|
|
};
|
|
|
|
|
2011-02-24 09:25:20 +00:00
|
|
|
struct Window::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
bool backgroundColorOverride = false;
|
|
|
|
Color backgroundColor = {0, 0, 0, 255};
|
|
|
|
bool fullScreen = false;
|
|
|
|
Geometry geometry = {128, 128, 256, 256};
|
Update to v088r02 release.
byuu says:
Basically, the current implementation of nall/array is deprecated now.
The old method was for non-reference types, it acted like a vector for
POD types (raw memory allocation instead of placement new construction.)
And for reference types, it acted like an unordered set. Yeah, not good.
As of right now, nall/array is no longer used. The vector type usage was
replaced with actual vectors.
I've created nall/set, which now contains the specialization for
reference types.
nall/set basically acts much like std::unordered_set. No auto-sort, only
one of each type is allowed, automatic growth.
This will be the same both for reference and non-reference types ...
however, the non-reference type wasn't implemented just yet.
Future plans for nall/array are for it to be a statically allocated
block of memory, ala array<type, size>, which is meant for RAII memory
usage.
Have to work on the specifics, eg the size as a template parameter may
be problematic. I'd like to return allocated chunks of memory (eg
file::read) in this container so that I don't have to manually free the
data anymore.
I also removed nall/moduloarray, and moved that into the SNES DSP class,
since that's the only thing that uses it.
2012-04-26 10:56:15 +00:00
|
|
|
set<Layout&> layout;
|
|
|
|
set<Menu&> menu;
|
2011-09-05 03:48:23 +00:00
|
|
|
string menuFont;
|
2013-03-15 13:11:33 +00:00
|
|
|
bool menuVisible = false;
|
|
|
|
bool modal = false;
|
|
|
|
bool resizable = true;
|
2011-09-05 03:48:23 +00:00
|
|
|
string statusFont;
|
2011-02-27 09:05:10 +00:00
|
|
|
string statusText;
|
2013-03-15 13:11:33 +00:00
|
|
|
bool statusVisible = false;
|
2011-02-27 09:05:10 +00:00
|
|
|
string title;
|
2013-03-15 13:11:33 +00:00
|
|
|
bool visible = false;
|
Update to v088r02 release.
byuu says:
Basically, the current implementation of nall/array is deprecated now.
The old method was for non-reference types, it acted like a vector for
POD types (raw memory allocation instead of placement new construction.)
And for reference types, it acted like an unordered set. Yeah, not good.
As of right now, nall/array is no longer used. The vector type usage was
replaced with actual vectors.
I've created nall/set, which now contains the specialization for
reference types.
nall/set basically acts much like std::unordered_set. No auto-sort, only
one of each type is allowed, automatic growth.
This will be the same both for reference and non-reference types ...
however, the non-reference type wasn't implemented just yet.
Future plans for nall/array are for it to be a statically allocated
block of memory, ala array<type, size>, which is meant for RAII memory
usage.
Have to work on the specifics, eg the size as a template parameter may
be problematic. I'd like to return allocated chunks of memory (eg
file::read) in this container so that I don't have to manually free the
data anymore.
I also removed nall/moduloarray, and moved that into the SNES DSP class,
since that's the only thing that uses it.
2012-04-26 10:56:15 +00:00
|
|
|
set<Widget&> widget;
|
2011-09-05 03:48:23 +00:00
|
|
|
string widgetFont;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Action::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
bool enabled = true;
|
|
|
|
Menu *menu = nullptr;
|
|
|
|
bool visible = true;
|
|
|
|
Window *window = nullptr;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Menu::State {
|
Update to v088r02 release.
byuu says:
Basically, the current implementation of nall/array is deprecated now.
The old method was for non-reference types, it acted like a vector for
POD types (raw memory allocation instead of placement new construction.)
And for reference types, it acted like an unordered set. Yeah, not good.
As of right now, nall/array is no longer used. The vector type usage was
replaced with actual vectors.
I've created nall/set, which now contains the specialization for
reference types.
nall/set basically acts much like std::unordered_set. No auto-sort, only
one of each type is allowed, automatic growth.
This will be the same both for reference and non-reference types ...
however, the non-reference type wasn't implemented just yet.
Future plans for nall/array are for it to be a statically allocated
block of memory, ala array<type, size>, which is meant for RAII memory
usage.
Have to work on the specifics, eg the size as a template parameter may
be problematic. I'd like to return allocated chunks of memory (eg
file::read) in this container so that I don't have to manually free the
data anymore.
I also removed nall/moduloarray, and moved that into the SNES DSP class,
since that's the only thing that uses it.
2012-04-26 10:56:15 +00:00
|
|
|
set<Action&> action;
|
2013-03-15 13:11:33 +00:00
|
|
|
nall::image image = {0, 32, 255u << 24, 255u << 16, 255u << 8, 255u << 0};
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2011-02-27 09:05:10 +00:00
|
|
|
struct Item::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
nall::image image = {0, 32, 255u << 24, 255u << 16, 255u << 8, 255u << 0};
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2011-02-27 09:05:10 +00:00
|
|
|
struct CheckItem::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
bool checked = false;
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2011-02-27 09:05:10 +00:00
|
|
|
struct RadioItem::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
bool checked = true;
|
Update to v088r02 release.
byuu says:
Basically, the current implementation of nall/array is deprecated now.
The old method was for non-reference types, it acted like a vector for
POD types (raw memory allocation instead of placement new construction.)
And for reference types, it acted like an unordered set. Yeah, not good.
As of right now, nall/array is no longer used. The vector type usage was
replaced with actual vectors.
I've created nall/set, which now contains the specialization for
reference types.
nall/set basically acts much like std::unordered_set. No auto-sort, only
one of each type is allowed, automatic growth.
This will be the same both for reference and non-reference types ...
however, the non-reference type wasn't implemented just yet.
Future plans for nall/array are for it to be a statically allocated
block of memory, ala array<type, size>, which is meant for RAII memory
usage.
Have to work on the specifics, eg the size as a template parameter may
be problematic. I'd like to return allocated chunks of memory (eg
file::read) in this container so that I don't have to manually free the
data anymore.
I also removed nall/moduloarray, and moved that into the SNES DSP class,
since that's the only thing that uses it.
2012-04-26 10:56:15 +00:00
|
|
|
set<RadioItem&> group;
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2011-09-05 03:48:23 +00:00
|
|
|
struct Sizable::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
Layout *layout = nullptr;
|
|
|
|
Window *window = nullptr;
|
2011-09-05 03:48:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Layout::State {
|
|
|
|
};
|
|
|
|
|
2011-02-24 09:25:20 +00:00
|
|
|
struct Widget::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
bool abstract = false;
|
|
|
|
bool enabled = true;
|
2011-09-05 03:48:23 +00:00
|
|
|
string font;
|
2013-03-15 13:11:33 +00:00
|
|
|
Geometry geometry = {0, 0, 0, 0};
|
|
|
|
bool visible = true;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Button::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
nall::image image = {0, 32, 255u << 24, 255u << 16, 255u << 8, 255u << 0};
|
|
|
|
Orientation orientation = Orientation::Horizontal;
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2011-11-04 11:57:54 +00:00
|
|
|
struct Canvas::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
uint32_t *data = nullptr;
|
|
|
|
unsigned width = 256;
|
|
|
|
unsigned height = 256;
|
2011-11-04 11:57:54 +00:00
|
|
|
};
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
struct CheckButton::State {
|
|
|
|
bool checked = false;
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
struct ComboButton::State {
|
|
|
|
unsigned selection = 0;
|
2011-10-16 09:44:48 +00:00
|
|
|
vector<string> text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct HexEdit::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
unsigned columns = 16;
|
|
|
|
unsigned length = 0;
|
|
|
|
unsigned offset = 0;
|
|
|
|
unsigned rows = 16;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
struct HorizontalScroller::State {
|
|
|
|
unsigned length = 101;
|
|
|
|
unsigned position = 0;
|
2011-08-06 14:03:52 +00:00
|
|
|
};
|
|
|
|
|
2011-02-24 09:25:20 +00:00
|
|
|
struct HorizontalSlider::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
unsigned length = 101;
|
|
|
|
unsigned position = 0;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Label::State {
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct LineEdit::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
bool editable = true;
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ListView::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
bool checkable = false;
|
Update to v088r02 release.
byuu says:
Basically, the current implementation of nall/array is deprecated now.
The old method was for non-reference types, it acted like a vector for
POD types (raw memory allocation instead of placement new construction.)
And for reference types, it acted like an unordered set. Yeah, not good.
As of right now, nall/array is no longer used. The vector type usage was
replaced with actual vectors.
I've created nall/set, which now contains the specialization for
reference types.
nall/set basically acts much like std::unordered_set. No auto-sort, only
one of each type is allowed, automatic growth.
This will be the same both for reference and non-reference types ...
however, the non-reference type wasn't implemented just yet.
Future plans for nall/array are for it to be a statically allocated
block of memory, ala array<type, size>, which is meant for RAII memory
usage.
Have to work on the specifics, eg the size as a template parameter may
be problematic. I'd like to return allocated chunks of memory (eg
file::read) in this container so that I don't have to manually free the
data anymore.
I also removed nall/moduloarray, and moved that into the SNES DSP class,
since that's the only thing that uses it.
2012-04-26 10:56:15 +00:00
|
|
|
vector<bool> checked;
|
2011-02-27 09:05:10 +00:00
|
|
|
lstring headerText;
|
2013-03-15 13:11:33 +00:00
|
|
|
bool headerVisible = false;
|
2012-06-18 10:13:51 +00:00
|
|
|
vector<vector<nall::image>> image;
|
2013-03-15 13:11:33 +00:00
|
|
|
bool selected = false;
|
|
|
|
unsigned selection = 0;
|
2011-10-16 09:44:48 +00:00
|
|
|
vector<lstring> text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ProgressBar::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
unsigned position = 0;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
struct RadioButton::State {
|
|
|
|
bool checked = true;
|
|
|
|
set<RadioButton&> group;
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct TextEdit::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
unsigned cursorPosition = 0;
|
|
|
|
bool editable = true;
|
2011-02-27 09:05:10 +00:00
|
|
|
string text;
|
2013-03-15 13:11:33 +00:00
|
|
|
bool wordWrap = true;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
struct VerticalScroller::State {
|
|
|
|
unsigned length = 101;
|
|
|
|
unsigned position = 0;
|
2011-08-06 14:03:52 +00:00
|
|
|
};
|
|
|
|
|
2011-02-24 09:25:20 +00:00
|
|
|
struct VerticalSlider::State {
|
2013-03-15 13:11:33 +00:00
|
|
|
unsigned length = 101;
|
|
|
|
unsigned position = 0;
|
2011-02-24 09:25:20 +00:00
|
|
|
};
|