mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 09:00:54 +00:00
format
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@212 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -26,16 +26,16 @@ class Base {
|
|||||||
int GetY(void);
|
int GetY(void);
|
||||||
int GetWidth(void);
|
int GetWidth(void);
|
||||||
int GetHeight(void);
|
int GetHeight(void);
|
||||||
/* BEGIN AUTOGENERATE */
|
/* BEGIN AUTOGENERATE */
|
||||||
virtual void OnActivate(void*){};
|
virtual void OnActivate(void*) {};
|
||||||
virtual void OnResize(void*){};
|
virtual void OnResize(void*) {};
|
||||||
virtual void OnTick(void*){};
|
virtual void OnTick(void*) {};
|
||||||
virtual void OnMenu(void*){};
|
virtual void OnMenu(void*) {};
|
||||||
virtual void OnMouseDownHandler(void*){};
|
virtual void OnMouseDownHandler(void*) {};
|
||||||
virtual void OnMouseUpHandler(void*){};
|
virtual void OnMouseUpHandler(void*) {};
|
||||||
virtual void OnChangedHandler(void*){};
|
virtual void OnChangedHandler(void*) {};
|
||||||
|
|
||||||
/* END AUTOGENERATE */
|
/* END AUTOGENERATE */
|
||||||
|
|
||||||
Base(MwClass widget_class, const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
Base(MwClass widget_class, const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||||
~Base(void);
|
~Base(void);
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
#include <MwOO/Base.h>
|
#include <MwOO/Base.h>
|
||||||
|
|
||||||
namespace MwOO {
|
namespace MwOO {
|
||||||
class Button : public MwOO::Base {
|
class Button : public MwOO::Base {
|
||||||
public:
|
public:
|
||||||
Button(const char* widget_name, MwOO::Base* 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);
|
||||||
void SetPixmap(void* value);
|
void SetPixmap(void* value);
|
||||||
void* GetPixmap(void);
|
void* GetPixmap(void);
|
||||||
};
|
};
|
||||||
}
|
} // namespace MwOO
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
#include <MwOO/Base.h>
|
#include <MwOO/Base.h>
|
||||||
|
|
||||||
namespace MwOO {
|
namespace MwOO {
|
||||||
class CheckBox : public MwOO::Base {
|
class CheckBox : public MwOO::Base {
|
||||||
public:
|
public:
|
||||||
CheckBox(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
CheckBox(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||||
void SetPixmap(void* value);
|
void SetPixmap(void* value);
|
||||||
void* GetPixmap(void);
|
void* GetPixmap(void);
|
||||||
};
|
};
|
||||||
}
|
} // namespace MwOO
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
#include <MwOO/Base.h>
|
#include <MwOO/Base.h>
|
||||||
|
|
||||||
namespace MwOO {
|
namespace MwOO {
|
||||||
class Frame : public MwOO::Base {
|
class Frame : public MwOO::Base {
|
||||||
public:
|
public:
|
||||||
Frame(const char* widget_name, MwOO::Base* 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
|
#endif
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
#include <MwOO/Base.h>
|
#include <MwOO/Base.h>
|
||||||
|
|
||||||
namespace MwOO {
|
namespace MwOO {
|
||||||
class Image : public MwOO::Base {
|
class Image : public MwOO::Base {
|
||||||
public:
|
public:
|
||||||
Image(const char* widget_name, MwOO::Base* 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);
|
||||||
void SetPixmap(void* value);
|
void SetPixmap(void* value);
|
||||||
void* GetPixmap(void);
|
void* GetPixmap(void);
|
||||||
};
|
};
|
||||||
}
|
} // namespace MwOO
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
#include <MwOO/Base.h>
|
#include <MwOO/Base.h>
|
||||||
|
|
||||||
namespace MwOO {
|
namespace MwOO {
|
||||||
class Menu : public MwOO::Base {
|
class Menu : public MwOO::Base {
|
||||||
public:
|
public:
|
||||||
Menu(const char* widget_name, MwOO::Base* 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);
|
||||||
MwMenu Add(MwMenu menu, const char* name);
|
MwMenu Add(MwMenu menu, const char* name);
|
||||||
};
|
};
|
||||||
}
|
} // namespace MwOO
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -5,13 +5,13 @@
|
|||||||
#include <MwOO/Base.h>
|
#include <MwOO/Base.h>
|
||||||
|
|
||||||
namespace MwOO {
|
namespace MwOO {
|
||||||
class OpenGL : public MwOO::Base {
|
class OpenGL : public MwOO::Base {
|
||||||
public:
|
public:
|
||||||
OpenGL(const char* widget_name, MwOO::Base* 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);
|
||||||
void MakeCurrent(void);
|
void MakeCurrent(void);
|
||||||
void* GetProcAddress(const char* name);
|
void* GetProcAddress(const char* name);
|
||||||
void SwapBuffer(void);
|
void SwapBuffer(void);
|
||||||
};
|
};
|
||||||
}
|
} // namespace MwOO
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#include <MwOO/Base.h>
|
#include <MwOO/Base.h>
|
||||||
|
|
||||||
namespace MwOO {
|
namespace MwOO {
|
||||||
class ScrollBar : public MwOO::Base {
|
class ScrollBar : public MwOO::Base {
|
||||||
public:
|
public:
|
||||||
ScrollBar(const char* widget_name, MwOO::Base* 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);
|
||||||
int GetVisibleLength(void);
|
int GetVisibleLength(void);
|
||||||
@@ -19,7 +19,7 @@ namespace MwOO {
|
|||||||
int GetMaxValue(void);
|
int GetMaxValue(void);
|
||||||
void SetOrientation(int value);
|
void SetOrientation(int value);
|
||||||
int GetOrientation(void);
|
int GetOrientation(void);
|
||||||
};
|
};
|
||||||
}
|
} // namespace MwOO
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
#include <MwOO/Base.h>
|
#include <MwOO/Base.h>
|
||||||
|
|
||||||
namespace MwOO {
|
namespace MwOO {
|
||||||
class SubMenu : public MwOO::Base {
|
class SubMenu : public MwOO::Base {
|
||||||
public:
|
public:
|
||||||
SubMenu(const char* widget_name, MwOO::Base* 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);
|
||||||
void Appear(MwMenu menu, MwPoint* point);
|
void Appear(MwMenu menu, MwPoint* point);
|
||||||
};
|
};
|
||||||
}
|
} // namespace MwOO
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#include <MwOO/Base.h>
|
#include <MwOO/Base.h>
|
||||||
|
|
||||||
namespace MwOO {
|
namespace MwOO {
|
||||||
class Vulkan : public MwOO::Base {
|
class Vulkan : public MwOO::Base {
|
||||||
public:
|
public:
|
||||||
Vulkan(const char* widget_name, MwOO::Base* 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);
|
||||||
void EnableExtension(void);
|
void EnableExtension(void);
|
||||||
@@ -13,7 +13,7 @@ namespace MwOO {
|
|||||||
void Configure(void);
|
void Configure(void);
|
||||||
void* GetField(MwVulkanField field, MwErrorEnum* out);
|
void* GetField(MwVulkanField field, MwErrorEnum* out);
|
||||||
VkBool32 Supported(void);
|
VkBool32 Supported(void);
|
||||||
};
|
};
|
||||||
}
|
} // namespace MwOO
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
#include <MwOO/Base.h>
|
#include <MwOO/Base.h>
|
||||||
|
|
||||||
namespace MwOO {
|
namespace MwOO {
|
||||||
class Window : public MwOO::Base {
|
class Window : public MwOO::Base {
|
||||||
public:
|
public:
|
||||||
Window(const char* widget_name, MwOO::Base* 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
|
#endif
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ static void draw(MwWidget handle) {
|
|||||||
|
|
||||||
MwDrawFrame(handle, &r, base, (handle->pressed || MwGetInteger(handle, MwNchecked)) ? 1 : 0);
|
MwDrawFrame(handle, &r, base, (handle->pressed || MwGetInteger(handle, MwNchecked)) ? 1 : 0);
|
||||||
MwDrawRect(handle, &r, base);
|
MwDrawRect(handle, &r, base);
|
||||||
if(handle->pressed || MwGetInteger(handle, MwNchecked)){
|
if(handle->pressed || MwGetInteger(handle, MwNchecked)) {
|
||||||
/* TODO: write check mark */
|
/* TODO: write check mark */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user