This commit is contained in:
Nishi 2026-04-18 01:06:20 +09:00
commit 4988770c7f
Signed by: nishi
GPG key ID: 27EF69B208EB9343
22 changed files with 1 additions and 954 deletions

View file

@ -1,226 +0,0 @@
#include <MwCXX/Widget/Base.h>
MwCXX::String MwCXX::Base::GetBackground() {
return (MwCXX::String)MwGetText(this->widget, MwNbackground);
}
void MwCXX::Base::SetBackground(MwCXX::String value) {
#ifndef MWCXX_USE_C_STRING
MwSetText(this->widget, MwNbackground, value.c_str());
#else
MwSetText(this->widget, MwNbackground, (MwCXX::String)value);
#endif
}
MwLLPixmap MwCXX::Base::GetBackgroundPixmap() {
return (MwLLPixmap)MwGetVoid(this->widget, MwNbackgroundPixmap);
}
void MwCXX::Base::SetBackgroundPixmap(MwLLPixmap value) {
MwSetVoid(this->widget, MwNbackgroundPixmap, (MwLLPixmap)value);
}
int MwCXX::Base::GetBitmapFont() {
return (int)MwGetInteger(this->widget, MwNbitmapFont);
}
void MwCXX::Base::SetBitmapFont(int value) {
MwSetInteger(this->widget, MwNbitmapFont, (int)value);
}
int MwCXX::Base::GetBorderWidth() {
return (int)MwGetInteger(this->widget, MwNborderWidth);
}
void MwCXX::Base::SetBorderWidth(int value) {
MwSetInteger(this->widget, MwNborderWidth, (int)value);
}
int MwCXX::Base::GetDarkTheme() {
return (int)MwGetInteger(this->widget, MwNdarkTheme);
}
void MwCXX::Base::SetDarkTheme(int value) {
MwSetInteger(this->widget, MwNdarkTheme, (int)value);
}
int MwCXX::Base::GetFixedSize() {
return (int)MwGetInteger(this->widget, MwNfixedSize);
}
void MwCXX::Base::SetFixedSize(int value) {
MwSetInteger(this->widget, MwNfixedSize, (int)value);
}
int MwCXX::Base::GetForceInverted() {
return (int)MwGetInteger(this->widget, MwNforceInverted);
}
void MwCXX::Base::SetForceInverted(int value) {
MwSetInteger(this->widget, MwNforceInverted, (int)value);
}
MwCXX::String MwCXX::Base::GetForeground() {
return (MwCXX::String)MwGetText(this->widget, MwNforeground);
}
void MwCXX::Base::SetForeground(MwCXX::String value) {
#ifndef MWCXX_USE_C_STRING
MwSetText(this->widget, MwNforeground, value.c_str());
#else
MwSetText(this->widget, MwNforeground, (MwCXX::String)value);
#endif
}
int MwCXX::Base::GetHeight() {
return (int)MwGetInteger(this->widget, MwNheight);
}
void MwCXX::Base::SetHeight(int value) {
MwSetInteger(this->widget, MwNheight, (int)value);
}
int MwCXX::Base::GetIsRounded() {
return (int)MwGetInteger(this->widget, MwNisRounded);
}
void MwCXX::Base::SetIsRounded(int value) {
MwSetInteger(this->widget, MwNisRounded, (int)value);
}
int MwCXX::Base::GetModernLook() {
return (int)MwGetInteger(this->widget, MwNmodernLook);
}
void MwCXX::Base::SetModernLook(int value) {
MwSetInteger(this->widget, MwNmodernLook, (int)value);
}
int MwCXX::Base::GetRatio() {
return (int)MwGetInteger(this->widget, MwNratio);
}
void MwCXX::Base::SetRatio(int value) {
MwSetInteger(this->widget, MwNratio, (int)value);
}
MwCXX::String MwCXX::Base::GetSubBackground() {
return (MwCXX::String)MwGetText(this->widget, MwNsubBackground);
}
void MwCXX::Base::SetSubBackground(MwCXX::String value) {
#ifndef MWCXX_USE_C_STRING
MwSetText(this->widget, MwNsubBackground, value.c_str());
#else
MwSetText(this->widget, MwNsubBackground, (MwCXX::String)value);
#endif
}
MwCXX::String MwCXX::Base::GetSubForeground() {
return (MwCXX::String)MwGetText(this->widget, MwNsubForeground);
}
void MwCXX::Base::SetSubForeground(MwCXX::String value) {
#ifndef MWCXX_USE_C_STRING
MwSetText(this->widget, MwNsubForeground, value.c_str());
#else
MwSetText(this->widget, MwNsubForeground, (MwCXX::String)value);
#endif
}
int MwCXX::Base::GetUseMonospace() {
return (int)MwGetInteger(this->widget, MwNuseMonospace);
}
void MwCXX::Base::SetUseMonospace(int value) {
MwSetInteger(this->widget, MwNuseMonospace, (int)value);
}
int MwCXX::Base::GetWaitMS() {
return (int)MwGetInteger(this->widget, MwNwaitMS);
}
void MwCXX::Base::SetWaitMS(int value) {
MwSetInteger(this->widget, MwNwaitMS, (int)value);
}
int MwCXX::Base::GetWidth() {
return (int)MwGetInteger(this->widget, MwNwidth);
}
void MwCXX::Base::SetWidth(int value) {
MwSetInteger(this->widget, MwNwidth, (int)value);
}
int MwCXX::Base::GetX() {
return (int)MwGetInteger(this->widget, MwNx);
}
void MwCXX::Base::SetX(int value) {
MwSetInteger(this->widget, MwNx, (int)value);
}
int MwCXX::Base::GetY() {
return (int)MwGetInteger(this->widget, MwNy);
}
void MwCXX::Base::SetY(int value) {
MwSetInteger(this->widget, MwNy, (int)value);
}
static void __OnClipboard(MwWidget handle, void* user, void* call) {
((MwCXX::Base*)user)->OnClipboard((MwCXX::String)(char*)call);
}
static void __OnDarkTheme(MwWidget handle, void* user, void* call) {
((MwCXX::Base*)user)->OnDarkTheme(*(int*)call);
}
static void __OnFocusIn(MwWidget handle, void* user, void* call) {
((MwCXX::Base*)user)->OnFocusIn();
}
static void __OnFocusOut(MwWidget handle, void* user, void* call) {
((MwCXX::Base*)user)->OnFocusOut();
}
static void __OnKey(MwWidget handle, void* user, void* call) {
((MwCXX::Base*)user)->OnKey(*(int*)call);
}
static void __OnKeyRelease(MwWidget handle, void* user, void* call) {
((MwCXX::Base*)user)->OnKeyRelease(*(int*)call);
}
static void __OnMouseDown(MwWidget handle, void* user, void* call) {
((MwCXX::Base*)user)->OnMouseDown(*(MwMouse*)call);
}
static void __OnMouseMove(MwWidget handle, void* user, void* call) {
((MwCXX::Base*)user)->OnMouseMove(*(MwPoint*)call);
}
static void __OnMouseUp(MwWidget handle, void* user, void* call) {
((MwCXX::Base*)user)->OnMouseUp(*(MwMouse*)call);
}
static void __OnResize(MwWidget handle, void* user, void* call) {
((MwCXX::Base*)user)->OnResize();
}
static void __OnTick(MwWidget handle, void* user, void* call) {
((MwCXX::Base*)user)->OnTick();
}
void MwCXX::Base::RegisterHandlers() {
MwAddUserHandler(this->widget, MwNclipboardHandler, __OnClipboard, (void*)this);
MwAddUserHandler(this->widget, MwNdarkThemeHandler, __OnDarkTheme, (void*)this);
MwAddUserHandler(this->widget, MwNfocusInHandler, __OnFocusIn, (void*)this);
MwAddUserHandler(this->widget, MwNfocusOutHandler, __OnFocusOut, (void*)this);
MwAddUserHandler(this->widget, MwNkeyHandler, __OnKey, (void*)this);
MwAddUserHandler(this->widget, MwNkeyReleaseHandler, __OnKeyRelease, (void*)this);
MwAddUserHandler(this->widget, MwNmouseDownHandler, __OnMouseDown, (void*)this);
MwAddUserHandler(this->widget, MwNmouseMoveHandler, __OnMouseMove, (void*)this);
MwAddUserHandler(this->widget, MwNmouseUpHandler, __OnMouseUp, (void*)this);
MwAddUserHandler(this->widget, MwNresizeHandler, __OnResize, (void*)this);
MwAddUserHandler(this->widget, MwNtickHandler, __OnTick, (void*)this);
}

