format
This commit is contained in:
parent
db7238f1ed
commit
a110f2d3de
44 changed files with 227 additions and 180 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
MwCXX::Window* MessageBox(MwCXX::Base* handle, MwCXX::String text, MwCXX::String title, int flag);
|
MwCXX::Window* MessageBox(MwCXX::Base* handle, MwCXX::String text, MwCXX::String title, int flag);
|
||||||
MwCXX::Button* MessageBoxGetChild(MwCXX::Window* handle, int child);
|
MwCXX::Button* MessageBoxGetChild(MwCXX::Window* handle, int child);
|
||||||
void MessageBoxDestroy(MwCXX::Window* handle);
|
void MessageBoxDestroy(MwCXX::Window* handle);
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,41 +1,41 @@
|
||||||
MwCXX::String GetBackground();
|
MwCXX::String GetBackground();
|
||||||
void SetBackground(MwCXX::String value);
|
void SetBackground(MwCXX::String value);
|
||||||
MwLLPixmap GetBackgroundPixmap();
|
MwLLPixmap GetBackgroundPixmap();
|
||||||
void SetBackgroundPixmap(MwLLPixmap value);
|
void SetBackgroundPixmap(MwLLPixmap value);
|
||||||
int GetBitmapFont();
|
int GetBitmapFont();
|
||||||
void SetBitmapFont(int value);
|
void SetBitmapFont(int value);
|
||||||
int GetBorderWidth();
|
int GetBorderWidth();
|
||||||
void SetBorderWidth(int value);
|
void SetBorderWidth(int value);
|
||||||
int GetDarkTheme();
|
int GetDarkTheme();
|
||||||
void SetDarkTheme(int value);
|
void SetDarkTheme(int value);
|
||||||
int GetFixedSize();
|
int GetFixedSize();
|
||||||
void SetFixedSize(int value);
|
void SetFixedSize(int value);
|
||||||
int GetForceInverted();
|
int GetForceInverted();
|
||||||
void SetForceInverted(int value);
|
void SetForceInverted(int value);
|
||||||
MwCXX::String GetForeground();
|
MwCXX::String GetForeground();
|
||||||
void SetForeground(MwCXX::String value);
|
void SetForeground(MwCXX::String value);
|
||||||
int GetHeight();
|
int GetHeight();
|
||||||
void SetHeight(int value);
|
void SetHeight(int value);
|
||||||
int GetIsRounded();
|
int GetIsRounded();
|
||||||
void SetIsRounded(int value);
|
void SetIsRounded(int value);
|
||||||
int GetModernLook();
|
int GetModernLook();
|
||||||
void SetModernLook(int value);
|
void SetModernLook(int value);
|
||||||
int GetRatio();
|
int GetRatio();
|
||||||
void SetRatio(int value);
|
void SetRatio(int value);
|
||||||
MwCXX::String GetSubBackground();
|
MwCXX::String GetSubBackground();
|
||||||
void SetSubBackground(MwCXX::String value);
|
void SetSubBackground(MwCXX::String value);
|
||||||
MwCXX::String GetSubForeground();
|
MwCXX::String GetSubForeground();
|
||||||
void SetSubForeground(MwCXX::String value);
|
void SetSubForeground(MwCXX::String value);
|
||||||
int GetUseMonospace();
|
int GetUseMonospace();
|
||||||
void SetUseMonospace(int value);
|
void SetUseMonospace(int value);
|
||||||
int GetWaitMS();
|
int GetWaitMS();
|
||||||
void SetWaitMS(int value);
|
void SetWaitMS(int value);
|
||||||
int GetWidth();
|
int GetWidth();
|
||||||
void SetWidth(int value);
|
void SetWidth(int value);
|
||||||
int GetX();
|
int GetX();
|
||||||
void SetX(int value);
|
void SetX(int value);
|
||||||
int GetY();
|
int GetY();
|
||||||
void SetY(int value);
|
void SetY(int value);
|
||||||
|
|
||||||
virtual void OnClipboard(MwCXX::String value) {};
|
virtual void OnClipboard(MwCXX::String value) {};
|
||||||
virtual void OnDarkTheme(int value) {};
|
virtual void OnDarkTheme(int value) {};
|
||||||
|
|
|
||||||
|
|
@ -15,15 +15,15 @@ namespace MwCXX {
|
||||||
Box(MwWidget widget, MwCXX::Base* parent = NULL);
|
Box(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
Box(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
Box(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
int GetOrientation();
|
int GetOrientation();
|
||||||
void SetOrientation(int value);
|
void SetOrientation(int value);
|
||||||
int GetMargin();
|
int GetMargin();
|
||||||
void SetMargin(int value);
|
void SetMargin(int value);
|
||||||
int GetPadding();
|
int GetPadding();
|
||||||
void SetPadding(int value);
|
void SetPadding(int value);
|
||||||
int GetHasBorder();
|
int GetHasBorder();
|
||||||
void SetHasBorder(int value);
|
void SetHasBorder(int value);
|
||||||
int GetInverted();
|
int GetInverted();
|
||||||
void SetInverted(int value);
|
void SetInverted(int value);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
|
||||||
|
|
@ -15,16 +15,16 @@ namespace MwCXX {
|
||||||
Button(MwWidget widget, MwCXX::Base* parent = NULL);
|
Button(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
Button(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
Button(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
MwLLPixmap GetPixmap();
|
MwLLPixmap GetPixmap();
|
||||||
void SetPixmap(MwLLPixmap value);
|
void SetPixmap(MwLLPixmap value);
|
||||||
MwCXX::String GetText();
|
MwCXX::String GetText();
|
||||||
void SetText(MwCXX::String value);
|
void SetText(MwCXX::String value);
|
||||||
int GetFlat();
|
int GetFlat();
|
||||||
void SetFlat(int value);
|
void SetFlat(int value);
|
||||||
int GetPadding();
|
int GetPadding();
|
||||||
void SetPadding(int value);
|
void SetPadding(int value);
|
||||||
int GetFillArea();
|
int GetFillArea();
|
||||||
void SetFillArea(int value);
|
void SetFillArea(int value);
|
||||||
|
|
||||||
virtual void OnActivate() {};
|
virtual void OnActivate() {};
|
||||||
virtual void OnChanged() {};
|
virtual void OnChanged() {};
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace MwCXX {
|
||||||
CheckBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
CheckBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
CheckBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
CheckBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
int GetChecked();
|
int GetChecked();
|
||||||
void SetChecked(int value);
|
void SetChecked(int value);
|
||||||
|
|
||||||
virtual void OnChanged() {};
|
virtual void OnChanged() {};
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@ namespace MwCXX {
|
||||||
ComboBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
ComboBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
ComboBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
ComboBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
int GetAreaShown();
|
int GetAreaShown();
|
||||||
void SetAreaShown(int value);
|
void SetAreaShown(int value);
|
||||||
int GetValue();
|
int GetValue();
|
||||||
void SetValue(int value);
|
void SetValue(int value);
|
||||||
|
|
||||||
virtual void OnComboBoxChanged(int value) {};
|
virtual void OnComboBoxChanged(int value) {};
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,9 @@ namespace MwCXX {
|
||||||
Entry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
Entry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
MwCXX::String GetText();
|
MwCXX::String GetText();
|
||||||
void SetText(MwCXX::String value);
|
void SetText(MwCXX::String value);
|
||||||
int GetHideInput();
|
int GetHideInput();
|
||||||
void SetHideInput(int value);
|
void SetHideInput(int value);
|
||||||
|
|
||||||
virtual void OnActivate() {};
|
virtual void OnActivate() {};
|
||||||
virtual void OnChanged() {};
|
virtual void OnChanged() {};
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@ namespace MwCXX {
|
||||||
Frame(MwWidget widget, MwCXX::Base* parent = NULL);
|
Frame(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
Frame(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
Frame(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
int GetHasBorder();
|
int GetHasBorder();
|
||||||
void SetHasBorder(int value);
|
void SetHasBorder(int value);
|
||||||
int GetInverted();
|
int GetInverted();
|
||||||
void SetInverted(int value);
|
void SetInverted(int value);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
|
||||||
|
|
@ -16,13 +16,13 @@ namespace MwCXX {
|
||||||
Image(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
Image(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
MwLLPixmap GetPixmap();
|
MwLLPixmap GetPixmap();
|
||||||
void SetPixmap(MwLLPixmap value);
|
void SetPixmap(MwLLPixmap value);
|
||||||
int GetHasBorder();
|
int GetHasBorder();
|
||||||
void SetHasBorder(int value);
|
void SetHasBorder(int value);
|
||||||
int GetInverted();
|
int GetInverted();
|
||||||
void SetInverted(int value);
|
void SetInverted(int value);
|
||||||
int GetFillArea();
|
int GetFillArea();
|
||||||
void SetFillArea(int value);
|
void SetFillArea(int value);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,17 +16,17 @@ namespace MwCXX {
|
||||||
Label(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
Label(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
MwCXX::String GetText();
|
MwCXX::String GetText();
|
||||||
void SetText(MwCXX::String value);
|
void SetText(MwCXX::String value);
|
||||||
int GetAlignment();
|
int GetAlignment();
|
||||||
void SetAlignment(int value);
|
void SetAlignment(int value);
|
||||||
int GetBold();
|
int GetBold();
|
||||||
void SetBold(int value);
|
void SetBold(int value);
|
||||||
int GetSevenSegment();
|
int GetSevenSegment();
|
||||||
void SetSevenSegment(int value);
|
void SetSevenSegment(int value);
|
||||||
int GetLength();
|
int GetLength();
|
||||||
void SetLength(int value);
|
void SetLength(int value);
|
||||||
int GetLeftPadding();
|
int GetLeftPadding();
|
||||||
void SetLeftPadding(int value);
|
void SetLeftPadding(int value);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,11 @@ namespace MwCXX {
|
||||||
ListBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
ListBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
ListBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
ListBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
int GetLeftPadding();
|
int GetLeftPadding();
|
||||||
void SetLeftPadding(int value);
|
void SetLeftPadding(int value);
|
||||||
int GetHasHeading();
|
int GetHasHeading();
|
||||||
void SetHasHeading(int value);
|
void SetHasHeading(int value);
|
||||||
int GetSingleClickSelectable();
|
int GetSingleClickSelectable();
|
||||||
void SetSingleClickSelectable(int value);
|
void SetSingleClickSelectable(int value);
|
||||||
|
|
||||||
virtual void OnListBoxActivate(int value) {};
|
virtual void OnListBoxActivate(int value) {};
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ namespace MwCXX {
|
||||||
NumberEntry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
NumberEntry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
MwCXX::String GetText();
|
MwCXX::String GetText();
|
||||||
void SetText(MwCXX::String value);
|
void SetText(MwCXX::String value);
|
||||||
|
|
||||||
virtual void OnActivate() {};
|
virtual void OnActivate() {};
|
||||||
virtual void OnChanged() {};
|
virtual void OnChanged() {};
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,11 @@ namespace MwCXX {
|
||||||
ProgressBar(MwWidget widget, MwCXX::Base* parent = NULL);
|
ProgressBar(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
ProgressBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
ProgressBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
int GetMinValue();
|
int GetMinValue();
|
||||||
void SetMinValue(int value);
|
void SetMinValue(int value);
|
||||||
int GetMaxValue();
|
int GetMaxValue();
|
||||||
void SetMaxValue(int value);
|
void SetMaxValue(int value);
|
||||||
int GetValue();
|
int GetValue();
|
||||||
void SetValue(int value);
|
void SetValue(int value);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace MwCXX {
|
||||||
RadioBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
RadioBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
RadioBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
RadioBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
int GetChecked();
|
int GetChecked();
|
||||||
void SetChecked(int value);
|
void SetChecked(int value);
|
||||||
|
|
||||||
virtual void OnChanged() {};
|
virtual void OnChanged() {};
|
||||||
|
|
|
||||||
|
|
@ -15,17 +15,17 @@ namespace MwCXX {
|
||||||
ScrollBar(MwWidget widget, MwCXX::Base* parent = NULL);
|
ScrollBar(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
ScrollBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
ScrollBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
int GetShowArrows();
|
int GetShowArrows();
|
||||||
void SetShowArrows(int value);
|
void SetShowArrows(int value);
|
||||||
int GetAreaShown();
|
int GetAreaShown();
|
||||||
void SetAreaShown(int value);
|
void SetAreaShown(int value);
|
||||||
int GetValue();
|
int GetValue();
|
||||||
void SetValue(int value);
|
void SetValue(int value);
|
||||||
int GetMinValue();
|
int GetMinValue();
|
||||||
void SetMinValue(int value);
|
void SetMinValue(int value);
|
||||||
int GetMaxValue();
|
int GetMaxValue();
|
||||||
void SetMaxValue(int value);
|
void SetMaxValue(int value);
|
||||||
int GetOrientation();
|
int GetOrientation();
|
||||||
void SetOrientation(int value);
|
void SetOrientation(int value);
|
||||||
|
|
||||||
virtual void OnChanged() {};
|
virtual void OnChanged() {};
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace MwCXX {
|
||||||
SubMenu(MwWidget widget, MwCXX::Base* parent = NULL);
|
SubMenu(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
SubMenu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
SubMenu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
int GetLeftPadding();
|
int GetLeftPadding();
|
||||||
void SetLeftPadding(int value);
|
void SetLeftPadding(int value);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@ namespace MwCXX {
|
||||||
TreeView(MwWidget widget, MwCXX::Base* parent = NULL);
|
TreeView(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
TreeView(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
TreeView(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
int GetLeftPadding();
|
int GetLeftPadding();
|
||||||
void SetLeftPadding(int value);
|
void SetLeftPadding(int value);
|
||||||
int GetSingleClickSelectable();
|
int GetSingleClickSelectable();
|
||||||
void SetSingleClickSelectable(int value);
|
void SetSingleClickSelectable(int value);
|
||||||
|
|
||||||
virtual void OnTreeViewActivate(void* value) {};
|
virtual void OnTreeViewActivate(void* value) {};
|
||||||
|
|
|
||||||
|
|
@ -16,17 +16,17 @@ namespace MwCXX {
|
||||||
Window(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
Window(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
MwCXX::String GetTitle();
|
MwCXX::String GetTitle();
|
||||||
void SetTitle(MwCXX::String value);
|
void SetTitle(MwCXX::String value);
|
||||||
int GetMain();
|
int GetMain();
|
||||||
void SetMain(int value);
|
void SetMain(int value);
|
||||||
MwLLPixmap GetIconPixmap();
|
MwLLPixmap GetIconPixmap();
|
||||||
void SetIconPixmap(MwLLPixmap value);
|
void SetIconPixmap(MwLLPixmap value);
|
||||||
MwSizeHints* GetSizeHints();
|
MwSizeHints* GetSizeHints();
|
||||||
void SetSizeHints(MwSizeHints* value);
|
void SetSizeHints(MwSizeHints* value);
|
||||||
int GetHasBorder();
|
int GetHasBorder();
|
||||||
void SetHasBorder(int value);
|
void SetHasBorder(int value);
|
||||||
int GetInverted();
|
int GetInverted();
|
||||||
void SetInverted(int value);
|
void SetInverted(int value);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
MwCXX::Window* MwCXX::ColorPicker(MwCXX::Base* handle, MwCXX::String title) {
|
MwCXX::Window* MwCXX::ColorPicker(MwCXX::Base* handle, MwCXX::String title) {
|
||||||
return new MwCXX::Window(MwColorPicker(handle->GetWidget(),
|
return new MwCXX::Window(MwColorPicker(handle->GetWidget(),
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
title
|
title
|
||||||
#else
|
#else
|
||||||
title.c_str()
|
title.c_str()
|
||||||
#endif
|
#endif
|
||||||
), handle);
|
),
|
||||||
|
handle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
MwCXX::Window* MwCXX::DirectoryChooser(MwCXX::Base* handle, MwCXX::String title) {
|
MwCXX::Window* MwCXX::DirectoryChooser(MwCXX::Base* handle, MwCXX::String title) {
|
||||||
return new MwCXX::Window(MwDirectoryChooser(handle->GetWidget(),
|
return new MwCXX::Window(MwDirectoryChooser(handle->GetWidget(),
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
title
|
title
|
||||||
#else
|
#else
|
||||||
title.c_str()
|
title.c_str()
|
||||||
#endif
|
#endif
|
||||||
), handle);
|
),
|
||||||
|
handle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,21 @@
|
||||||
MwCXX::Window* MwCXX::FileChooser(MwCXX::Base* handle, MwCXX::String title) {
|
MwCXX::Window* MwCXX::FileChooser(MwCXX::Base* handle, MwCXX::String title) {
|
||||||
return new MwCXX::Window(MwFileChooser(handle->GetWidget(),
|
return new MwCXX::Window(MwFileChooser(handle->GetWidget(),
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
title
|
title
|
||||||
#else
|
#else
|
||||||
title.c_str()
|
title.c_str()
|
||||||
#endif
|
#endif
|
||||||
), handle);
|
),
|
||||||
|
handle);
|
||||||
}
|
}
|
||||||
MwCXX::Window* MwCXX::FileChooserEx(MwCXX::Base* handle, MwCXX::String title, int dir) {
|
MwCXX::Window* MwCXX::FileChooserEx(MwCXX::Base* handle, MwCXX::String title, int dir) {
|
||||||
return new MwCXX::Window(MwFileChooserEx(handle->GetWidget(),
|
return new MwCXX::Window(MwFileChooserEx(handle->GetWidget(),
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
title
|
title
|
||||||
#else
|
#else
|
||||||
title.c_str()
|
title.c_str()
|
||||||
#endif
|
#endif
|
||||||
, (int)dir), handle);
|
,
|
||||||
|
(int)dir),
|
||||||
|
handle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,17 +3,19 @@
|
||||||
MwCXX::Window* MwCXX::MessageBox(MwCXX::Base* handle, MwCXX::String text, MwCXX::String title, int flag) {
|
MwCXX::Window* MwCXX::MessageBox(MwCXX::Base* handle, MwCXX::String text, MwCXX::String title, int flag) {
|
||||||
return new MwCXX::Window(MwMessageBox(handle->GetWidget(),
|
return new MwCXX::Window(MwMessageBox(handle->GetWidget(),
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
text
|
text
|
||||||
#else
|
#else
|
||||||
text.c_str()
|
text.c_str()
|
||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
title
|
title
|
||||||
#else
|
#else
|
||||||
title.c_str()
|
title.c_str()
|
||||||
#endif
|
#endif
|
||||||
, (int)flag), handle);
|
,
|
||||||
|
(int)flag),
|
||||||
|
handle);
|
||||||
}
|
}
|
||||||
MwCXX::Button* MwCXX::MessageBoxGetChild(MwCXX::Window* handle, int child) {
|
MwCXX::Button* MwCXX::MessageBoxGetChild(MwCXX::Window* handle, int child) {
|
||||||
return new MwCXX::Button(MwMessageBoxGetChild(handle->GetWidget(), (int)child), handle);
|
return new MwCXX::Button(MwMessageBoxGetChild(handle->GetWidget(), (int)child), handle);
|
||||||
|
|
|
||||||
|
|
@ -235,15 +235,15 @@ void MwCXX::Base::RegisterHandlers() {
|
||||||
MwAddUserHandler(this->widget, MwNresizeHandler, __OnResize, (void*)this);
|
MwAddUserHandler(this->widget, MwNresizeHandler, __OnResize, (void*)this);
|
||||||
MwAddUserHandler(this->widget, MwNtickHandler, __OnTick, (void*)this);
|
MwAddUserHandler(this->widget, MwNtickHandler, __OnTick, (void*)this);
|
||||||
|
|
||||||
this->ClipboardHandler = NULL;
|
this->ClipboardHandler = NULL;
|
||||||
this->DarkThemeHandler = NULL;
|
this->DarkThemeHandler = NULL;
|
||||||
this->FocusInHandler = NULL;
|
this->FocusInHandler = NULL;
|
||||||
this->FocusOutHandler = NULL;
|
this->FocusOutHandler = NULL;
|
||||||
this->KeyHandler = NULL;
|
this->KeyHandler = NULL;
|
||||||
this->KeyReleaseHandler = NULL;
|
this->KeyReleaseHandler = NULL;
|
||||||
this->MouseDownHandler = NULL;
|
this->MouseDownHandler = NULL;
|
||||||
this->MouseMoveHandler = NULL;
|
this->MouseMoveHandler = NULL;
|
||||||
this->MouseUpHandler = NULL;
|
this->MouseUpHandler = NULL;
|
||||||
this->ResizeHandler = NULL;
|
this->ResizeHandler = NULL;
|
||||||
this->TickHandler = NULL;
|
this->TickHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Box.h>
|
#include <MwCXX/Widget/Box.h>
|
||||||
|
|
||||||
MwCXX::Box::Box(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Box::Box(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Box::Box(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwBoxClass, name, parent, x, y, width, height) {
|
MwCXX::Box::Box(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwBoxClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Button.h>
|
#include <MwCXX/Widget/Button.h>
|
||||||
|
|
||||||
MwCXX::Button::Button(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Button::Button(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Button::Button(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwButtonClass, name, parent, x, y, width, height) {
|
MwCXX::Button::Button(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwButtonClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -67,5 +69,5 @@ void MwCXX::Button::RegisterHandlers() {
|
||||||
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
|
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
|
||||||
|
|
||||||
this->ActivateHandler = NULL;
|
this->ActivateHandler = NULL;
|
||||||
this->ChangedHandler = NULL;
|
this->ChangedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/CheckBox.h>
|
#include <MwCXX/Widget/CheckBox.h>
|
||||||
|
|
||||||
MwCXX::CheckBox::CheckBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::CheckBox::CheckBox(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::CheckBox::CheckBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwCheckBoxClass, name, parent, x, y, width, height) {
|
MwCXX::CheckBox::CheckBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwCheckBoxClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/ComboBox.h>
|
#include <MwCXX/Widget/ComboBox.h>
|
||||||
|
|
||||||
MwCXX::ComboBox::ComboBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::ComboBox::ComboBox(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::ComboBox::ComboBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwComboBoxClass, name, parent, x, y, width, height) {
|
MwCXX::ComboBox::ComboBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwComboBoxClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Entry.h>
|
#include <MwCXX/Widget/Entry.h>
|
||||||
|
|
||||||
MwCXX::Entry::Entry(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Entry::Entry(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Entry::Entry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwEntryClass, name, parent, x, y, width, height) {
|
MwCXX::Entry::Entry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwEntryClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -43,5 +45,5 @@ void MwCXX::Entry::RegisterHandlers() {
|
||||||
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
|
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
|
||||||
|
|
||||||
this->ActivateHandler = NULL;
|
this->ActivateHandler = NULL;
|
||||||
this->ChangedHandler = NULL;
|
this->ChangedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Frame.h>
|
#include <MwCXX/Widget/Frame.h>
|
||||||
|
|
||||||
MwCXX::Frame::Frame(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Frame::Frame(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Frame::Frame(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwFrameClass, name, parent, x, y, width, height) {
|
MwCXX::Frame::Frame(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwFrameClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Image.h>
|
#include <MwCXX/Widget/Image.h>
|
||||||
|
|
||||||
MwCXX::Image::Image(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Image::Image(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Image::Image(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwImageClass, name, parent, x, y, width, height) {
|
MwCXX::Image::Image(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwImageClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Label.h>
|
#include <MwCXX/Widget/Label.h>
|
||||||
|
|
||||||
MwCXX::Label::Label(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Label::Label(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Label::Label(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwLabelClass, name, parent, x, y, width, height) {
|
MwCXX::Label::Label(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwLabelClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/ListBox.h>
|
#include <MwCXX/Widget/ListBox.h>
|
||||||
|
|
||||||
MwCXX::ListBox::ListBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::ListBox::ListBox(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::ListBox::ListBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwListBoxClass, name, parent, x, y, width, height) {
|
MwCXX::ListBox::ListBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwListBoxClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Menu.h>
|
#include <MwCXX/Widget/Menu.h>
|
||||||
|
|
||||||
MwCXX::Menu::Menu(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Menu::Menu(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Menu::Menu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwMenuClass, name, parent, x, y, width, height) {
|
MwCXX::Menu::Menu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwMenuClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/NumberEntry.h>
|
#include <MwCXX/Widget/NumberEntry.h>
|
||||||
|
|
||||||
MwCXX::NumberEntry::NumberEntry(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::NumberEntry::NumberEntry(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::NumberEntry::NumberEntry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwNumberEntryClass, name, parent, x, y, width, height) {
|
MwCXX::NumberEntry::NumberEntry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwNumberEntryClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -35,5 +37,5 @@ void MwCXX::NumberEntry::RegisterHandlers() {
|
||||||
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
|
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
|
||||||
|
|
||||||
this->ActivateHandler = NULL;
|
this->ActivateHandler = NULL;
|
||||||
this->ChangedHandler = NULL;
|
this->ChangedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
#define MW_OPENGL_NO_INCLUDE
|
#define MW_OPENGL_NO_INCLUDE
|
||||||
#include <MwCXX/Widget/OpenGL.h>
|
#include <MwCXX/Widget/OpenGL.h>
|
||||||
|
|
||||||
MwCXX::OpenGL::OpenGL(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::OpenGL::OpenGL(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::OpenGL::OpenGL(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwOpenGLClass, name, parent, x, y, width, height) {
|
MwCXX::OpenGL::OpenGL(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwOpenGLClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/ProgressBar.h>
|
#include <MwCXX/Widget/ProgressBar.h>
|
||||||
|
|
||||||
MwCXX::ProgressBar::ProgressBar(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::ProgressBar::ProgressBar(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::ProgressBar::ProgressBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwProgressBarClass, name, parent, x, y, width, height) {
|
MwCXX::ProgressBar::ProgressBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwProgressBarClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/RadioBox.h>
|
#include <MwCXX/Widget/RadioBox.h>
|
||||||
|
|
||||||
MwCXX::RadioBox::RadioBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::RadioBox::RadioBox(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::RadioBox::RadioBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwRadioBoxClass, name, parent, x, y, width, height) {
|
MwCXX::RadioBox::RadioBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwRadioBoxClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/ScrollBar.h>
|
#include <MwCXX/Widget/ScrollBar.h>
|
||||||
|
|
||||||
MwCXX::ScrollBar::ScrollBar(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::ScrollBar::ScrollBar(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::ScrollBar::ScrollBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwScrollBarClass, name, parent, x, y, width, height) {
|
MwCXX::ScrollBar::ScrollBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwScrollBarClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/SubMenu.h>
|
#include <MwCXX/Widget/SubMenu.h>
|
||||||
|
|
||||||
MwCXX::SubMenu::SubMenu(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::SubMenu::SubMenu(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::SubMenu::SubMenu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwSubMenuClass, name, parent, x, y, width, height) {
|
MwCXX::SubMenu::SubMenu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwSubMenuClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/TreeView.h>
|
#include <MwCXX/Widget/TreeView.h>
|
||||||
|
|
||||||
MwCXX::TreeView::TreeView(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::TreeView::TreeView(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::TreeView::TreeView(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwTreeViewClass, name, parent, x, y, width, height) {
|
MwCXX::TreeView::TreeView(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwTreeViewClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Viewport.h>
|
#include <MwCXX/Widget/Viewport.h>
|
||||||
|
|
||||||
MwCXX::Viewport::Viewport(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Viewport::Viewport(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Viewport::Viewport(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwViewportClass, name, parent, x, y, width, height) {
|
MwCXX::Viewport::Viewport(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwViewportClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
#define MW_VULKAN_NO_INCLUDE
|
#define MW_VULKAN_NO_INCLUDE
|
||||||
#include <MwCXX/Widget/Vulkan.h>
|
#include <MwCXX/Widget/Vulkan.h>
|
||||||
|
|
||||||
MwCXX::Vulkan::Vulkan(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Vulkan::Vulkan(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Vulkan::Vulkan(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwVulkanClass, name, parent, x, y, width, height) {
|
MwCXX::Vulkan::Vulkan(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwVulkanClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Window.h>
|
#include <MwCXX/Widget/Window.h>
|
||||||
|
|
||||||
MwCXX::Window::Window(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Window::Window(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Window::Window(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwWindowClass, name, parent, x, y, width, height) {
|
MwCXX::Window::Window(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwWindowClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
2
test.cc
2
test.cc
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
static void close_msg(MwCXX::Button* button){
|
static void close_msg(MwCXX::Button* button) {
|
||||||
delete button->GetParent();
|
delete button->GetParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue