fix things
This commit is contained in:
parent
ae7df4cb63
commit
2c44efeb2f
48 changed files with 315 additions and 394 deletions
|
|
@ -5,7 +5,7 @@ AlignConsecutiveAssignments:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
AlignConsecutiveDeclarations:
|
AlignConsecutiveDeclarations:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
IndentAccessModifiers: true
|
AccessModifierOffset: -4
|
||||||
NamespaceIndentation: All
|
NamespaceIndentation: All
|
||||||
IndentWidth: 8
|
IndentWidth: 8
|
||||||
PointerAlignment: Left
|
PointerAlignment: Left
|
||||||
|
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,3 +3,5 @@
|
||||||
/*.exe
|
/*.exe
|
||||||
/*.so
|
/*.so
|
||||||
/*.dll
|
/*.dll
|
||||||
|
/a.out
|
||||||
|
*.o
|
||||||
|
|
|
||||||
22
bindgen.cxx
22
bindgen.cxx
|
|
@ -7,16 +7,16 @@
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
|
||||||
struct typeinfo {
|
struct typeinfo {
|
||||||
std::string type;
|
std::string type;
|
||||||
std::string name;
|
std::string name;
|
||||||
std::string struct_name;
|
std::string struct_name;
|
||||||
int pointer;
|
int pointer;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct property {
|
struct property {
|
||||||
typeinfo type;
|
typeinfo type;
|
||||||
int common;
|
int common;
|
||||||
typeinfo arg_type;
|
typeinfo arg_type;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::map<std::string, std::ofstream> files;
|
std::map<std::string, std::ofstream> files;
|
||||||
|
|
@ -230,15 +230,15 @@ static void scan_widget(xl_node_t* node) {
|
||||||
|
|
||||||
OFS << "namespace MwCXX {" << std::endl;
|
OFS << "namespace MwCXX {" << std::endl;
|
||||||
OFS << " class " + name + " : public MwCXX::Base {" << std::endl;
|
OFS << " class " + name + " : public MwCXX::Base {" << std::endl;
|
||||||
OFS << " public:" << std::endl;
|
OFS << " public:" << std::endl;
|
||||||
OFS << " " + name + "(MwWidget widget);" << std::endl;
|
OFS << " " + name + "(MwWidget widget);" << std::endl;
|
||||||
OFS << " " + name + "(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);" << std::endl;
|
OFS << " " + name + "(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);" << std::endl;
|
||||||
|
|
||||||
if(nodes != NULL) {
|
if(nodes != NULL) {
|
||||||
std::string r = "";
|
std::string r = "";
|
||||||
|
|
||||||
for(i = 0; nodes[i] != NULL; i++) {
|
for(i = 0; nodes[i] != NULL; i++) {
|
||||||
r += scan_widget_properties_header(nodes[i], "\t\t\t");
|
r += scan_widget_properties_header(nodes[i], "\t\t");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(r != "") OFS << std::endl
|
if(r != "") OFS << std::endl
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class Base {
|
class Base {
|
||||||
protected:
|
protected:
|
||||||
MwWidget widget;
|
MwWidget widget;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Base(MwWidget widget);
|
Base(MwWidget widget);
|
||||||
Base(MwClass widget_class, MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
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>
|
#include <MwCXX/Widget/BaseAuto.h>
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,58 +1,38 @@
|
||||||
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);
|
||||||
GetClipboard();
|
int GetDarkTheme();
|
||||||
void SetClipboard( value);
|
void SetDarkTheme(int value);
|
||||||
GetDarkTheme();
|
int GetFixedSize();
|
||||||
void SetDarkTheme( value);
|
void SetFixedSize(int value);
|
||||||
int GetFixedSize();
|
int GetForceInverted();
|
||||||
void SetFixedSize(int value);
|
void SetForceInverted(int value);
|
||||||
GetFocusIn();
|
|
||||||
void SetFocusIn( value);
|
|
||||||
GetFocusOut();
|
|
||||||
void SetFocusOut( value);
|
|
||||||
int GetForceInverted();
|
|
||||||
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);
|
||||||
GetKey();
|
int GetModernLook();
|
||||||
void SetKey( value);
|
void SetModernLook(int value);
|
||||||
GetKeyRelease();
|
int GetRatio();
|
||||||
void SetKeyRelease( value);
|
void SetRatio(int 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);
|
|
||||||
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);
|
||||||
GetTick();
|
int GetUseMonospace();
|
||||||
void SetTick( value);
|
void SetUseMonospace(int value);
|
||||||
int GetUseMonospace();
|
int GetWaitMS();
|
||||||
void SetUseMonospace(int value);
|
void SetWaitMS(int value);
|
||||||
int GetWaitMS();
|
int GetWidth();
|
||||||
void SetWaitMS(int value);
|
void SetWidth(int value);
|
||||||
int GetWidth();
|
int GetX();
|
||||||
void SetWidth(int value);
|
void SetX(int value);
|
||||||
int GetX();
|
int GetY();
|
||||||
void SetX(int value);
|
void SetY(int value);
|
||||||
int GetY();
|
|
||||||
void SetY(int value);
|
|
||||||
|
|
|
||||||
|
|
@ -8,20 +8,20 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class Box : public MwCXX::Base {
|
class Box : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
Box(MwWidget widget);
|
Box(MwWidget widget);
|
||||||
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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,20 +8,20 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class Button : public MwCXX::Base {
|
class Button : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
Button(MwWidget widget);
|
Button(MwWidget widget);
|
||||||
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);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class CheckBox : public MwCXX::Base {
|
class CheckBox : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
CheckBox(MwWidget widget);
|
CheckBox(MwWidget widget);
|
||||||
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);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,14 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class ComboBox : public MwCXX::Base {
|
class ComboBox : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
ComboBox(MwWidget widget);
|
ComboBox(MwWidget widget);
|
||||||
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);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,14 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class Entry : public MwCXX::Base {
|
class Entry : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
Entry(MwWidget widget);
|
Entry(MwWidget widget);
|
||||||
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);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,14 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class Frame : public MwCXX::Base {
|
class Frame : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
Frame(MwWidget widget);
|
Frame(MwWidget widget);
|
||||||
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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,18 +8,18 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class Image : public MwCXX::Base {
|
class Image : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
Image(MwWidget widget);
|
Image(MwWidget widget);
|
||||||
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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,22 +8,22 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class Label : public MwCXX::Base {
|
class Label : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
Label(MwWidget widget);
|
Label(MwWidget widget);
|
||||||
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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,16 +8,16 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class ListBox : public MwCXX::Base {
|
class ListBox : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
ListBox(MwWidget widget);
|
ListBox(MwWidget widget);
|
||||||
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);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class Menu : public MwCXX::Base {
|
class Menu : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
Menu(MwWidget widget);
|
Menu(MwWidget widget);
|
||||||
Menu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
Menu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class NumberEntry : public MwCXX::Base {
|
class NumberEntry : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
NumberEntry(MwWidget widget);
|
NumberEntry(MwWidget widget);
|
||||||
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);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class OpenGL : public MwCXX::Base {
|
class OpenGL : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
OpenGL(MwWidget widget);
|
OpenGL(MwWidget widget);
|
||||||
OpenGL(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
OpenGL(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,16 +8,16 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class ProgressBar : public MwCXX::Base {
|
class ProgressBar : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
ProgressBar(MwWidget widget);
|
ProgressBar(MwWidget widget);
|
||||||
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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class RadioBox : public MwCXX::Base {
|
class RadioBox : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
RadioBox(MwWidget widget);
|
RadioBox(MwWidget widget);
|
||||||
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);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,22 +8,22 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class ScrollBar : public MwCXX::Base {
|
class ScrollBar : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
ScrollBar(MwWidget widget);
|
ScrollBar(MwWidget widget);
|
||||||
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);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class SubMenu : public MwCXX::Base {
|
class SubMenu : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
SubMenu(MwWidget widget);
|
SubMenu(MwWidget widget);
|
||||||
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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,14 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class TreeView : public MwCXX::Base {
|
class TreeView : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
TreeView(MwWidget widget);
|
TreeView(MwWidget widget);
|
||||||
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);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class Viewport : public MwCXX::Base {
|
class Viewport : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
Viewport(MwWidget widget);
|
Viewport(MwWidget widget);
|
||||||
Viewport(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
Viewport(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class Vulkan : public MwCXX::Base {
|
class Vulkan : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
Vulkan(MwWidget widget);
|
Vulkan(MwWidget widget);
|
||||||
Vulkan(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
Vulkan(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
};
|
};
|
||||||
}; // namespace MwCXX
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,22 +8,22 @@
|
||||||
|
|
||||||
namespace MwCXX {
|
namespace MwCXX {
|
||||||
class Window : public MwCXX::Base {
|
class Window : public MwCXX::Base {
|
||||||
public:
|
public:
|
||||||
Window(MwWidget widget);
|
Window(MwWidget widget);
|
||||||
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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#include <MwCXX/Widget/Base.h>
|
#include <MwCXX/Widget/Base.h>
|
||||||
|
|
||||||
MwCXX::Base::Base(MwWidget widget){
|
MwCXX::Base::Base(MwWidget widget) {
|
||||||
this->widget = widget;
|
this->widget = widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Base::Base(MwClass widget_class, MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height){
|
MwCXX::Base::Base(MwClass widget_class, MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) {
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
this->widget = MwCreateWidget(widget_class, name, parent == NULL ? NULL : parent->widget, x, y, width, height);
|
this->widget = MwCreateWidget(widget_class, name, parent == NULL ? NULL : parent->widget, x, y, width, height);
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -36,20 +36,12 @@ void MwCXX::Base::SetBorderWidth(int value) {
|
||||||
MwSetInteger(this->widget, MwNborderWidth, (int)value);
|
MwSetInteger(this->widget, MwNborderWidth, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Base::GetClipboard() {
|
int MwCXX::Base::GetDarkTheme() {
|
||||||
return ()MwGetVoid(this->widget, MwNclipboard);
|
return (int)MwGetInteger(this->widget, MwNdarkTheme);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::Base::SetClipboard( value) {
|
void MwCXX::Base::SetDarkTheme(int value) {
|
||||||
MwSetVoid(this->widget, MwNclipboard, ()value);
|
MwSetInteger(this->widget, MwNdarkTheme, (int)value);
|
||||||
}
|
|
||||||
|
|
||||||
MwCXX::Base::GetDarkTheme() {
|
|
||||||
return ()MwGetVoid(this->widget, MwNdarkTheme);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MwCXX::Base::SetDarkTheme( value) {
|
|
||||||
MwSetVoid(this->widget, MwNdarkTheme, ()value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::Base::GetFixedSize() {
|
int MwCXX::Base::GetFixedSize() {
|
||||||
|
|
@ -60,22 +52,6 @@ void MwCXX::Base::SetFixedSize(int value) {
|
||||||
MwSetInteger(this->widget, MwNfixedSize, (int)value);
|
MwSetInteger(this->widget, MwNfixedSize, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Base::GetFocusIn() {
|
|
||||||
return ()MwGetVoid(this->widget, MwNfocusIn);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MwCXX::Base::SetFocusIn( value) {
|
|
||||||
MwSetVoid(this->widget, MwNfocusIn, ()value);
|
|
||||||
}
|
|
||||||
|
|
||||||
MwCXX::Base::GetFocusOut() {
|
|
||||||
return ()MwGetVoid(this->widget, MwNfocusOut);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MwCXX::Base::SetFocusOut( value) {
|
|
||||||
MwSetVoid(this->widget, MwNfocusOut, ()value);
|
|
||||||
}
|
|
||||||
|
|
||||||
int MwCXX::Base::GetForceInverted() {
|
int MwCXX::Base::GetForceInverted() {
|
||||||
return (int)MwGetInteger(this->widget, MwNforceInverted);
|
return (int)MwGetInteger(this->widget, MwNforceInverted);
|
||||||
}
|
}
|
||||||
|
|
@ -112,22 +88,6 @@ void MwCXX::Base::SetIsRounded(int value) {
|
||||||
MwSetInteger(this->widget, MwNisRounded, (int)value);
|
MwSetInteger(this->widget, MwNisRounded, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Base::GetKey() {
|
|
||||||
return ()MwGetVoid(this->widget, MwNkey);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MwCXX::Base::SetKey( value) {
|
|
||||||
MwSetVoid(this->widget, MwNkey, ()value);
|
|
||||||
}
|
|
||||||
|
|
||||||
MwCXX::Base::GetKeyRelease() {
|
|
||||||
return ()MwGetVoid(this->widget, MwNkeyRelease);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MwCXX::Base::SetKeyRelease( value) {
|
|
||||||
MwSetVoid(this->widget, MwNkeyRelease, ()value);
|
|
||||||
}
|
|
||||||
|
|
||||||
int MwCXX::Base::GetModernLook() {
|
int MwCXX::Base::GetModernLook() {
|
||||||
return (int)MwGetInteger(this->widget, MwNmodernLook);
|
return (int)MwGetInteger(this->widget, MwNmodernLook);
|
||||||
}
|
}
|
||||||
|
|
@ -136,30 +96,6 @@ void MwCXX::Base::SetModernLook(int value) {
|
||||||
MwSetInteger(this->widget, MwNmodernLook, (int)value);
|
MwSetInteger(this->widget, MwNmodernLook, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Base::GetMouseDown() {
|
|
||||||
return ()MwGetVoid(this->widget, MwNmouseDown);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MwCXX::Base::SetMouseDown( value) {
|
|
||||||
MwSetVoid(this->widget, MwNmouseDown, ()value);
|
|
||||||
}
|
|
||||||
|
|
||||||
MwCXX::Base::GetMouseMove() {
|
|
||||||
return ()MwGetVoid(this->widget, MwNmouseMove);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MwCXX::Base::SetMouseMove( value) {
|
|
||||||
MwSetVoid(this->widget, MwNmouseMove, ()value);
|
|
||||||
}
|
|
||||||
|
|
||||||
MwCXX::Base::GetMouseUp() {
|
|
||||||
return ()MwGetVoid(this->widget, MwNmouseUp);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MwCXX::Base::SetMouseUp( value) {
|
|
||||||
MwSetVoid(this->widget, MwNmouseUp, ()value);
|
|
||||||
}
|
|
||||||
|
|
||||||
int MwCXX::Base::GetRatio() {
|
int MwCXX::Base::GetRatio() {
|
||||||
return (int)MwGetInteger(this->widget, MwNratio);
|
return (int)MwGetInteger(this->widget, MwNratio);
|
||||||
}
|
}
|
||||||
|
|
@ -168,14 +104,6 @@ void MwCXX::Base::SetRatio(int value) {
|
||||||
MwSetInteger(this->widget, MwNratio, (int)value);
|
MwSetInteger(this->widget, MwNratio, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Base::GetResize() {
|
|
||||||
return ()MwGetVoid(this->widget, MwNresize);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MwCXX::Base::SetResize( value) {
|
|
||||||
MwSetVoid(this->widget, MwNresize, ()value);
|
|
||||||
}
|
|
||||||
|
|
||||||
MwCXX::String MwCXX::Base::GetSubBackground() {
|
MwCXX::String MwCXX::Base::GetSubBackground() {
|
||||||
return (MwCXX::String)MwGetText(this->widget, MwNsubBackground);
|
return (MwCXX::String)MwGetText(this->widget, MwNsubBackground);
|
||||||
}
|
}
|
||||||
|
|
@ -200,14 +128,6 @@ void MwCXX::Base::SetSubForeground(MwCXX::String value) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Base::GetTick() {
|
|
||||||
return ()MwGetVoid(this->widget, MwNtick);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MwCXX::Base::SetTick( value) {
|
|
||||||
MwSetVoid(this->widget, MwNtick, ()value);
|
|
||||||
}
|
|
||||||
|
|
||||||
int MwCXX::Base::GetUseMonospace() {
|
int MwCXX::Base::GetUseMonospace() {
|
||||||
return (int)MwGetInteger(this->widget, MwNuseMonospace);
|
return (int)MwGetInteger(this->widget, MwNuseMonospace);
|
||||||
}
|
}
|
||||||
|
|
@ -247,4 +167,3 @@ int MwCXX::Base::GetY() {
|
||||||
void MwCXX::Base::SetY(int value) {
|
void MwCXX::Base::SetY(int value) {
|
||||||
MwSetInteger(this->widget, MwNy, (int)value);
|
MwSetInteger(this->widget, MwNy, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/Box.h>
|
#include <MwCXX/Widget/Box.h>
|
||||||
|
|
||||||
MwCXX::Box::Box(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::Box::Box(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::Box::GetOrientation() {
|
int MwCXX::Box::GetOrientation() {
|
||||||
|
|
@ -45,4 +47,3 @@ int MwCXX::Box::GetInverted() {
|
||||||
void MwCXX::Box::SetInverted(int value) {
|
void MwCXX::Box::SetInverted(int value) {
|
||||||
MwSetInteger(this->widget, MwNinverted, (int)value);
|
MwSetInteger(this->widget, MwNinverted, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/Button.h>
|
#include <MwCXX/Widget/Button.h>
|
||||||
|
|
||||||
MwCXX::Button::Button(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::Button::Button(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
MwLLPixmap MwCXX::Button::GetPixmap() {
|
MwLLPixmap MwCXX::Button::GetPixmap() {
|
||||||
|
|
@ -49,4 +51,3 @@ int MwCXX::Button::GetFillArea() {
|
||||||
void MwCXX::Button::SetFillArea(int value) {
|
void MwCXX::Button::SetFillArea(int value) {
|
||||||
MwSetInteger(this->widget, MwNfillArea, (int)value);
|
MwSetInteger(this->widget, MwNfillArea, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/CheckBox.h>
|
#include <MwCXX/Widget/CheckBox.h>
|
||||||
|
|
||||||
MwCXX::CheckBox::CheckBox(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::CheckBox::CheckBox(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::CheckBox::GetChecked() {
|
int MwCXX::CheckBox::GetChecked() {
|
||||||
|
|
@ -13,4 +15,3 @@ int MwCXX::CheckBox::GetChecked() {
|
||||||
void MwCXX::CheckBox::SetChecked(int value) {
|
void MwCXX::CheckBox::SetChecked(int value) {
|
||||||
MwSetInteger(this->widget, MwNchecked, (int)value);
|
MwSetInteger(this->widget, MwNchecked, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/ComboBox.h>
|
#include <MwCXX/Widget/ComboBox.h>
|
||||||
|
|
||||||
MwCXX::ComboBox::ComboBox(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::ComboBox::ComboBox(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::ComboBox::GetAreaShown() {
|
int MwCXX::ComboBox::GetAreaShown() {
|
||||||
|
|
@ -21,4 +23,3 @@ int MwCXX::ComboBox::GetValue() {
|
||||||
void MwCXX::ComboBox::SetValue(int value) {
|
void MwCXX::ComboBox::SetValue(int value) {
|
||||||
MwSetInteger(this->widget, MwNvalue, (int)value);
|
MwSetInteger(this->widget, MwNvalue, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/Entry.h>
|
#include <MwCXX/Widget/Entry.h>
|
||||||
|
|
||||||
MwCXX::Entry::Entry(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::Entry::Entry(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::String MwCXX::Entry::GetText() {
|
MwCXX::String MwCXX::Entry::GetText() {
|
||||||
|
|
@ -25,4 +27,3 @@ int MwCXX::Entry::GetHideInput() {
|
||||||
void MwCXX::Entry::SetHideInput(int value) {
|
void MwCXX::Entry::SetHideInput(int value) {
|
||||||
MwSetInteger(this->widget, MwNhideInput, (int)value);
|
MwSetInteger(this->widget, MwNhideInput, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/Frame.h>
|
#include <MwCXX/Widget/Frame.h>
|
||||||
|
|
||||||
MwCXX::Frame::Frame(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::Frame::Frame(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::Frame::GetHasBorder() {
|
int MwCXX::Frame::GetHasBorder() {
|
||||||
|
|
@ -21,4 +23,3 @@ int MwCXX::Frame::GetInverted() {
|
||||||
void MwCXX::Frame::SetInverted(int value) {
|
void MwCXX::Frame::SetInverted(int value) {
|
||||||
MwSetInteger(this->widget, MwNinverted, (int)value);
|
MwSetInteger(this->widget, MwNinverted, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/Image.h>
|
#include <MwCXX/Widget/Image.h>
|
||||||
|
|
||||||
MwCXX::Image::Image(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::Image::Image(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
MwLLPixmap MwCXX::Image::GetPixmap() {
|
MwLLPixmap MwCXX::Image::GetPixmap() {
|
||||||
|
|
@ -37,4 +39,3 @@ int MwCXX::Image::GetFillArea() {
|
||||||
void MwCXX::Image::SetFillArea(int value) {
|
void MwCXX::Image::SetFillArea(int value) {
|
||||||
MwSetInteger(this->widget, MwNfillArea, (int)value);
|
MwSetInteger(this->widget, MwNfillArea, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/Label.h>
|
#include <MwCXX/Widget/Label.h>
|
||||||
|
|
||||||
MwCXX::Label::Label(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::Label::Label(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::String MwCXX::Label::GetText() {
|
MwCXX::String MwCXX::Label::GetText() {
|
||||||
|
|
@ -57,4 +59,3 @@ int MwCXX::Label::GetLeftPadding() {
|
||||||
void MwCXX::Label::SetLeftPadding(int value) {
|
void MwCXX::Label::SetLeftPadding(int value) {
|
||||||
MwSetInteger(this->widget, MwNleftPadding, (int)value);
|
MwSetInteger(this->widget, MwNleftPadding, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/ListBox.h>
|
#include <MwCXX/Widget/ListBox.h>
|
||||||
|
|
||||||
MwCXX::ListBox::ListBox(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::ListBox::ListBox(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::ListBox::GetLeftPadding() {
|
int MwCXX::ListBox::GetLeftPadding() {
|
||||||
|
|
@ -29,4 +31,3 @@ int MwCXX::ListBox::GetSingleClickSelectable() {
|
||||||
void MwCXX::ListBox::SetSingleClickSelectable(int value) {
|
void MwCXX::ListBox::SetSingleClickSelectable(int value) {
|
||||||
MwSetInteger(this->widget, MwNsingleClickSelectable, (int)value);
|
MwSetInteger(this->widget, MwNsingleClickSelectable, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
#include <MwCXX/Widget/Menu.h>
|
#include <MwCXX/Widget/Menu.h>
|
||||||
|
|
||||||
MwCXX::Menu::Menu(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::Menu::Menu(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/NumberEntry.h>
|
#include <MwCXX/Widget/NumberEntry.h>
|
||||||
|
|
||||||
MwCXX::NumberEntry::NumberEntry(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::NumberEntry::NumberEntry(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::String MwCXX::NumberEntry::GetText() {
|
MwCXX::String MwCXX::NumberEntry::GetText() {
|
||||||
|
|
@ -17,4 +19,3 @@ void MwCXX::NumberEntry::SetText(MwCXX::String value) {
|
||||||
MwSetText(this->widget, MwNtext, (MwCXX::String)value);
|
MwSetText(this->widget, MwNtext, (MwCXX::String)value);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
#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(widget) {
|
MwCXX::OpenGL::OpenGL(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/ProgressBar.h>
|
#include <MwCXX/Widget/ProgressBar.h>
|
||||||
|
|
||||||
MwCXX::ProgressBar::ProgressBar(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::ProgressBar::ProgressBar(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::ProgressBar::GetMinValue() {
|
int MwCXX::ProgressBar::GetMinValue() {
|
||||||
|
|
@ -29,4 +31,3 @@ int MwCXX::ProgressBar::GetValue() {
|
||||||
void MwCXX::ProgressBar::SetValue(int value) {
|
void MwCXX::ProgressBar::SetValue(int value) {
|
||||||
MwSetInteger(this->widget, MwNvalue, (int)value);
|
MwSetInteger(this->widget, MwNvalue, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/RadioBox.h>
|
#include <MwCXX/Widget/RadioBox.h>
|
||||||
|
|
||||||
MwCXX::RadioBox::RadioBox(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::RadioBox::RadioBox(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::RadioBox::GetChecked() {
|
int MwCXX::RadioBox::GetChecked() {
|
||||||
|
|
@ -13,4 +15,3 @@ int MwCXX::RadioBox::GetChecked() {
|
||||||
void MwCXX::RadioBox::SetChecked(int value) {
|
void MwCXX::RadioBox::SetChecked(int value) {
|
||||||
MwSetInteger(this->widget, MwNchecked, (int)value);
|
MwSetInteger(this->widget, MwNchecked, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/ScrollBar.h>
|
#include <MwCXX/Widget/ScrollBar.h>
|
||||||
|
|
||||||
MwCXX::ScrollBar::ScrollBar(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::ScrollBar::ScrollBar(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::ScrollBar::GetShowArrows() {
|
int MwCXX::ScrollBar::GetShowArrows() {
|
||||||
|
|
@ -53,4 +55,3 @@ int MwCXX::ScrollBar::GetOrientation() {
|
||||||
void MwCXX::ScrollBar::SetOrientation(int value) {
|
void MwCXX::ScrollBar::SetOrientation(int value) {
|
||||||
MwSetInteger(this->widget, MwNorientation, (int)value);
|
MwSetInteger(this->widget, MwNorientation, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/SubMenu.h>
|
#include <MwCXX/Widget/SubMenu.h>
|
||||||
|
|
||||||
MwCXX::SubMenu::SubMenu(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::SubMenu::SubMenu(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::SubMenu::GetLeftPadding() {
|
int MwCXX::SubMenu::GetLeftPadding() {
|
||||||
|
|
@ -13,4 +15,3 @@ int MwCXX::SubMenu::GetLeftPadding() {
|
||||||
void MwCXX::SubMenu::SetLeftPadding(int value) {
|
void MwCXX::SubMenu::SetLeftPadding(int value) {
|
||||||
MwSetInteger(this->widget, MwNleftPadding, (int)value);
|
MwSetInteger(this->widget, MwNleftPadding, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/TreeView.h>
|
#include <MwCXX/Widget/TreeView.h>
|
||||||
|
|
||||||
MwCXX::TreeView::TreeView(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::TreeView::TreeView(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::TreeView::GetLeftPadding() {
|
int MwCXX::TreeView::GetLeftPadding() {
|
||||||
|
|
@ -21,4 +23,3 @@ int MwCXX::TreeView::GetSingleClickSelectable() {
|
||||||
void MwCXX::TreeView::SetSingleClickSelectable(int value) {
|
void MwCXX::TreeView::SetSingleClickSelectable(int value) {
|
||||||
MwSetInteger(this->widget, MwNsingleClickSelectable, (int)value);
|
MwSetInteger(this->widget, MwNsingleClickSelectable, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
#include <MwCXX/Widget/Viewport.h>
|
#include <MwCXX/Widget/Viewport.h>
|
||||||
|
|
||||||
MwCXX::Viewport::Viewport(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::Viewport::Viewport(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
#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(widget) {
|
MwCXX::Vulkan::Vulkan(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#include <MwCXX/Widget/Window.h>
|
#include <MwCXX/Widget/Window.h>
|
||||||
|
|
||||||
MwCXX::Window::Window(MwWidget widget) : MwCXX::Base(widget) {
|
MwCXX::Window::Window(MwWidget widget)
|
||||||
|
: MwCXX::Base(widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::String MwCXX::Window::GetTitle() {
|
MwCXX::String MwCXX::Window::GetTitle() {
|
||||||
|
|
@ -57,4 +59,3 @@ int MwCXX::Window::GetInverted() {
|
||||||
void MwCXX::Window::SetInverted(int value) {
|
void MwCXX::Window::SetInverted(int value) {
|
||||||
MwSetInteger(this->widget, MwNinverted, (int)value);
|
MwSetInteger(this->widget, MwNinverted, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
28
test.cxx
28
test.cxx
|
|
@ -5,25 +5,25 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
class MyButton : public MwCXX::Button {
|
class MyButton : public MwCXX::Button {
|
||||||
protected:
|
protected:
|
||||||
void OnActivate() {
|
void OnActivate() {
|
||||||
std::cout << "Hello" << std::endl;
|
std::cout << "Hello" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MWCXX_CONSTRUCTOR(MyButton, MwCXX::Button) {
|
MWCXX_CONSTRUCTOR(MyButton, MwCXX::Button) {
|
||||||
this->SetText("Hello, world!");
|
this->SetText("Hello, world!");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class MyWindow : public MwCXX::Window {
|
class MyWindow : public MwCXX::Window {
|
||||||
private:
|
private:
|
||||||
MyButton* epic;
|
MyButton* epic;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MWCXX_CONSTRUCTOR(MyWindow, MwCXX::Window) {
|
MWCXX_CONSTRUCTOR(MyWindow, MwCXX::Window) {
|
||||||
this->epic = new MyButton("epic app", this, 10, 10, 640 - 10 * 2, 480 - 10 * 2);
|
this->epic = new MyButton("epic app", this, 10, 10, 640 - 10 * 2, 480 - 10 * 2);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue