fix things

This commit is contained in:
Nishi 2026-04-17 21:26:28 +09:00
commit 2c44efeb2f
Signed by: nishi
GPG key ID: 27EF69B208EB9343
48 changed files with 315 additions and 394 deletions

View file

@ -5,14 +5,14 @@
namespace MwCXX {
class Base {
protected:
MwWidget widget;
protected:
MwWidget widget;
public:
Base(MwWidget widget);
Base(MwClass widget_class, MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
Base(MwWidget widget);
Base(MwClass widget_class, MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
void Loop();
void Loop();
#include <MwCXX/Widget/BaseAuto.h>
};

View file

@ -1,58 +1,38 @@
MwCXX::String GetBackground();
void SetBackground(MwCXX::String value);
MwLLPixmap GetBackgroundPixmap();
void SetBackgroundPixmap(MwLLPixmap value);
int GetBitmapFont();
void SetBitmapFont(int value);
int GetBorderWidth();
void SetBorderWidth(int value);
GetClipboard();
void SetClipboard( value);
GetDarkTheme();
void SetDarkTheme( value);
int GetFixedSize();
void SetFixedSize(int value);
GetFocusIn();
void SetFocusIn( value);
GetFocusOut();
void SetFocusOut( value);
int GetForceInverted();
void SetForceInverted(int value);
void SetBackground(MwCXX::String value);
MwLLPixmap GetBackgroundPixmap();
void SetBackgroundPixmap(MwLLPixmap value);
int GetBitmapFont();
void SetBitmapFont(int value);
int GetBorderWidth();
void SetBorderWidth(int value);
int GetDarkTheme();
void SetDarkTheme(int value);
int GetFixedSize();
void SetFixedSize(int value);
int GetForceInverted();
void SetForceInverted(int value);
MwCXX::String GetForeground();
void SetForeground(MwCXX::String value);
int GetHeight();
void SetHeight(int value);
int GetIsRounded();
void SetIsRounded(int value);
GetKey();
void SetKey( value);
GetKeyRelease();
void SetKeyRelease( value);
int GetModernLook();
void SetModernLook(int value);
GetMouseDown();
void SetMouseDown( value);
GetMouseMove();
void SetMouseMove( value);
GetMouseUp();
void SetMouseUp( value);
int GetRatio();
void SetRatio(int value);
GetResize();
void SetResize( value);
void SetForeground(MwCXX::String value);
int GetHeight();
void SetHeight(int value);
int GetIsRounded();
void SetIsRounded(int value);
int GetModernLook();
void SetModernLook(int value);
int GetRatio();
void SetRatio(int value);
MwCXX::String GetSubBackground();
void SetSubBackground(MwCXX::String value);
void SetSubBackground(MwCXX::String value);
MwCXX::String GetSubForeground();
void SetSubForeground(MwCXX::String value);
GetTick();
void SetTick( value);
int GetUseMonospace();
void SetUseMonospace(int value);
int GetWaitMS();
void SetWaitMS(int value);
int GetWidth();
void SetWidth(int value);
int GetX();
void SetX(int value);
int GetY();
void SetY(int value);
void SetSubForeground(MwCXX::String value);
int GetUseMonospace();
void SetUseMonospace(int value);
int GetWaitMS();
void SetWaitMS(int value);
int GetWidth();
void SetWidth(int value);
int GetX();
void SetX(int value);
int GetY();
void SetY(int value);

View file

@ -8,20 +8,20 @@
namespace MwCXX {
class Box : public MwCXX::Base {
public:
Box(MwWidget widget);
Box(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
Box(MwWidget widget);
Box(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetOrientation();
void SetOrientation(int value);
int GetMargin();
void SetMargin(int value);
int GetPadding();
void SetPadding(int value);
int GetHasBorder();
void SetHasBorder(int value);
int GetInverted();
void SetInverted(int value);
int GetOrientation();
void SetOrientation(int value);
int GetMargin();
void SetMargin(int value);
int GetPadding();
void SetPadding(int value);
int GetHasBorder();
void SetHasBorder(int value);
int GetInverted();
void SetInverted(int value);
};
}; // namespace MwCXX

View file

@ -8,20 +8,20 @@
namespace MwCXX {
class Button : public MwCXX::Base {
public:
Button(MwWidget widget);
Button(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
Button(MwWidget widget);
Button(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
MwLLPixmap GetPixmap();
void SetPixmap(MwLLPixmap value);
MwCXX::String GetText();
void SetText(MwCXX::String value);
int GetFlat();
void SetFlat(int value);
int GetPadding();
void SetPadding(int value);
int GetFillArea();
void SetFillArea(int value);
MwLLPixmap GetPixmap();
void SetPixmap(MwLLPixmap value);
MwCXX::String GetText();
void SetText(MwCXX::String value);
int GetFlat();
void SetFlat(int value);
int GetPadding();
void SetPadding(int value);
int GetFillArea();
void SetFillArea(int value);
};
}; // namespace MwCXX

View file

@ -8,12 +8,12 @@
namespace MwCXX {
class CheckBox : public MwCXX::Base {
public:
CheckBox(MwWidget widget);
CheckBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
CheckBox(MwWidget widget);
CheckBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetChecked();
void SetChecked(int value);
int GetChecked();
void SetChecked(int value);
};
}; // namespace MwCXX

View file

@ -8,14 +8,14 @@
namespace MwCXX {
class ComboBox : public MwCXX::Base {
public:
ComboBox(MwWidget widget);
ComboBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
ComboBox(MwWidget widget);
ComboBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetAreaShown();
void SetAreaShown(int value);
int GetValue();
void SetValue(int value);
int GetAreaShown();
void SetAreaShown(int value);
int GetValue();
void SetValue(int value);
};
}; // namespace MwCXX

View file

@ -8,14 +8,14 @@
namespace MwCXX {
class Entry : public MwCXX::Base {
public:
Entry(MwWidget widget);
Entry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
Entry(MwWidget widget);
Entry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
MwCXX::String GetText();
void SetText(MwCXX::String value);
int GetHideInput();
void SetHideInput(int value);
MwCXX::String GetText();
void SetText(MwCXX::String value);
int GetHideInput();
void SetHideInput(int value);
};
}; // namespace MwCXX

View file

@ -8,14 +8,14 @@
namespace MwCXX {
class Frame : public MwCXX::Base {
public:
Frame(MwWidget widget);
Frame(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
Frame(MwWidget widget);
Frame(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetHasBorder();
void SetHasBorder(int value);
int GetInverted();
void SetInverted(int value);
int GetHasBorder();
void SetHasBorder(int value);
int GetInverted();
void SetInverted(int value);
};
}; // namespace MwCXX

View file

@ -8,18 +8,18 @@
namespace MwCXX {
class Image : public MwCXX::Base {
public:
Image(MwWidget widget);
Image(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
Image(MwWidget widget);
Image(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
MwLLPixmap GetPixmap();
void SetPixmap(MwLLPixmap value);
int GetHasBorder();
void SetHasBorder(int value);
int GetInverted();
void SetInverted(int value);
int GetFillArea();
void SetFillArea(int value);
MwLLPixmap GetPixmap();
void SetPixmap(MwLLPixmap value);
int GetHasBorder();
void SetHasBorder(int value);
int GetInverted();
void SetInverted(int value);
int GetFillArea();
void SetFillArea(int value);
};
}; // namespace MwCXX

View file

@ -8,22 +8,22 @@
namespace MwCXX {
class Label : public MwCXX::Base {
public:
Label(MwWidget widget);
Label(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
Label(MwWidget widget);
Label(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
MwCXX::String GetText();
void SetText(MwCXX::String value);
int GetAlignment();
void SetAlignment(int value);
int GetBold();
void SetBold(int value);
int GetSevenSegment();
void SetSevenSegment(int value);
int GetLength();
void SetLength(int value);
int GetLeftPadding();
void SetLeftPadding(int value);
MwCXX::String GetText();
void SetText(MwCXX::String value);
int GetAlignment();
void SetAlignment(int value);
int GetBold();
void SetBold(int value);
int GetSevenSegment();
void SetSevenSegment(int value);
int GetLength();
void SetLength(int value);
int GetLeftPadding();
void SetLeftPadding(int value);
};
}; // namespace MwCXX

View file

@ -8,16 +8,16 @@
namespace MwCXX {
class ListBox : public MwCXX::Base {
public:
ListBox(MwWidget widget);
ListBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
ListBox(MwWidget widget);
ListBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetLeftPadding();
void SetLeftPadding(int value);
int GetHasHeading();
void SetHasHeading(int value);
int GetSingleClickSelectable();
void SetSingleClickSelectable(int value);
int GetLeftPadding();
void SetLeftPadding(int value);
int GetHasHeading();
void SetHasHeading(int value);
int GetSingleClickSelectable();
void SetSingleClickSelectable(int value);
};
}; // namespace MwCXX

View file

@ -8,9 +8,9 @@
namespace MwCXX {
class Menu : public MwCXX::Base {
public:
Menu(MwWidget widget);
Menu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
Menu(MwWidget widget);
Menu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
};
}; // namespace MwCXX

View file

@ -8,12 +8,12 @@
namespace MwCXX {
class NumberEntry : public MwCXX::Base {
public:
NumberEntry(MwWidget widget);
NumberEntry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
NumberEntry(MwWidget widget);
NumberEntry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
MwCXX::String GetText();
void SetText(MwCXX::String value);
MwCXX::String GetText();
void SetText(MwCXX::String value);
};
}; // namespace MwCXX

View file

@ -8,9 +8,9 @@
namespace MwCXX {
class OpenGL : public MwCXX::Base {
public:
OpenGL(MwWidget widget);
OpenGL(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
OpenGL(MwWidget widget);
OpenGL(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
};
}; // namespace MwCXX

View file

@ -8,16 +8,16 @@
namespace MwCXX {
class ProgressBar : public MwCXX::Base {
public:
ProgressBar(MwWidget widget);
ProgressBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
ProgressBar(MwWidget widget);
ProgressBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetMinValue();
void SetMinValue(int value);
int GetMaxValue();
void SetMaxValue(int value);
int GetValue();
void SetValue(int value);
int GetMinValue();
void SetMinValue(int value);
int GetMaxValue();
void SetMaxValue(int value);
int GetValue();
void SetValue(int value);
};
}; // namespace MwCXX

View file

@ -8,12 +8,12 @@
namespace MwCXX {
class RadioBox : public MwCXX::Base {
public:
RadioBox(MwWidget widget);
RadioBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
RadioBox(MwWidget widget);
RadioBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetChecked();
void SetChecked(int value);
int GetChecked();
void SetChecked(int value);
};
}; // namespace MwCXX

View file

@ -8,22 +8,22 @@
namespace MwCXX {
class ScrollBar : public MwCXX::Base {
public:
ScrollBar(MwWidget widget);
ScrollBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
ScrollBar(MwWidget widget);
ScrollBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetShowArrows();
void SetShowArrows(int value);
int GetAreaShown();
void SetAreaShown(int value);
int GetValue();
void SetValue(int value);
int GetMinValue();
void SetMinValue(int value);
int GetMaxValue();
void SetMaxValue(int value);
int GetOrientation();
void SetOrientation(int value);
int GetShowArrows();
void SetShowArrows(int value);
int GetAreaShown();
void SetAreaShown(int value);
int GetValue();
void SetValue(int value);
int GetMinValue();
void SetMinValue(int value);
int GetMaxValue();
void SetMaxValue(int value);
int GetOrientation();
void SetOrientation(int value);
};
}; // namespace MwCXX

View file

@ -8,12 +8,12 @@
namespace MwCXX {
class SubMenu : public MwCXX::Base {
public:
SubMenu(MwWidget widget);
SubMenu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
SubMenu(MwWidget widget);
SubMenu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetLeftPadding();
void SetLeftPadding(int value);
int GetLeftPadding();
void SetLeftPadding(int value);
};
}; // namespace MwCXX

View file

@ -8,14 +8,14 @@
namespace MwCXX {
class TreeView : public MwCXX::Base {
public:
TreeView(MwWidget widget);
TreeView(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
TreeView(MwWidget widget);
TreeView(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetLeftPadding();
void SetLeftPadding(int value);
int GetSingleClickSelectable();
void SetSingleClickSelectable(int value);
int GetLeftPadding();
void SetLeftPadding(int value);
int GetSingleClickSelectable();
void SetSingleClickSelectable(int value);
};
}; // namespace MwCXX

View file

@ -8,9 +8,9 @@
namespace MwCXX {
class Viewport : public MwCXX::Base {
public:
Viewport(MwWidget widget);
Viewport(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
Viewport(MwWidget widget);
Viewport(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
};
}; // namespace MwCXX

View file

@ -8,9 +8,9 @@
namespace MwCXX {
class Vulkan : public MwCXX::Base {
public:
Vulkan(MwWidget widget);
Vulkan(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
Vulkan(MwWidget widget);
Vulkan(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
};
}; // namespace MwCXX

View file

@ -8,22 +8,22 @@
namespace MwCXX {
class Window : public MwCXX::Base {
public:
Window(MwWidget widget);
Window(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
public:
Window(MwWidget widget);
Window(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
MwCXX::String GetTitle();
void SetTitle(MwCXX::String value);
int GetMain();
void SetMain(int value);
MwLLPixmap GetIconPixmap();
void SetIconPixmap(MwLLPixmap value);
MwSizeHints* GetSizeHints();
void SetSizeHints(MwSizeHints* value);
int GetHasBorder();
void SetHasBorder(int value);
int GetInverted();
void SetInverted(int value);
MwCXX::String GetTitle();
void SetTitle(MwCXX::String value);
int GetMain();
void SetMain(int value);
MwLLPixmap GetIconPixmap();
void SetIconPixmap(MwLLPixmap value);
MwSizeHints* GetSizeHints();
void SetSizeHints(MwSizeHints* value);
int GetHasBorder();
void SetHasBorder(int value);
int GetInverted();
void SetInverted(int value);
};
}; // namespace MwCXX