View file

@ -1,52 +0,0 @@
#include <MwCXX/Widget/Box.h>
MwCXX::Box::Box(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
int MwCXX::Box::GetOrientation() {
return (int)MwGetInteger(this->widget, MwNorientation);
}
void MwCXX::Box::SetOrientation(int value) {
MwSetInteger(this->widget, MwNorientation, (int)value);
}
int MwCXX::Box::GetMargin() {
return (int)MwGetInteger(this->widget, MwNmargin);
}
void MwCXX::Box::SetMargin(int value) {
MwSetInteger(this->widget, MwNmargin, (int)value);
}
int MwCXX::Box::GetPadding() {
return (int)MwGetInteger(this->widget, MwNpadding);
}
void MwCXX::Box::SetPadding(int value) {
MwSetInteger(this->widget, MwNpadding, (int)value);
}
int MwCXX::Box::GetHasBorder() {
return (int)MwGetInteger(this->widget, MwNhasBorder);
}
void MwCXX::Box::SetHasBorder(int value) {
MwSetInteger(this->widget, MwNhasBorder, (int)value);
}
int MwCXX::Box::GetInverted() {
return (int)MwGetInteger(this->widget, MwNinverted);
}
void MwCXX::Box::SetInverted(int value) {
MwSetInteger(this->widget, MwNinverted, (int)value);
}
void MwCXX::Box::RegisterHandlers() {
}

View file

@ -1,66 +0,0 @@
#include <MwCXX/Widget/Button.h>
MwCXX::Button::Button(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
MwLLPixmap MwCXX::Button::GetPixmap() {
return (MwLLPixmap)MwGetVoid(this->widget, MwNpixmap);
}
void MwCXX::Button::SetPixmap(MwLLPixmap value) {
MwSetVoid(this->widget, MwNpixmap, (MwLLPixmap)value);
}
MwCXX::String MwCXX::Button::GetText() {
return (MwCXX::String)MwGetText(this->widget, MwNtext);
}
void MwCXX::Button::SetText(MwCXX::String value) {
#ifndef MWCXX_USE_C_STRING
MwSetText(this->widget, MwNtext, value.c_str());
#else
MwSetText(this->widget, MwNtext, (MwCXX::String)value);
#endif
}
int MwCXX::Button::GetFlat() {
return (int)MwGetInteger(this->widget, MwNflat);
}
void MwCXX::Button::SetFlat(int value) {
MwSetInteger(this->widget, MwNflat, (int)value);
}
int MwCXX::Button::GetPadding() {
return (int)MwGetInteger(this->widget, MwNpadding);
}
void MwCXX::Button::SetPadding(int value) {
MwSetInteger(this->widget, MwNpadding, (int)value);
}
int MwCXX::Button::GetFillArea() {
return (int)MwGetInteger(this->widget, MwNfillArea);
}
void MwCXX::Button::SetFillArea(int value) {
MwSetInteger(this->widget, MwNfillArea, (int)value);
}
static void __OnActivate(MwWidget handle, void* user, void* call) {
((MwCXX::Button*)user)->OnActivate();
}
static void __OnChanged(MwWidget handle, void* user, void* call) {
((MwCXX::Button*)user)->OnChanged();
}
void MwCXX::Button::RegisterHandlers() {
MwAddUserHandler(this->widget, MwNactivateHandler, __OnActivate, (void*)this);
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
}

View file

@ -1,25 +0,0 @@
#include <MwCXX/Widget/CheckBox.h>
MwCXX::CheckBox::CheckBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
int MwCXX::CheckBox::GetChecked() {
return (int)MwGetInteger(this->widget, MwNchecked);
}
void MwCXX::CheckBox::SetChecked(int value) {
MwSetInteger(this->widget, MwNchecked, (int)value);
}
static void __OnChanged(MwWidget handle, void* user, void* call) {
((MwCXX::CheckBox*)user)->OnChanged();
}
void MwCXX::CheckBox::RegisterHandlers() {
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
}

View file

@ -1,33 +0,0 @@
#include <MwCXX/Widget/ComboBox.h>
MwCXX::ComboBox::ComboBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
int MwCXX::ComboBox::GetAreaShown() {
return (int)MwGetInteger(this->widget, MwNareaShown);
}
void MwCXX::ComboBox::SetAreaShown(int value) {
MwSetInteger(this->widget, MwNareaShown, (int)value);
}
int MwCXX::ComboBox::GetValue() {
return (int)MwGetInteger(this->widget, MwNvalue);
}
void MwCXX::ComboBox::SetValue(int value) {
MwSetInteger(this->widget, MwNvalue, (int)value);
}
static void __OnComboBoxChanged(MwWidget handle, void* user, void* call) {
((MwCXX::ComboBox*)user)->OnComboBoxChanged(*(int*)call);
}
void MwCXX::ComboBox::RegisterHandlers() {
MwAddUserHandler(this->widget, MwNcomboBoxChangedHandler, __OnComboBoxChanged, (void*)this);
}

View file

@ -1,42 +0,0 @@
#include <MwCXX/Widget/Entry.h>
MwCXX::Entry::Entry(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
MwCXX::String MwCXX::Entry::GetText() {
return (MwCXX::String)MwGetText(this->widget, MwNtext);
}
void MwCXX::Entry::SetText(MwCXX::String value) {
#ifndef MWCXX_USE_C_STRING
MwSetText(this->widget, MwNtext, value.c_str());
#else
MwSetText(this->widget, MwNtext, (MwCXX::String)value);
#endif
}
int MwCXX::Entry::GetHideInput() {
return (int)MwGetInteger(this->widget, MwNhideInput);
}
void MwCXX::Entry::SetHideInput(int value) {
MwSetInteger(this->widget, MwNhideInput, (int)value);
}
static void __OnActivate(MwWidget handle, void* user, void* call) {
((MwCXX::Entry*)user)->OnActivate();
}
static void __OnChanged(MwWidget handle, void* user, void* call) {
((MwCXX::Entry*)user)->OnChanged();
}
void MwCXX::Entry::RegisterHandlers() {
MwAddUserHandler(this->widget, MwNactivateHandler, __OnActivate, (void*)this);
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
}

View file

@ -1,28 +0,0 @@
#include <MwCXX/Widget/Frame.h>
MwCXX::Frame::Frame(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
int MwCXX::Frame::GetHasBorder() {
return (int)MwGetInteger(this->widget, MwNhasBorder);
}
void MwCXX::Frame::SetHasBorder(int value) {
MwSetInteger(this->widget, MwNhasBorder, (int)value);
}
int MwCXX::Frame::GetInverted() {
return (int)MwGetInteger(this->widget, MwNinverted);
}
void MwCXX::Frame::SetInverted(int value) {
MwSetInteger(this->widget, MwNinverted, (int)value);
}
void MwCXX::Frame::RegisterHandlers() {
}

View file

@ -1,44 +0,0 @@
#include <MwCXX/Widget/Image.h>
MwCXX::Image::Image(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
MwLLPixmap MwCXX::Image::GetPixmap() {
return (MwLLPixmap)MwGetVoid(this->widget, MwNpixmap);
}
void MwCXX::Image::SetPixmap(MwLLPixmap value) {
MwSetVoid(this->widget, MwNpixmap, (MwLLPixmap)value);
}
int MwCXX::Image::GetHasBorder() {
return (int)MwGetInteger(this->widget, MwNhasBorder);
}
void MwCXX::Image::SetHasBorder(int value) {
MwSetInteger(this->widget, MwNhasBorder, (int)value);
}
int MwCXX::Image::GetInverted() {
return (int)MwGetInteger(this->widget, MwNinverted);
}
void MwCXX::Image::SetInverted(int value) {
MwSetInteger(this->widget, MwNinverted, (int)value);
}
int MwCXX::Image::GetFillArea() {
return (int)MwGetInteger(this->widget, MwNfillArea);
}
void MwCXX::Image::SetFillArea(int value) {
MwSetInteger(this->widget, MwNfillArea, (int)value);
}
void MwCXX::Image::RegisterHandlers() {
}

View file

@ -1,64 +0,0 @@
#include <MwCXX/Widget/Label.h>
MwCXX::Label::Label(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
MwCXX::String MwCXX::Label::GetText() {
return (MwCXX::String)MwGetText(this->widget, MwNtext);
}
void MwCXX::Label::SetText(MwCXX::String value) {
#ifndef MWCXX_USE_C_STRING
MwSetText(this->widget, MwNtext, value.c_str());
#else
MwSetText(this->widget, MwNtext, (MwCXX::String)value);
#endif
}
int MwCXX::Label::GetAlignment() {
return (int)MwGetInteger(this->widget, MwNalignment);
}
void MwCXX::Label::SetAlignment(int value) {
MwSetInteger(this->widget, MwNalignment, (int)value);
}
int MwCXX::Label::GetBold() {
return (int)MwGetInteger(this->widget, MwNbold);
}
void MwCXX::Label::SetBold(int value) {
MwSetInteger(this->widget, MwNbold, (int)value);
}
int MwCXX::Label::GetSevenSegment() {
return (int)MwGetInteger(this->widget, MwNsevenSegment);
}
void MwCXX::Label::SetSevenSegment(int value) {
MwSetInteger(this->widget, MwNsevenSegment, (int)value);
}
int MwCXX::Label::GetLength() {
return (int)MwGetInteger(this->widget, MwNlength);
}
void MwCXX::Label::SetLength(int value) {
MwSetInteger(this->widget, MwNlength, (int)value);
}
int MwCXX::Label::GetLeftPadding() {
return (int)MwGetInteger(this->widget, MwNleftPadding);
}
void MwCXX::Label::SetLeftPadding(int value) {
MwSetInteger(this->widget, MwNleftPadding, (int)value);
}
void MwCXX::Label::RegisterHandlers() {
}

View file

@ -1,41 +0,0 @@
#include <MwCXX/Widget/ListBox.h>
MwCXX::ListBox::ListBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
int MwCXX::ListBox::GetLeftPadding() {
return (int)MwGetInteger(this->widget, MwNleftPadding);
}
void MwCXX::ListBox::SetLeftPadding(int value) {
MwSetInteger(this->widget, MwNleftPadding, (int)value);
}
int MwCXX::ListBox::GetHasHeading() {
return (int)MwGetInteger(this->widget, MwNhasHeading);
}
void MwCXX::ListBox::SetHasHeading(int value) {
MwSetInteger(this->widget, MwNhasHeading, (int)value);
}
int MwCXX::ListBox::GetSingleClickSelectable() {
return (int)MwGetInteger(this->widget, MwNsingleClickSelectable);
}
void MwCXX::ListBox::SetSingleClickSelectable(int value) {
MwSetInteger(this->widget, MwNsingleClickSelectable, (int)value);
}
static void __OnListBoxActivate(MwWidget handle, void* user, void* call) {
((MwCXX::ListBox*)user)->OnListBoxActivate(*(int*)call);
}
void MwCXX::ListBox::RegisterHandlers() {
MwAddUserHandler(this->widget, MwNlistBoxActivateHandler, __OnListBoxActivate, (void*)this);
}

View file

@ -1,17 +0,0 @@
#include <MwCXX/Widget/Menu.h>
MwCXX::Menu::Menu(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
static void __OnMenu(MwWidget handle, void* user, void* call) {
((MwCXX::Menu*)user)->OnMenu((void*)call);
}
void MwCXX::Menu::RegisterHandlers() {
MwAddUserHandler(this->widget, MwNmenuHandler, __OnMenu, (void*)this);
}

View file

@ -1,34 +0,0 @@
#include <MwCXX/Widget/NumberEntry.h>
MwCXX::NumberEntry::NumberEntry(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
MwCXX::String MwCXX::NumberEntry::GetText() {
return (MwCXX::String)MwGetText(this->widget, MwNtext);
}
void MwCXX::NumberEntry::SetText(MwCXX::String value) {
#ifndef MWCXX_USE_C_STRING
MwSetText(this->widget, MwNtext, value.c_str());
#else
MwSetText(this->widget, MwNtext, (MwCXX::String)value);
#endif
}
static void __OnActivate(MwWidget handle, void* user, void* call) {
((MwCXX::NumberEntry*)user)->OnActivate();
}
static void __OnChanged(MwWidget handle, void* user, void* call) {
((MwCXX::NumberEntry*)user)->OnChanged();
}
void MwCXX::NumberEntry::RegisterHandlers() {
MwAddUserHandler(this->widget, MwNactivateHandler, __OnActivate, (void*)this);
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
}

View file

@ -1,13 +0,0 @@
#define MW_OPENGL_NO_INCLUDE
#include <MwCXX/Widget/OpenGL.h>
MwCXX::OpenGL::OpenGL(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
void MwCXX::OpenGL::RegisterHandlers() {
}

View file

@ -1,36 +0,0 @@
#include <MwCXX/Widget/ProgressBar.h>
MwCXX::ProgressBar::ProgressBar(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
int MwCXX::ProgressBar::GetMinValue() {
return (int)MwGetInteger(this->widget, MwNminValue);
}
void MwCXX::ProgressBar::SetMinValue(int value) {
MwSetInteger(this->widget, MwNminValue, (int)value);
}
int MwCXX::ProgressBar::GetMaxValue() {
return (int)MwGetInteger(this->widget, MwNmaxValue);
}
void MwCXX::ProgressBar::SetMaxValue(int value) {
MwSetInteger(this->widget, MwNmaxValue, (int)value);
}
int MwCXX::ProgressBar::GetValue() {
return (int)MwGetInteger(this->widget, MwNvalue);
}
void MwCXX::ProgressBar::SetValue(int value) {
MwSetInteger(this->widget, MwNvalue, (int)value);
}
void MwCXX::ProgressBar::RegisterHandlers() {
}

View file

@ -1,25 +0,0 @@
#include <MwCXX/Widget/RadioBox.h>
MwCXX::RadioBox::RadioBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
int MwCXX::RadioBox::GetChecked() {
return (int)MwGetInteger(this->widget, MwNchecked);
}
void MwCXX::RadioBox::SetChecked(int value) {
MwSetInteger(this->widget, MwNchecked, (int)value);
}
static void __OnChanged(MwWidget handle, void* user, void* call) {
((MwCXX::RadioBox*)user)->OnChanged();
}
void MwCXX::RadioBox::RegisterHandlers() {
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
}

View file

@ -1,65 +0,0 @@
#include <MwCXX/Widget/ScrollBar.h>
MwCXX::ScrollBar::ScrollBar(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
int MwCXX::ScrollBar::GetShowArrows() {
return (int)MwGetInteger(this->widget, MwNshowArrows);
}
void MwCXX::ScrollBar::SetShowArrows(int value) {
MwSetInteger(this->widget, MwNshowArrows, (int)value);
}
int MwCXX::ScrollBar::GetAreaShown() {
return (int)MwGetInteger(this->widget, MwNareaShown);
}
void MwCXX::ScrollBar::SetAreaShown(int value) {
MwSetInteger(this->widget, MwNareaShown, (int)value);
}
int MwCXX::ScrollBar::GetValue() {
return (int)MwGetInteger(this->widget, MwNvalue);
}
void MwCXX::ScrollBar::SetValue(int value) {
MwSetInteger(this->widget, MwNvalue, (int)value);
}
int MwCXX::ScrollBar::GetMinValue() {
return (int)MwGetInteger(this->widget, MwNminValue);
}
void MwCXX::ScrollBar::SetMinValue(int value) {
MwSetInteger(this->widget, MwNminValue, (int)value);
}
int MwCXX::ScrollBar::GetMaxValue() {
return (int)MwGetInteger(this->widget, MwNmaxValue);
}
void MwCXX::ScrollBar::SetMaxValue(int value) {
MwSetInteger(this->widget, MwNmaxValue, (int)value);
}
int MwCXX::ScrollBar::GetOrientation() {
return (int)MwGetInteger(this->widget, MwNorientation);
}
void MwCXX::ScrollBar::SetOrientation(int value) {
MwSetInteger(this->widget, MwNorientation, (int)value);
}
static void __OnChanged(MwWidget handle, void* user, void* call) {
((MwCXX::ScrollBar*)user)->OnChanged();
}
void MwCXX::ScrollBar::RegisterHandlers() {
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChanged, (void*)this);
}

View file

@ -1,20 +0,0 @@
#include <MwCXX/Widget/SubMenu.h>
MwCXX::SubMenu::SubMenu(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
int MwCXX::SubMenu::GetLeftPadding() {
return (int)MwGetInteger(this->widget, MwNleftPadding);
}
void MwCXX::SubMenu::SetLeftPadding(int value) {
MwSetInteger(this->widget, MwNleftPadding, (int)value);
}
void MwCXX::SubMenu::RegisterHandlers() {
}

View file

@ -1,33 +0,0 @@
#include <MwCXX/Widget/TreeView.h>
MwCXX::TreeView::TreeView(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
int MwCXX::TreeView::GetLeftPadding() {
return (int)MwGetInteger(this->widget, MwNleftPadding);
}
void MwCXX::TreeView::SetLeftPadding(int value) {
MwSetInteger(this->widget, MwNleftPadding, (int)value);
}
int MwCXX::TreeView::GetSingleClickSelectable() {
return (int)MwGetInteger(this->widget, MwNsingleClickSelectable);
}
void MwCXX::TreeView::SetSingleClickSelectable(int value) {
MwSetInteger(this->widget, MwNsingleClickSelectable, (int)value);
}
static void __OnTreeViewActivate(MwWidget handle, void* user, void* call) {
((MwCXX::TreeView*)user)->OnTreeViewActivate((void*)call);
}
void MwCXX::TreeView::RegisterHandlers() {
MwAddUserHandler(this->widget, MwNtreeViewActivateHandler, __OnTreeViewActivate, (void*)this);
}

View file

@ -1,12 +0,0 @@
#include <MwCXX/Widget/Viewport.h>
MwCXX::Viewport::Viewport(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
void MwCXX::Viewport::RegisterHandlers() {
}

View file

@ -1,13 +0,0 @@
#define MW_VULKAN_NO_INCLUDE
#include <MwCXX/Widget/Vulkan.h>
MwCXX::Vulkan::Vulkan(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
void MwCXX::Vulkan::RegisterHandlers() {
}

View file

@ -1,64 +0,0 @@
#include <MwCXX/Widget/Window.h>
MwCXX::Window::Window(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
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) {
this->RegisterHandlers();
}
MwCXX::String MwCXX::Window::GetTitle() {
return (MwCXX::String)MwGetText(this->widget, MwNtitle);
}
void MwCXX::Window::SetTitle(MwCXX::String value) {
#ifndef MWCXX_USE_C_STRING
MwSetText(this->widget, MwNtitle, value.c_str());
#else
MwSetText(this->widget, MwNtitle, (MwCXX::String)value);
#endif
}
int MwCXX::Window::GetMain() {
return (int)MwGetInteger(this->widget, MwNmain);
}
void MwCXX::Window::SetMain(int value) {
MwSetInteger(this->widget, MwNmain, (int)value);
}
MwLLPixmap MwCXX::Window::GetIconPixmap() {
return (MwLLPixmap)MwGetVoid(this->widget, MwNiconPixmap);
}
void MwCXX::Window::SetIconPixmap(MwLLPixmap value) {
MwSetVoid(this->widget, MwNiconPixmap, (MwLLPixmap)value);
}
MwSizeHints* MwCXX::Window::GetSizeHints() {
return (MwSizeHints*)MwGetVoid(this->widget, MwNsizeHints);
}
void MwCXX::Window::SetSizeHints(MwSizeHints* value) {
MwSetVoid(this->widget, MwNsizeHints, (MwSizeHints*)value);
}
int MwCXX::Window::GetHasBorder() {
return (int)MwGetInteger(this->widget, MwNhasBorder);
}
void MwCXX::Window::SetHasBorder(int value) {
MwSetInteger(this->widget, MwNhasBorder, (int)value);
}
int MwCXX::Window::GetInverted() {
return (int)MwGetInteger(this->widget, MwNinverted);
}
void MwCXX::Window::SetInverted(int value) {
MwSetInteger(this->widget, MwNinverted, (int)value);
}
void MwCXX::Window::RegisterHandlers() {
}

View file

@ -10,7 +10,7 @@ class MyButton : public MwCXX::Button {
void OnActivate() { void OnActivate() {
std::cout << "Hello" << std::endl; std::cout << "Hello" << std::endl;
MwCXX::MessageBoxGetChild(MwCXX::MessageBox(this->GetParent(), "Hello", "Hello world", MwMB_BUTTONOK | MwMB_ICONNEWS)); MwCXX::MessageBox(this->GetParent(), "Hello", "Hello world", MwMB_BUTTONOK | MwMB_ICONNEWS);
} }
public: public: