mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
idk what i did
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@446 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
/*!
|
||||
* %file Mw/Widget/Button.h
|
||||
* %brief Button widget
|
||||
* %prop MwNpixmap MwNtext
|
||||
*/
|
||||
#ifndef __MW_WIDGET_BUTTON_H__
|
||||
#define __MW_WIDGET_BUTTON_H__
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
/*!
|
||||
* %file Mw/Widget/CheckBox.h
|
||||
* %brief CheckBox widget
|
||||
* %prop MwNchecked
|
||||
*/
|
||||
#ifndef __MW_WIDGET_CHECKBOX_H__
|
||||
#define __MW_WIDGET_CHECKBOX_H__
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
/*!
|
||||
* %file Mw/Widget/Entry.h
|
||||
* %brief Entry widget
|
||||
* %prop MwNtext
|
||||
*/
|
||||
#ifndef __MW_WIDGET_ENTRY_H__
|
||||
#define __MW_WIDGET_ENTRY_H__
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
/*!
|
||||
* %file Mw/Widget/Image.h
|
||||
* %brief Image widget
|
||||
* %prop MwNpixmap
|
||||
*/
|
||||
#ifndef __MW_WIDGET_IMAGE_H__
|
||||
#define __MW_WIDGET_IMAGE_H__
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
/*!
|
||||
* %file Mw/Widget/Label.h
|
||||
* %brief Label widget
|
||||
* %prop MwNtext MwNalignment MwNbold
|
||||
*/
|
||||
#ifndef __MW_WIDGET_LABEL_H__
|
||||
#define __MW_WIDGET_LABEL_H__
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
/*!
|
||||
* %file Mw/Widget/ListBox.h
|
||||
* %brief ListBox widget
|
||||
* %prop MwNleftPadding
|
||||
*/
|
||||
#ifndef __MW_WIDGET_LISTBOX_H__
|
||||
#define __MW_WIDGET_LISTBOX_H__
|
||||
@@ -27,7 +26,12 @@ MWDECL MwClass MwListBoxClass;
|
||||
* %param pixmap Pixmap
|
||||
* %param ... Text
|
||||
*/
|
||||
MWDECL void MwListBoxInsert(MwWidget handle, int index, MwLLPixmap pixmap, ...); /* VA_HINT:pixmap */
|
||||
MwInline void MwListBoxInsert(MwWidget handle, int index, MwLLPixmap pixmap, ...) {
|
||||
va_list va;
|
||||
va_start(va, pixmap);
|
||||
MwVaWidgetExecute(handle, "mwListBoxInsert", NULL, index, pixmap, &va);
|
||||
va_end(va);
|
||||
}
|
||||
|
||||
/*!
|
||||
* %brief Inserts multiple items on the listbox
|
||||
@@ -37,26 +41,12 @@ MWDECL void MwListBoxInsert(MwWidget handle, int index, MwLLPixmap pixmap, ...);
|
||||
* %param pixmap Pixmap
|
||||
* %param ... Text
|
||||
*/
|
||||
MWDECL void MwListBoxInsertMultiple(MwWidget handle, int index, int count, MwLLPixmap* pixmap, ...); /* VA_HINT:pixmap */
|
||||
|
||||
/*!
|
||||
* %brief Inserts item on the listbox
|
||||
* %param handle Widget
|
||||
* %param index Index
|
||||
* %param pixmap Pixmap
|
||||
* %param va Text
|
||||
*/
|
||||
MWDECL void MwListBoxVaInsert(MwWidget handle, int index, MwLLPixmap pixmap, va_list va);
|
||||
|
||||
/*!
|
||||
* %brief Inserts multiple items on the listbox
|
||||
* %param handle Widget
|
||||
* %param index Index
|
||||
* %param count Count
|
||||
* %param pixmap Pixmap
|
||||
* %param va Text
|
||||
*/
|
||||
MWDECL void MwListBoxVaInsertMultiple(MwWidget handle, int index, int count, MwLLPixmap* pixmap, va_list va);
|
||||
MwInline void MwListBoxInsertMultiple(MwWidget handle, int index, int count, MwLLPixmap* pixmap, ...) {
|
||||
va_list va;
|
||||
va_start(va, pixmap);
|
||||
MwVaWidgetExecute(handle, "mwListBoxInsertMultiple", NULL, index, count, pixmap, &va);
|
||||
va_end(va);
|
||||
}
|
||||
|
||||
/*!
|
||||
* %brief Deletes item from the listbox
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_BASE_H__
|
||||
#define __MWOO_BASE_H__
|
||||
|
||||
#include <Mw/Milsko.h>
|
||||
|
||||
#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:
|
||||
int can_be_gc;
|
||||
void SetHandler(void);
|
||||
|
||||
public:
|
||||
MwOO::Base MessageBox(const char* title, const char* text, unsigned int flags);
|
||||
MwOO::Base MessageBoxGetChild(int num);
|
||||
void Loop(void);
|
||||
void SetX(int value);
|
||||
void SetY(int value);
|
||||
void SetWidth(int value);
|
||||
void SetHeight(int value);
|
||||
int GetX(void);
|
||||
int GetY(void);
|
||||
int GetWidth(void);
|
||||
int GetHeight(void);
|
||||
/* BEGIN AUTOGENERATE */
|
||||
|
||||
/* END AUTOGENERATE */
|
||||
|
||||
Base(void);
|
||||
Base(MwClass widget_class, const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
Base(MwWidget widget, int gc = 0);
|
||||
~Base(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,22 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_BUTTON_H__
|
||||
#define __MWOO_WIDGET_BUTTON_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class Button : public MwOO::Base {
|
||||
public:
|
||||
Button(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void SetPixmap(void* value);
|
||||
void* GetPixmap(void);
|
||||
void SetText(const char* value);
|
||||
const char* GetText(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,20 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_CHECKBOX_H__
|
||||
#define __MWOO_WIDGET_CHECKBOX_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class CheckBox : public MwOO::Base {
|
||||
public:
|
||||
CheckBox(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void SetChecked(int value);
|
||||
int GetChecked(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,20 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_ENTRY_H__
|
||||
#define __MWOO_WIDGET_ENTRY_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class Entry : public MwOO::Base {
|
||||
public:
|
||||
Entry(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void SetText(const char* value);
|
||||
const char* GetText(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,18 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_FRAME_H__
|
||||
#define __MWOO_WIDGET_FRAME_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class Frame : public MwOO::Base {
|
||||
public:
|
||||
Frame(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,20 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_IMAGE_H__
|
||||
#define __MWOO_WIDGET_IMAGE_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class Image : public MwOO::Base {
|
||||
public:
|
||||
Image(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void SetPixmap(void* value);
|
||||
void* GetPixmap(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,24 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_LABEL_H__
|
||||
#define __MWOO_WIDGET_LABEL_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class Label : public MwOO::Base {
|
||||
public:
|
||||
Label(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void SetText(const char* value);
|
||||
const char* GetText(void);
|
||||
void SetAlignment(int value);
|
||||
int GetAlignment(void);
|
||||
void SetBold(int value);
|
||||
int GetBold(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,28 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_LISTBOX_H__
|
||||
#define __MWOO_WIDGET_LISTBOX_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class ListBox : public MwOO::Base {
|
||||
public:
|
||||
ListBox(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void Insert(int index, MwLLPixmap pixmap, ...);
|
||||
void InsertMultiple(int index, int count, MwLLPixmap* pixmap, ...);
|
||||
void VaInsert(int index, MwLLPixmap pixmap, va_list va);
|
||||
void VaInsertMultiple(int index, int count, MwLLPixmap* pixmap, va_list va);
|
||||
void Delete(int index);
|
||||
const char* Get(int index);
|
||||
void SetWidth(int index, int width);
|
||||
void Reset(void);
|
||||
void SetLeftPadding(int value);
|
||||
int GetLeftPadding(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,19 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_MENU_H__
|
||||
#define __MWOO_WIDGET_MENU_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class Menu : public MwOO::Base {
|
||||
public:
|
||||
Menu(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
MwMenu Add(MwMenu menu, const char* name);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,20 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_NUMBERENTRY_H__
|
||||
#define __MWOO_WIDGET_NUMBERENTRY_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class NumberEntry : public MwOO::Base {
|
||||
public:
|
||||
NumberEntry(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void SetText(const char* value);
|
||||
const char* GetText(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,21 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_OPENGL_H__
|
||||
#define __MWOO_WIDGET_OPENGL_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class OpenGL : public MwOO::Base {
|
||||
public:
|
||||
OpenGL(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void MakeCurrent(void);
|
||||
void* GetProcAddress(const char* name);
|
||||
void SwapBuffer(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,29 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_SCROLLBAR_H__
|
||||
#define __MWOO_WIDGET_SCROLLBAR_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class ScrollBar : public MwOO::Base {
|
||||
public:
|
||||
ScrollBar(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
int GetVisibleLength(void);
|
||||
void SetAreaShown(int value);
|
||||
int GetAreaShown(void);
|
||||
void SetValue(int value);
|
||||
int GetValue(void);
|
||||
void SetMinValue(int value);
|
||||
int GetMinValue(void);
|
||||
void SetMaxValue(int value);
|
||||
int GetMaxValue(void);
|
||||
void SetOrientation(int value);
|
||||
int GetOrientation(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,19 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_SUBMENU_H__
|
||||
#define __MWOO_WIDGET_SUBMENU_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class SubMenu : public MwOO::Base {
|
||||
public:
|
||||
SubMenu(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void Appear(MwMenu menu, MwPoint* point);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,20 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_VIEWPORT_H__
|
||||
#define __MWOO_WIDGET_VIEWPORT_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class Viewport : public MwOO::Base {
|
||||
public:
|
||||
Viewport(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
MwOO::Base GetViewport(void);
|
||||
void SetSize(int w, int h);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,23 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_VULKAN_H__
|
||||
#define __MWOO_WIDGET_VULKAN_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class Vulkan : public MwOO::Base {
|
||||
public:
|
||||
Vulkan(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void EnableExtension(void);
|
||||
void EnableLayer(void);
|
||||
void Configure(void);
|
||||
void* GetField(MwVulkanField field, MwErrorEnum* out);
|
||||
VkBool32 Supported(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
@@ -1,27 +0,0 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_WINDOW_H__
|
||||
#define __MWOO_WIDGET_WINDOW_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class Window : public MwOO::Base {
|
||||
public:
|
||||
Window(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void MakeBorderless(int toggle);
|
||||
void SetTitle(const char* value);
|
||||
const char* GetTitle(void);
|
||||
void SetMain(int value);
|
||||
int GetMain(void);
|
||||
void SetIconPixmap(void* value);
|
||||
void* GetIconPixmap(void);
|
||||
void SetSizeHints(void* value);
|
||||
void* GetSizeHints(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user