git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@206 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-07 15:10:46 +00:00
parent 286ecbd71b
commit 2129cf9cb8
18 changed files with 202 additions and 2 deletions

View File

@@ -16,6 +16,38 @@ void MwOO::Base::Loop(void){
MwLoop(this->widget);
}
void MwOO::Base::SetX(int value){
MwSetInteger(this->widget, MwNx, value);
}
void MwOO::Base::SetY(int value){
MwSetInteger(this->widget, MwNy, value);
}
void MwOO::Base::SetWidth(int value){
MwSetInteger(this->widget, MwNwidth, value);
}
void MwOO::Base::SetHeight(int value){
MwSetInteger(this->widget, MwNheight, value);
}
int MwOO::Base::GetX(void){
return MwGetInteger(this->widget, MwNx);
}
int MwOO::Base::GetY(void){
return MwGetInteger(this->widget, MwNy);
}
int MwOO::Base::GetWidth(void){
return MwGetInteger(this->widget, MwNwidth);
}
int MwOO::Base::GetHeight(void){
return MwGetInteger(this->widget, MwNheight);
}
/* BEGIN AUTOGENERATE */
static void __OnActivate(MwWidget widget, void* user, void* call){
MwOO::Base* c = (MwOO::Base*)user;

View File

@@ -4,3 +4,12 @@
MwOO::Button::Button(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwButtonClass, widget_name, parent, x, y, w, h){
}
void MwOO::Button::SetPixmap(void* value){
MwSetVoid(this->widget, MwNpixmap, value);
}
void* MwOO::Button::GetPixmap(void){
return MwGetVoid(this->widget, MwNpixmap);
}

View File

@@ -4,3 +4,4 @@
MwOO::Frame::Frame(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwFrameClass, widget_name, parent, x, y, w, h){
}

View File

@@ -4,3 +4,12 @@
MwOO::Image::Image(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwImageClass, widget_name, parent, x, y, w, h){
}
void MwOO::Image::SetPixmap(void* value){
MwSetVoid(this->widget, MwNpixmap, value);
}
void* MwOO::Image::GetPixmap(void){
return MwGetVoid(this->widget, MwNpixmap);
}

View File

@@ -4,3 +4,4 @@
MwOO::Menu::Menu(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwMenuClass, widget_name, parent, x, y, w, h){
}

View File

@@ -4,3 +4,4 @@
MwOO::OpenGL::OpenGL(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwOpenGLClass, widget_name, parent, x, y, w, h){
}

View File

@@ -4,3 +4,44 @@
MwOO::ScrollBar::ScrollBar(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwScrollBarClass, widget_name, parent, x, y, w, h){
}
void MwOO::ScrollBar::SetAreaShown(int value){
MwSetInteger(this->widget, MwNareaShown, value);
}
int MwOO::ScrollBar::GetAreaShown(void){
return MwGetInteger(this->widget, MwNareaShown);
}
void MwOO::ScrollBar::SetValue(int value){
MwSetInteger(this->widget, MwNvalue, value);
}
int MwOO::ScrollBar::GetValue(void){
return MwGetInteger(this->widget, MwNvalue);
}
void MwOO::ScrollBar::SetMinValue(int value){
MwSetInteger(this->widget, MwNminValue, value);
}
int MwOO::ScrollBar::GetMinValue(void){
return MwGetInteger(this->widget, MwNminValue);
}
void MwOO::ScrollBar::SetMaxValue(int value){
MwSetInteger(this->widget, MwNmaxValue, value);
}
int MwOO::ScrollBar::GetMaxValue(void){
return MwGetInteger(this->widget, MwNmaxValue);
}
void MwOO::ScrollBar::SetOrientation(int value){
MwSetInteger(this->widget, MwNorientation, value);
}
int MwOO::ScrollBar::GetOrientation(void){
return MwGetInteger(this->widget, MwNorientation);
}

View File

@@ -4,3 +4,4 @@
MwOO::SubMenu::SubMenu(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwSubMenuClass, widget_name, parent, x, y, w, h){
}

View File

@@ -4,3 +4,4 @@
MwOO::Vulkan::Vulkan(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwVulkanClass, widget_name, parent, x, y, w, h){
}

View File

@@ -4,3 +4,4 @@
MwOO::Window::Window(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwWindowClass, widget_name, parent, x, y, w, h){
}