update
This commit is contained in:
parent
bcf9f8a123
commit
0e358d20d5
60 changed files with 448 additions and 376 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
#include <MwCXX/Widget/Chart.h>
|
#include <MwCXX/Widget/Chart.h>
|
||||||
#include <MwCXX/Widget/CheckBox.h>
|
#include <MwCXX/Widget/CheckBox.h>
|
||||||
#include <MwCXX/Widget/Clock.h>
|
#include <MwCXX/Widget/Clock.h>
|
||||||
|
#include <MwCXX/Widget/Document.h>
|
||||||
#include <MwCXX/Widget/Entry.h>
|
#include <MwCXX/Widget/Entry.h>
|
||||||
#include <MwCXX/Widget/Frame.h>
|
#include <MwCXX/Widget/Frame.h>
|
||||||
#include <MwCXX/Widget/Image.h>
|
#include <MwCXX/Widget/Image.h>
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ void SetY(int value);
|
||||||
|
|
||||||
virtual void OnClipboard(MwCXX::String value) {};
|
virtual void OnClipboard(MwCXX::String value) {};
|
||||||
virtual void OnDarkTheme(int value) {};
|
virtual void OnDarkTheme(int value) {};
|
||||||
|
virtual void OnDragAndDrop(MwCXX::String value) {};
|
||||||
virtual void OnFocusIn() {};
|
virtual void OnFocusIn() {};
|
||||||
virtual void OnFocusOut() {};
|
virtual void OnFocusOut() {};
|
||||||
virtual void OnKey(int value) {};
|
virtual void OnKey(int value) {};
|
||||||
|
|
@ -57,6 +58,7 @@ virtual void OnTick() {};
|
||||||
|
|
||||||
void (*ClipboardHandler)(MwCXX::Base* widget, MwCXX::String value);
|
void (*ClipboardHandler)(MwCXX::Base* widget, MwCXX::String value);
|
||||||
void (*DarkThemeHandler)(MwCXX::Base* widget, int value);
|
void (*DarkThemeHandler)(MwCXX::Base* widget, int value);
|
||||||
|
void (*DragAndDropHandler)(MwCXX::Base* widget, MwCXX::String value);
|
||||||
void (*FocusInHandler)(MwCXX::Base* widget);
|
void (*FocusInHandler)(MwCXX::Base* widget);
|
||||||
void (*FocusOutHandler)(MwCXX::Base* widget);
|
void (*FocusOutHandler)(MwCXX::Base* widget);
|
||||||
void (*KeyHandler)(MwCXX::Base* widget, int value);
|
void (*KeyHandler)(MwCXX::Base* widget, int value);
|
||||||
|
|
|
||||||
27
include/MwCXX/Widget/Document.h
Normal file
27
include/MwCXX/Widget/Document.h
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
#ifndef __MWCXX_WIDGET_DOCUMENT_H__
|
||||||
|
#define __MWCXX_WIDGET_DOCUMENT_H__
|
||||||
|
|
||||||
|
#include <MwCXX/MachDep.h>
|
||||||
|
#include <MwCXX/Widget/Base.h>
|
||||||
|
|
||||||
|
#include <Mw/Widget/Document.h>
|
||||||
|
|
||||||
|
namespace MwCXX {
|
||||||
|
class Document : public MwCXX::Base {
|
||||||
|
protected:
|
||||||
|
virtual void RegisterHandlers();
|
||||||
|
|
||||||
|
public:
|
||||||
|
Document(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||||
|
Document(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
|
MwCXX::String GetText();
|
||||||
|
void SetText(MwCXX::String value);
|
||||||
|
|
||||||
|
virtual void OnLayout(int value) {};
|
||||||
|
|
||||||
|
void (*LayoutHandler)(MwCXX::Document* widget, int value);
|
||||||
|
};
|
||||||
|
}; // namespace MwCXX
|
||||||
|
|
||||||
|
#endif
|
||||||
2
objs.mk
2
objs.mk
|
|
@ -1 +1 @@
|
||||||
OBJS += src/dialog/colorpicker.o src/dialog/filechooser.o src/dialog/directorychooser.o src/dialog/messagebox.o src/widget/baseauto.o src/widget/box.o src/widget/button.o src/widget/calendar.o src/widget/chart.o src/widget/checkbox.o src/widget/clock.o src/widget/entry.o src/widget/frame.o src/widget/image.o src/widget/label.o src/widget/listbox.o src/widget/menu.o src/widget/numberentry.o src/widget/scrollbar.o src/widget/submenu.o src/widget/viewport.o src/widget/window.o src/widget/progressbar.o src/widget/radiobox.o src/widget/combobox.o src/widget/treeview.o src/widget/subwindow.o src/widget/table.o src/widget/tab.o src/widget/opengl.o src/widget/vulkan.o
|
OBJS += src/dialog/colorpicker.o src/dialog/filechooser.o src/dialog/directorychooser.o src/dialog/messagebox.o src/widget/baseauto.o src/widget/box.o src/widget/button.o src/widget/calendar.o src/widget/chart.o src/widget/checkbox.o src/widget/clock.o src/widget/document.o src/widget/entry.o src/widget/frame.o src/widget/image.o src/widget/label.o src/widget/listbox.o src/widget/menu.o src/widget/numberentry.o src/widget/scrollbar.o src/widget/submenu.o src/widget/viewport.o src/widget/window.o src/widget/progressbar.o src/widget/radiobox.o src/widget/combobox.o src/widget/treeview.o src/widget/subwindow.o src/widget/table.o src/widget/tab.o src/widget/opengl.o src/widget/vulkan.o
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
MwCXX::Window* MwCXX::ColorPicker(MwCXX::Base* handle, MwCXX::String title) {
|
MwCXX::Window* MwCXX::ColorPicker(MwCXX::Base* handle, MwCXX::String title) {
|
||||||
return new MwCXX::Window(MwColorPicker((handle == NULL ? NULL : handle->GetWidget()),
|
return new MwCXX::Window(MwColorPicker((handle == NULL ? NULL : handle->GetWidget()),
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
title
|
title
|
||||||
#else
|
#else
|
||||||
title.c_str()
|
title.c_str()
|
||||||
#endif
|
#endif
|
||||||
), handle);
|
),
|
||||||
|
handle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
MwCXX::Window* MwCXX::DirectoryChooser(MwCXX::Base* handle, MwCXX::String title) {
|
MwCXX::Window* MwCXX::DirectoryChooser(MwCXX::Base* handle, MwCXX::String title) {
|
||||||
return new MwCXX::Window(MwDirectoryChooser((handle == NULL ? NULL : handle->GetWidget()),
|
return new MwCXX::Window(MwDirectoryChooser((handle == NULL ? NULL : handle->GetWidget()),
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
title
|
title
|
||||||
#else
|
#else
|
||||||
title.c_str()
|
title.c_str()
|
||||||
#endif
|
#endif
|
||||||
), handle);
|
),
|
||||||
|
handle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,21 @@
|
||||||
MwCXX::Window* MwCXX::FileChooser(MwCXX::Base* handle, MwCXX::String title) {
|
MwCXX::Window* MwCXX::FileChooser(MwCXX::Base* handle, MwCXX::String title) {
|
||||||
return new MwCXX::Window(MwFileChooser((handle == NULL ? NULL : handle->GetWidget()),
|
return new MwCXX::Window(MwFileChooser((handle == NULL ? NULL : handle->GetWidget()),
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
title
|
title
|
||||||
#else
|
#else
|
||||||
title.c_str()
|
title.c_str()
|
||||||
#endif
|
#endif
|
||||||
), handle);
|
),
|
||||||
|
handle);
|
||||||
}
|
}
|
||||||
MwCXX::Window* MwCXX::FileChooserEx(MwCXX::Base* handle, MwCXX::String title, int dir) {
|
MwCXX::Window* MwCXX::FileChooserEx(MwCXX::Base* handle, MwCXX::String title, int dir) {
|
||||||
return new MwCXX::Window(MwFileChooserEx((handle == NULL ? NULL : handle->GetWidget()),
|
return new MwCXX::Window(MwFileChooserEx((handle == NULL ? NULL : handle->GetWidget()),
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
title
|
title
|
||||||
#else
|
#else
|
||||||
title.c_str()
|
title.c_str()
|
||||||
#endif
|
#endif
|
||||||
, (int)dir), handle);
|
,
|
||||||
|
(int)dir),
|
||||||
|
handle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,17 +3,19 @@
|
||||||
MwCXX::Window* MwCXX::MessageBox(MwCXX::Base* handle, MwCXX::String text, MwCXX::String title, unsigned int flag) {
|
MwCXX::Window* MwCXX::MessageBox(MwCXX::Base* handle, MwCXX::String text, MwCXX::String title, unsigned int flag) {
|
||||||
return new MwCXX::Window(MwMessageBox((handle == NULL ? NULL : handle->GetWidget()),
|
return new MwCXX::Window(MwMessageBox((handle == NULL ? NULL : handle->GetWidget()),
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
text
|
text
|
||||||
#else
|
#else
|
||||||
text.c_str()
|
text.c_str()
|
||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
title
|
title
|
||||||
#else
|
#else
|
||||||
title.c_str()
|
title.c_str()
|
||||||
#endif
|
#endif
|
||||||
, (unsigned int)flag), handle);
|
,
|
||||||
|
(unsigned int)flag),
|
||||||
|
handle);
|
||||||
}
|
}
|
||||||
MwCXX::Button* MwCXX::MessageBoxGetChild(MwCXX::Window* handle, int child) {
|
MwCXX::Button* MwCXX::MessageBoxGetChild(MwCXX::Window* handle, int child) {
|
||||||
return new MwCXX::Button(MwMessageBoxGetChild((handle == NULL ? NULL : handle->GetWidget()), (int)child), handle);
|
return new MwCXX::Button(MwMessageBoxGetChild((handle == NULL ? NULL : handle->GetWidget()), (int)child), handle);
|
||||||
|
|
|
||||||
|
|
@ -209,6 +209,11 @@ static void __OnDarkTheme(MwWidget handle, void* user, void* call) {
|
||||||
if(((MwCXX::Base*)user)->DarkThemeHandler != NULL) ((MwCXX::Base*)user)->DarkThemeHandler((MwCXX::Base*)user, *(int*)call);
|
if(((MwCXX::Base*)user)->DarkThemeHandler != NULL) ((MwCXX::Base*)user)->DarkThemeHandler((MwCXX::Base*)user, *(int*)call);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void __OnDragAndDrop(MwWidget handle, void* user, void* call) {
|
||||||
|
((MwCXX::Base*)user)->OnDragAndDrop((MwCXX::String)(char*)call);
|
||||||
|
if(((MwCXX::Base*)user)->DragAndDropHandler != NULL) ((MwCXX::Base*)user)->DragAndDropHandler((MwCXX::Base*)user, (MwCXX::String)(char*)call);
|
||||||
|
}
|
||||||
|
|
||||||
static void __OnFocusIn(MwWidget handle, void* user, void* call) {
|
static void __OnFocusIn(MwWidget handle, void* user, void* call) {
|
||||||
((MwCXX::Base*)user)->OnFocusIn();
|
((MwCXX::Base*)user)->OnFocusIn();
|
||||||
if(((MwCXX::Base*)user)->FocusInHandler != NULL) ((MwCXX::Base*)user)->FocusInHandler((MwCXX::Base*)user);
|
if(((MwCXX::Base*)user)->FocusInHandler != NULL) ((MwCXX::Base*)user)->FocusInHandler((MwCXX::Base*)user);
|
||||||
|
|
@ -257,6 +262,7 @@ static void __OnTick(MwWidget handle, void* user, void* call) {
|
||||||
void MwCXX::Base::RegisterHandlers() {
|
void MwCXX::Base::RegisterHandlers() {
|
||||||
MwAddUserHandler(this->widget, MwNclipboardHandler, __OnClipboard, (void*)this);
|
MwAddUserHandler(this->widget, MwNclipboardHandler, __OnClipboard, (void*)this);
|
||||||
MwAddUserHandler(this->widget, MwNdarkThemeHandler, __OnDarkTheme, (void*)this);
|
MwAddUserHandler(this->widget, MwNdarkThemeHandler, __OnDarkTheme, (void*)this);
|
||||||
|
MwAddUserHandler(this->widget, MwNdragAndDropHandler, __OnDragAndDrop, (void*)this);
|
||||||
MwAddUserHandler(this->widget, MwNfocusInHandler, __OnFocusIn, (void*)this);
|
MwAddUserHandler(this->widget, MwNfocusInHandler, __OnFocusIn, (void*)this);
|
||||||
MwAddUserHandler(this->widget, MwNfocusOutHandler, __OnFocusOut, (void*)this);
|
MwAddUserHandler(this->widget, MwNfocusOutHandler, __OnFocusOut, (void*)this);
|
||||||
MwAddUserHandler(this->widget, MwNkeyHandler, __OnKey, (void*)this);
|
MwAddUserHandler(this->widget, MwNkeyHandler, __OnKey, (void*)this);
|
||||||
|
|
@ -269,6 +275,7 @@ void MwCXX::Base::RegisterHandlers() {
|
||||||
|
|
||||||
this->ClipboardHandler = NULL;
|
this->ClipboardHandler = NULL;
|
||||||
this->DarkThemeHandler = NULL;
|
this->DarkThemeHandler = NULL;
|
||||||
|
this->DragAndDropHandler = NULL;
|
||||||
this->FocusInHandler = NULL;
|
this->FocusInHandler = NULL;
|
||||||
this->FocusOutHandler = NULL;
|
this->FocusOutHandler = NULL;
|
||||||
this->KeyHandler = NULL;
|
this->KeyHandler = NULL;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Box.h>
|
#include <MwCXX/Widget/Box.h>
|
||||||
|
|
||||||
MwCXX::Box::Box(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Box::Box(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,4 +60,3 @@ void MwCXX::Box::SetWaitLayout(int value) {
|
||||||
|
|
||||||
void MwCXX::Box::RegisterHandlers() {
|
void MwCXX::Box::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Button.h>
|
#include <MwCXX/Widget/Button.h>
|
||||||
|
|
||||||
MwCXX::Button::Button(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Button::Button(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -69,4 +71,3 @@ void MwCXX::Button::RegisterHandlers() {
|
||||||
this->ActivateHandler = NULL;
|
this->ActivateHandler = NULL;
|
||||||
this->ChangedHandler = NULL;
|
this->ChangedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Calendar.h>
|
#include <MwCXX/Widget/Calendar.h>
|
||||||
|
|
||||||
MwCXX::Calendar::Calendar(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Calendar::Calendar(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Calendar::Calendar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwCalendarClass, name, parent, x, y, width, height) {
|
MwCXX::Calendar::Calendar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwCalendarClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -50,4 +52,3 @@ void MwCXX::Calendar::SetScale(int value) {
|
||||||
|
|
||||||
void MwCXX::Calendar::RegisterHandlers() {
|
void MwCXX::Calendar::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Chart.h>
|
#include <MwCXX/Widget/Chart.h>
|
||||||
|
|
||||||
MwCXX::Chart::Chart(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Chart::Chart(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Chart::Chart(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwChartClass, name, parent, x, y, width, height) {
|
MwCXX::Chart::Chart(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwChartClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -35,8 +37,7 @@ void MwCXX::Chart::SetMaxValue(int value) {
|
||||||
void MwCXX::Chart::RegisterHandlers() {
|
void MwCXX::Chart::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::Chart::Set(int index, MwCXX::String text, double value, MwCXX::String color)
|
int MwCXX::Chart::Set(int index, MwCXX::String text, double value, MwCXX::String color) {
|
||||||
{
|
|
||||||
int out;
|
int out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwChartSet", &out, index,
|
MwVaWidgetExecute(this->widget, "mwChartSet", &out, index,
|
||||||
|
|
@ -45,7 +46,8 @@ int MwCXX::Chart::Set(int index, MwCXX::String text, double value, MwCXX::String
|
||||||
#else
|
#else
|
||||||
text.c_str()
|
text.c_str()
|
||||||
#endif
|
#endif
|
||||||
, value,
|
,
|
||||||
|
value,
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
color
|
color
|
||||||
#else
|
#else
|
||||||
|
|
@ -56,8 +58,6 @@ int MwCXX::Chart::Set(int index, MwCXX::String text, double value, MwCXX::String
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::Chart::Delete(int index)
|
void MwCXX::Chart::Delete(int index) {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwChartDelete", NULL, index);
|
||||||
MwVaWidgetExecute(this->widget, "mwChartDelete", NULL, index );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/CheckBox.h>
|
#include <MwCXX/Widget/CheckBox.h>
|
||||||
|
|
||||||
MwCXX::CheckBox::CheckBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::CheckBox::CheckBox(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -26,4 +28,3 @@ void MwCXX::CheckBox::RegisterHandlers() {
|
||||||
|
|
||||||
this->ChangedHandler = NULL;
|
this->ChangedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Clock.h>
|
#include <MwCXX/Widget/Clock.h>
|
||||||
|
|
||||||
MwCXX::Clock::Clock(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Clock::Clock(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Clock::Clock(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwClockClass, name, parent, x, y, width, height) {
|
MwCXX::Clock::Clock(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwClockClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -34,4 +36,3 @@ void MwCXX::Clock::SetSecond(int value) {
|
||||||
|
|
||||||
void MwCXX::Clock::RegisterHandlers() {
|
void MwCXX::Clock::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/ComboBox.h>
|
#include <MwCXX/Widget/ComboBox.h>
|
||||||
|
|
||||||
MwCXX::ComboBox::ComboBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::ComboBox::ComboBox(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -35,8 +37,7 @@ void MwCXX::ComboBox::RegisterHandlers() {
|
||||||
this->ComboBoxChangedHandler = NULL;
|
this->ComboBoxChangedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::ComboBox::Add(int index, MwCXX::String text)
|
void MwCXX::ComboBox::Add(int index, MwCXX::String text) {
|
||||||
{
|
|
||||||
MwVaWidgetExecute(this->widget, "mwComboBoxAdd", NULL, index,
|
MwVaWidgetExecute(this->widget, "mwComboBoxAdd", NULL, index,
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
text
|
text
|
||||||
|
|
@ -46,8 +47,7 @@ void MwCXX::ComboBox::Add(int index, MwCXX::String text)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::String MwCXX::ComboBox::Get(int index, MwCXX::String text)
|
MwCXX::String MwCXX::ComboBox::Get(int index, MwCXX::String text) {
|
||||||
{
|
|
||||||
char* out;
|
char* out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwComboBoxGet", &out, index,
|
MwVaWidgetExecute(this->widget, "mwComboBoxGet", &out, index,
|
||||||
|
|
@ -65,13 +65,10 @@ MwCXX::String MwCXX::ComboBox::Get(int index, MwCXX::String text)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::ComboBox::Delete(int index)
|
void MwCXX::ComboBox::Delete(int index) {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwComboBoxDelete", NULL, index);
|
||||||
MwVaWidgetExecute(this->widget, "mwComboBoxDelete", NULL, index );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::ComboBox::Reset()
|
void MwCXX::ComboBox::Reset() {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwComboBoxReset", NULL);
|
||||||
MwVaWidgetExecute(this->widget, "mwComboBoxReset", NULL );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
34
src/widget/document.cc
Normal file
34
src/widget/document.cc
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
#include <MwCXX/Widget/Document.h>
|
||||||
|
|
||||||
|
MwCXX::Document::Document(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
|
this->RegisterHandlers();
|
||||||
|
}
|
||||||
|
|
||||||
|
MwCXX::Document::Document(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwDocumentClass, name, parent, x, y, width, height) {
|
||||||
|
this->RegisterHandlers();
|
||||||
|
}
|
||||||
|
|
||||||
|
MwCXX::String MwCXX::Document::GetText() {
|
||||||
|
return (MwCXX::String)MwGetText(this->widget, MwNtext);
|
||||||
|
}
|
||||||
|
|
||||||
|
void MwCXX::Document::SetText(MwCXX::String value) {
|
||||||
|
#ifndef MWCXX_USE_C_STRING
|
||||||
|
MwSetText(this->widget, MwNtext, value.c_str());
|
||||||
|
#else
|
||||||
|
MwSetText(this->widget, MwNtext, (MwCXX::String)value);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
static void __OnLayout(MwWidget handle, void* user, void* call) {
|
||||||
|
((MwCXX::Document*)user)->OnLayout(*(int*)call);
|
||||||
|
if(((MwCXX::Document*)user)->LayoutHandler != NULL) ((MwCXX::Document*)user)->LayoutHandler((MwCXX::Document*)user, *(int*)call);
|
||||||
|
}
|
||||||
|
|
||||||
|
void MwCXX::Document::RegisterHandlers() {
|
||||||
|
MwAddUserHandler(this->widget, MwNlayoutHandler, __OnLayout, (void*)this);
|
||||||
|
|
||||||
|
this->LayoutHandler = NULL;
|
||||||
|
}
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Entry.h>
|
#include <MwCXX/Widget/Entry.h>
|
||||||
|
|
||||||
MwCXX::Entry::Entry(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Entry::Entry(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -45,4 +47,3 @@ void MwCXX::Entry::RegisterHandlers() {
|
||||||
this->ActivateHandler = NULL;
|
this->ActivateHandler = NULL;
|
||||||
this->ChangedHandler = NULL;
|
this->ChangedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Frame.h>
|
#include <MwCXX/Widget/Frame.h>
|
||||||
|
|
||||||
MwCXX::Frame::Frame(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Frame::Frame(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -34,4 +36,3 @@ void MwCXX::Frame::SetIconPixmap(MwLLPixmap value) {
|
||||||
|
|
||||||
void MwCXX::Frame::RegisterHandlers() {
|
void MwCXX::Frame::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Image.h>
|
#include <MwCXX/Widget/Image.h>
|
||||||
|
|
||||||
MwCXX::Image::Image(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Image::Image(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -42,4 +44,3 @@ void MwCXX::Image::SetFillArea(int value) {
|
||||||
|
|
||||||
void MwCXX::Image::RegisterHandlers() {
|
void MwCXX::Image::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Label.h>
|
#include <MwCXX/Widget/Label.h>
|
||||||
|
|
||||||
MwCXX::Label::Label(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Label::Label(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -63,8 +65,6 @@ void MwCXX::Label::SetLeftPadding(int value) {
|
||||||
void MwCXX::Label::RegisterHandlers() {
|
void MwCXX::Label::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::Label::SetSevenSegment(int index, int data)
|
void MwCXX::Label::SetSevenSegment(int index, int data) {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwLabelSetSevenSegment", NULL, index, data);
|
||||||
MwVaWidgetExecute(this->widget, "mwLabelSetSevenSegment", NULL, index, data );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/ListBox.h>
|
#include <MwCXX/Widget/ListBox.h>
|
||||||
|
|
||||||
MwCXX::ListBox::ListBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::ListBox::ListBox(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -43,8 +45,7 @@ void MwCXX::ListBox::RegisterHandlers() {
|
||||||
this->ListBoxActivateHandler = NULL;
|
this->ListBoxActivateHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::ListBox::Set(int row, int col, MwCXX::String text)
|
int MwCXX::ListBox::Set(int row, int col, MwCXX::String text) {
|
||||||
{
|
|
||||||
int out;
|
int out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwListBoxSet", &out, row, col,
|
MwVaWidgetExecute(this->widget, "mwListBoxSet", &out, row, col,
|
||||||
|
|
@ -58,21 +59,18 @@ int MwCXX::ListBox::Set(int row, int col, MwCXX::String text)
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::ListBox::SetIcon(int index, MwLLPixmap icon)
|
void MwCXX::ListBox::SetIcon(int index, MwLLPixmap icon) {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwListBoxSetIcon", NULL, index, icon);
|
||||||
MwVaWidgetExecute(this->widget, "mwListBoxSetIcon", NULL, index, icon );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::ListBox::Delete(int index)
|
void MwCXX::ListBox::Delete(int index) {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwListBoxDelete", NULL, index);
|
||||||
MwVaWidgetExecute(this->widget, "mwListBoxDelete", NULL, index );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::String MwCXX::ListBox::Get(int index)
|
MwCXX::String MwCXX::ListBox::Get(int index) {
|
||||||
{
|
|
||||||
char* out;
|
char* out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwListBoxGet", &out, index );
|
MwVaWidgetExecute(this->widget, "mwListBoxGet", &out, index);
|
||||||
|
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
return out;
|
return out;
|
||||||
|
|
@ -81,13 +79,10 @@ MwCXX::String MwCXX::ListBox::Get(int index)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::ListBox::SetWidth(int index, int width)
|
void MwCXX::ListBox::SetWidth(int index, int width) {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwListBoxSetWidth", NULL, index, width);
|
||||||
MwVaWidgetExecute(this->widget, "mwListBoxSetWidth", NULL, index, width );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::ListBox::Reset()
|
void MwCXX::ListBox::Reset() {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwListBoxReset", NULL);
|
||||||
MwVaWidgetExecute(this->widget, "mwListBoxReset", NULL );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Menu.h>
|
#include <MwCXX/Widget/Menu.h>
|
||||||
|
|
||||||
MwCXX::Menu::Menu(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Menu::Menu(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -19,8 +21,7 @@ void MwCXX::Menu::RegisterHandlers() {
|
||||||
this->MenuHandler = NULL;
|
this->MenuHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void* MwCXX::Menu::Add(void* menu, MwCXX::String name)
|
void* MwCXX::Menu::Add(void* menu, MwCXX::String name) {
|
||||||
{
|
|
||||||
void* out;
|
void* out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwMenuAdd", &out, menu,
|
MwVaWidgetExecute(this->widget, "mwMenuAdd", &out, menu,
|
||||||
|
|
@ -33,4 +34,3 @@ void* MwCXX::Menu::Add(void* menu, MwCXX::String name)
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/NumberEntry.h>
|
#include <MwCXX/Widget/NumberEntry.h>
|
||||||
|
|
||||||
MwCXX::NumberEntry::NumberEntry(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::NumberEntry::NumberEntry(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -37,4 +39,3 @@ void MwCXX::NumberEntry::RegisterHandlers() {
|
||||||
this->ActivateHandler = NULL;
|
this->ActivateHandler = NULL;
|
||||||
this->ChangedHandler = NULL;
|
this->ChangedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,24 @@
|
||||||
#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* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::OpenGL::OpenGL(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::OpenGL::RegisterHandlers() {
|
void MwCXX::OpenGL::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::OpenGL::MakeCurrent()
|
void MwCXX::OpenGL::MakeCurrent() {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwOpenGLMakeCurrent", NULL);
|
||||||
MwVaWidgetExecute(this->widget, "mwOpenGLMakeCurrent", NULL );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void* MwCXX::OpenGL::GetProcAddress(MwCXX::String name)
|
void* MwCXX::OpenGL::GetProcAddress(MwCXX::String name) {
|
||||||
{
|
|
||||||
void* out;
|
void* out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwOpenGLGetProcAddress", &out,
|
MwVaWidgetExecute(this->widget, "mwOpenGLGetProcAddress", &out,
|
||||||
|
|
@ -32,8 +32,6 @@ void* MwCXX::OpenGL::GetProcAddress(MwCXX::String name)
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::OpenGL::SwapBuffer()
|
void MwCXX::OpenGL::SwapBuffer() {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwOpenGLSwapBuffer", NULL);
|
||||||
MwVaWidgetExecute(this->widget, "mwOpenGLSwapBuffer", NULL );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/ProgressBar.h>
|
#include <MwCXX/Widget/ProgressBar.h>
|
||||||
|
|
||||||
MwCXX::ProgressBar::ProgressBar(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::ProgressBar::ProgressBar(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -34,4 +36,3 @@ void MwCXX::ProgressBar::SetValue(int value) {
|
||||||
|
|
||||||
void MwCXX::ProgressBar::RegisterHandlers() {
|
void MwCXX::ProgressBar::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/RadioBox.h>
|
#include <MwCXX/Widget/RadioBox.h>
|
||||||
|
|
||||||
MwCXX::RadioBox::RadioBox(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::RadioBox::RadioBox(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -26,4 +28,3 @@ void MwCXX::RadioBox::RegisterHandlers() {
|
||||||
|
|
||||||
this->ChangedHandler = NULL;
|
this->ChangedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/ScrollBar.h>
|
#include <MwCXX/Widget/ScrollBar.h>
|
||||||
|
|
||||||
MwCXX::ScrollBar::ScrollBar(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::ScrollBar::ScrollBar(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -67,12 +69,10 @@ void MwCXX::ScrollBar::RegisterHandlers() {
|
||||||
this->ChangedHandler = NULL;
|
this->ChangedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::ScrollBar::GetVisibleLength()
|
int MwCXX::ScrollBar::GetVisibleLength() {
|
||||||
{
|
|
||||||
int out;
|
int out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwScrollBarGetVisibleLength", &out );
|
MwVaWidgetExecute(this->widget, "mwScrollBarGetVisibleLength", &out);
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/SubMenu.h>
|
#include <MwCXX/Widget/SubMenu.h>
|
||||||
|
|
||||||
MwCXX::SubMenu::SubMenu(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::SubMenu::SubMenu(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -19,13 +21,10 @@ void MwCXX::SubMenu::SetLeftPadding(int value) {
|
||||||
void MwCXX::SubMenu::RegisterHandlers() {
|
void MwCXX::SubMenu::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::SubMenu::Appear(void* menu, MwPoint* point, int diff_calc)
|
void MwCXX::SubMenu::Appear(void* menu, MwPoint* point, int diff_calc) {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwSubMenuAppear", NULL, menu, point, diff_calc);
|
||||||
MwVaWidgetExecute(this->widget, "mwSubMenuAppear", NULL, menu, point, diff_calc );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::SubMenu::GetSize(void* menu, MwRect* rect)
|
void MwCXX::SubMenu::GetSize(void* menu, MwRect* rect) {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwSubMenuGetSize", NULL, menu, rect);
|
||||||
MwVaWidgetExecute(this->widget, "mwSubMenuGetSize", NULL, menu, rect );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/SubWindow.h>
|
#include <MwCXX/Widget/SubWindow.h>
|
||||||
|
|
||||||
MwCXX::SubWindow::SubWindow(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::SubWindow::SubWindow(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::SubWindow::SubWindow(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwSubWindowClass, name, parent, x, y, width, height) {
|
MwCXX::SubWindow::SubWindow(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwSubWindowClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -39,12 +41,10 @@ void MwCXX::SubWindow::RegisterHandlers() {
|
||||||
this->CloseHandler = NULL;
|
this->CloseHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Base* MwCXX::SubWindow::GetFrame()
|
MwCXX::Base* MwCXX::SubWindow::GetFrame() {
|
||||||
{
|
|
||||||
MwCXX::Base* out;
|
MwCXX::Base* out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwSubWindowGetFrame", &out );
|
MwVaWidgetExecute(this->widget, "mwSubWindowGetFrame", &out);
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Tab.h>
|
#include <MwCXX/Widget/Tab.h>
|
||||||
|
|
||||||
MwCXX::Tab::Tab(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Tab::Tab(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Tab::Tab(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwTabClass, name, parent, x, y, width, height) {
|
MwCXX::Tab::Tab(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwTabClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -27,8 +29,7 @@ void MwCXX::Tab::RegisterHandlers() {
|
||||||
this->ChangedHandler = NULL;
|
this->ChangedHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Base* MwCXX::Tab::Add(MwCXX::String name)
|
MwCXX::Base* MwCXX::Tab::Add(MwCXX::String name) {
|
||||||
{
|
|
||||||
MwCXX::Base* out;
|
MwCXX::Base* out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwTabAdd", &out,
|
MwVaWidgetExecute(this->widget, "mwTabAdd", &out,
|
||||||
|
|
@ -42,8 +43,7 @@ MwCXX::Base* MwCXX::Tab::Add(MwCXX::String name)
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Base* MwCXX::Tab::GetFrame(MwCXX::String name)
|
MwCXX::Base* MwCXX::Tab::GetFrame(MwCXX::String name) {
|
||||||
{
|
|
||||||
MwCXX::Base* out;
|
MwCXX::Base* out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwTabGetFrame", &out,
|
MwVaWidgetExecute(this->widget, "mwTabGetFrame", &out,
|
||||||
|
|
@ -57,8 +57,7 @@ MwCXX::Base* MwCXX::Tab::GetFrame(MwCXX::String name)
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::Tab::Focus(MwCXX::String name)
|
void MwCXX::Tab::Focus(MwCXX::String name) {
|
||||||
{
|
|
||||||
MwVaWidgetExecute(this->widget, "mwTabFocus", NULL,
|
MwVaWidgetExecute(this->widget, "mwTabFocus", NULL,
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
name
|
name
|
||||||
|
|
@ -67,4 +66,3 @@ void MwCXX::Tab::Focus(MwCXX::String name)
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Table.h>
|
#include <MwCXX/Widget/Table.h>
|
||||||
|
|
||||||
MwCXX::Table::Table(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Table::Table(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Table::Table(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height) : MwCXX::Base(MwTableClass, name, parent, x, y, width, height) {
|
MwCXX::Table::Table(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
|
||||||
|
: MwCXX::Base(MwTableClass, name, parent, x, y, width, height) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,4 +60,3 @@ void MwCXX::Table::SetWaitLayout(int value) {
|
||||||
|
|
||||||
void MwCXX::Table::RegisterHandlers() {
|
void MwCXX::Table::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/TreeView.h>
|
#include <MwCXX/Widget/TreeView.h>
|
||||||
|
|
||||||
MwCXX::TreeView::TreeView(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::TreeView::TreeView(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -35,8 +37,7 @@ void MwCXX::TreeView::RegisterHandlers() {
|
||||||
this->TreeViewActivateHandler = NULL;
|
this->TreeViewActivateHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::TreeView::Add(void* parent, MwLLPixmap pixmap, MwCXX::String item)
|
void MwCXX::TreeView::Add(void* parent, MwLLPixmap pixmap, MwCXX::String item) {
|
||||||
{
|
|
||||||
MwVaWidgetExecute(this->widget, "mwTreeViewAdd", NULL, parent, pixmap,
|
MwVaWidgetExecute(this->widget, "mwTreeViewAdd", NULL, parent, pixmap,
|
||||||
#ifdef MWCXX_USE_C_STRING
|
#ifdef MWCXX_USE_C_STRING
|
||||||
item
|
item
|
||||||
|
|
@ -46,27 +47,22 @@ void MwCXX::TreeView::Add(void* parent, MwLLPixmap pixmap, MwCXX::String item)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::TreeView::Delete(void* item)
|
void MwCXX::TreeView::Delete(void* item) {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwTreeViewDelete", NULL, item);
|
||||||
MwVaWidgetExecute(this->widget, "mwTreeViewDelete", NULL, item );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::TreeView::SetOpened(void* item, int opened)
|
void MwCXX::TreeView::SetOpened(void* item, int opened) {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwTreeViewSetOpened", NULL, item, opened);
|
||||||
MwVaWidgetExecute(this->widget, "mwTreeViewSetOpened", NULL, item, opened );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int MwCXX::TreeView::GetOpened(void* item)
|
int MwCXX::TreeView::GetOpened(void* item) {
|
||||||
{
|
|
||||||
int out;
|
int out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwTreeViewGetOpened", &out, item );
|
MwVaWidgetExecute(this->widget, "mwTreeViewGetOpened", &out, item);
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::TreeView::Reset()
|
void MwCXX::TreeView::Reset() {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwTreeViewReset", NULL);
|
||||||
MwVaWidgetExecute(this->widget, "mwTreeViewReset", NULL );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,26 @@
|
||||||
#include <MwCXX/Widget/Viewport.h>
|
#include <MwCXX/Widget/Viewport.h>
|
||||||
|
|
||||||
MwCXX::Viewport::Viewport(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Viewport::Viewport(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::Viewport::RegisterHandlers() {
|
void MwCXX::Viewport::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
MwCXX::Base* MwCXX::Viewport::GetViewport()
|
MwCXX::Base* MwCXX::Viewport::GetViewport() {
|
||||||
{
|
|
||||||
MwCXX::Base* out;
|
MwCXX::Base* out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwViewportGetViewport", &out );
|
MwVaWidgetExecute(this->widget, "mwViewportGetViewport", &out);
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::Viewport::SetSize(int w, int h)
|
void MwCXX::Viewport::SetSize(int w, int h) {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwViewportSetSize", NULL, w, h);
|
||||||
MwVaWidgetExecute(this->widget, "mwViewportSetSize", NULL, w, h );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
#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* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Vulkan::Vulkan(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::Vulkan::RegisterHandlers() {
|
void MwCXX::Vulkan::RegisterHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void* MwCXX::Vulkan::GetField(int field, int* output)
|
void* MwCXX::Vulkan::GetField(int field, int* output) {
|
||||||
{
|
|
||||||
void* out;
|
void* out;
|
||||||
|
|
||||||
MwVaWidgetExecute(this->widget, "mwVulkanGetField", &out, field, output );
|
MwVaWidgetExecute(this->widget, "mwVulkanGetField", &out, field, output);
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
#include <MwCXX/Widget/Window.h>
|
#include <MwCXX/Widget/Window.h>
|
||||||
|
|
||||||
MwCXX::Window::Window(MwWidget widget, MwCXX::Base* parent) : MwCXX::Base(widget, parent) {
|
MwCXX::Window::Window(MwWidget widget, MwCXX::Base* parent)
|
||||||
|
: MwCXX::Base(widget, parent) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
this->RegisterHandlers();
|
this->RegisterHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -92,8 +94,6 @@ void MwCXX::Window::RegisterHandlers() {
|
||||||
this->CloseHandler = NULL;
|
this->CloseHandler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwCXX::Window::MakeBorderless()
|
void MwCXX::Window::MakeBorderless() {
|
||||||
{
|
MwVaWidgetExecute(this->widget, "mwWindowMakeBorderless", NULL);
|
||||||
MwVaWidgetExecute(this->widget, "mwWindowMakeBorderless", NULL );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue