This commit is contained in:
Nishi 2026-04-18 19:46:43 +09:00
commit db7238f1ed
Signed by: nishi
GPG key ID: 27EF69B208EB9343
43 changed files with 179 additions and 226 deletions

View file

@ -3,10 +3,9 @@
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);
} }

View file

@ -3,10 +3,9 @@
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);
} }

View file

@ -3,21 +3,18 @@
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);
} }

View file

@ -3,19 +3,17 @@
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);

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/Box.h> #include <MwCXX/Widget/Box.h>
MwCXX::Box::Box(MwWidget widget, MwCXX::Base* parent) MwCXX::Box::Box(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwBoxClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/Button.h> #include <MwCXX/Widget/Button.h>
MwCXX::Button::Button(MwWidget widget, MwCXX::Base* parent) MwCXX::Button::Button(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwButtonClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/CheckBox.h> #include <MwCXX/Widget/CheckBox.h>
MwCXX::CheckBox::CheckBox(MwWidget widget, MwCXX::Base* parent) MwCXX::CheckBox::CheckBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwCheckBoxClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/ComboBox.h> #include <MwCXX/Widget/ComboBox.h>
MwCXX::ComboBox::ComboBox(MwWidget widget, MwCXX::Base* parent) MwCXX::ComboBox::ComboBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwComboBoxClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/Entry.h> #include <MwCXX/Widget/Entry.h>
MwCXX::Entry::Entry(MwWidget widget, MwCXX::Base* parent) MwCXX::Entry::Entry(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwEntryClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/Frame.h> #include <MwCXX/Widget/Frame.h>
MwCXX::Frame::Frame(MwWidget widget, MwCXX::Base* parent) MwCXX::Frame::Frame(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwFrameClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/Image.h> #include <MwCXX/Widget/Image.h>
MwCXX::Image::Image(MwWidget widget, MwCXX::Base* parent) MwCXX::Image::Image(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwImageClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/Label.h> #include <MwCXX/Widget/Label.h>
MwCXX::Label::Label(MwWidget widget, MwCXX::Base* parent) MwCXX::Label::Label(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwLabelClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/ListBox.h> #include <MwCXX/Widget/ListBox.h>
MwCXX::ListBox::ListBox(MwWidget widget, MwCXX::Base* parent) MwCXX::ListBox::ListBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwListBoxClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/Menu.h> #include <MwCXX/Widget/Menu.h>
MwCXX::Menu::Menu(MwWidget widget, MwCXX::Base* parent) MwCXX::Menu::Menu(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwMenuClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/NumberEntry.h> #include <MwCXX/Widget/NumberEntry.h>
MwCXX::NumberEntry::NumberEntry(MwWidget widget, MwCXX::Base* parent) MwCXX::NumberEntry::NumberEntry(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwNumberEntryClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,13 +1,11 @@
#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::OpenGL::OpenGL(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwOpenGLClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/ProgressBar.h> #include <MwCXX/Widget/ProgressBar.h>
MwCXX::ProgressBar::ProgressBar(MwWidget widget, MwCXX::Base* parent) MwCXX::ProgressBar::ProgressBar(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwProgressBarClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/RadioBox.h> #include <MwCXX/Widget/RadioBox.h>
MwCXX::RadioBox::RadioBox(MwWidget widget, MwCXX::Base* parent) MwCXX::RadioBox::RadioBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwRadioBoxClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/ScrollBar.h> #include <MwCXX/Widget/ScrollBar.h>
MwCXX::ScrollBar::ScrollBar(MwWidget widget, MwCXX::Base* parent) MwCXX::ScrollBar::ScrollBar(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwScrollBarClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/SubMenu.h> #include <MwCXX/Widget/SubMenu.h>
MwCXX::SubMenu::SubMenu(MwWidget widget, MwCXX::Base* parent) MwCXX::SubMenu::SubMenu(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwSubMenuClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/TreeView.h> #include <MwCXX/Widget/TreeView.h>
MwCXX::TreeView::TreeView(MwWidget widget, MwCXX::Base* parent) MwCXX::TreeView::TreeView(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwTreeViewClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/Viewport.h> #include <MwCXX/Widget/Viewport.h>
MwCXX::Viewport::Viewport(MwWidget widget, MwCXX::Base* parent) MwCXX::Viewport::Viewport(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwViewportClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,13 +1,11 @@
#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::Vulkan::Vulkan(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwVulkanClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }

View file

@ -1,12 +1,10 @@
#include <MwCXX/Widget/Window.h> #include <MwCXX/Widget/Window.h>
MwCXX::Window::Window(MwWidget widget, MwCXX::Base* parent) MwCXX::Window::Window(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, 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::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::Base(MwWindowClass, name, parent, x, y, width, height) {
this->RegisterHandlers(); this->RegisterHandlers();
} }