mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-02 23:50:50 +00:00
things
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@204 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -4,13 +4,31 @@
|
||||
|
||||
#include <Mw/Milsko.h>
|
||||
|
||||
class MwOOWidget {
|
||||
#define MwOODeclare(name, parent_class) \
|
||||
public: \
|
||||
name(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : parent_class(widget_name, parent, x, y, w, h) {}
|
||||
|
||||
namespace MwOO {
|
||||
class Base {
|
||||
protected:
|
||||
MwWidget widget;
|
||||
|
||||
private:
|
||||
void SetHandler(void);
|
||||
|
||||
public:
|
||||
MwOOWidget(MwClass widget_class, const char* name, MwOOWidget* parent, int x, int y, int w, int h);
|
||||
~MwOOWidget(void);
|
||||
void Loop(void);
|
||||
/* BEGIN AUTOGENERATE */
|
||||
virtual void OnActivate(void*) {};
|
||||
virtual void OnResize(void*) {};
|
||||
virtual void OnTick(void*) {};
|
||||
virtual void OnMenu(void*) {};
|
||||
|
||||
/* END AUTOGENERATE */
|
||||
|
||||
Base(MwClass widget_class, const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
~Base(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
class MwOOButtonWidget : public MwOOWidget {
|
||||
namespace MwOO {
|
||||
class Button : public MwOO::Base {
|
||||
public:
|
||||
MwOOButtonWidget(const char* name, MwOOWidget* parent, int x, int y, int w, int h);
|
||||
Button(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
class MwOOFrameWidget : public MwOOWidget {
|
||||
namespace MwOO {
|
||||
class Frame : public MwOO::Base {
|
||||
public:
|
||||
MwOOFrameWidget(const char* name, MwOOWidget* parent, int x, int y, int w, int h);
|
||||
Frame(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
class MwOOImageWidget : public MwOOWidget {
|
||||
namespace MwOO {
|
||||
class Image : public MwOO::Base {
|
||||
public:
|
||||
MwOOImageWidget(const char* name, MwOOWidget* parent, int x, int y, int w, int h);
|
||||
Image(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
class MwOOMenuWidget : public MwOOWidget {
|
||||
namespace MwOO {
|
||||
class Menu : public MwOO::Base {
|
||||
public:
|
||||
MwOOMenuWidget(const char* name, MwOOWidget* parent, int x, int y, int w, int h);
|
||||
Menu(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
class MwOOOpenGLWidget : public MwOOWidget {
|
||||
namespace MwOO {
|
||||
class OpenGL : public MwOO::Base {
|
||||
public:
|
||||
MwOOOpenGLWidget(const char* name, MwOOWidget* parent, int x, int y, int w, int h);
|
||||
OpenGL(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
class MwOOScrollBarWidget : public MwOOWidget {
|
||||
namespace MwOO {
|
||||
class ScrollBar : public MwOO::Base {
|
||||
public:
|
||||
MwOOScrollBarWidget(const char* name, MwOOWidget* parent, int x, int y, int w, int h);
|
||||
ScrollBar(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
class MwOOSubMenuWidget : public MwOOWidget {
|
||||
namespace MwOO {
|
||||
class SubMenu : public MwOO::Base {
|
||||
public:
|
||||
MwOOSubMenuWidget(const char* name, MwOOWidget* parent, int x, int y, int w, int h);
|
||||
SubMenu(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
class MwOOVulkanWidget : public MwOOWidget {
|
||||
namespace MwOO {
|
||||
class Vulkan : public MwOO::Base {
|
||||
public:
|
||||
MwOOVulkanWidget(const char* name, MwOOWidget* parent, int x, int y, int w, int h);
|
||||
Vulkan(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
class MwOOWindowWidget : public MwOOWidget {
|
||||
namespace MwOO {
|
||||
class Window : public MwOO::Base {
|
||||
public:
|
||||
MwOOWindowWidget(const char* name, MwOOWidget* parent, int x, int y, int w, int h);
|
||||
Window(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user