mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
checkbox
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@209 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -73,6 +73,10 @@ static void __OnMouseUpHandler(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
c->OnMouseUpHandler(call);
|
||||
}
|
||||
static void __OnChangedHandler(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
c->OnChangedHandler(call);
|
||||
}
|
||||
|
||||
void MwOO::Base::SetHandler(void){
|
||||
MwAddUserHandler(this->widget, MwNactivateHandler, __OnActivate, this);
|
||||
@@ -81,5 +85,6 @@ void MwOO::Base::SetHandler(void){
|
||||
MwAddUserHandler(this->widget, MwNmenuHandler, __OnMenu, this);
|
||||
MwAddUserHandler(this->widget, MwNmouseDownHandler, __OnMouseDownHandler, this);
|
||||
MwAddUserHandler(this->widget, MwNmouseUpHandler, __OnMouseUpHandler, this);
|
||||
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChangedHandler, this);
|
||||
}
|
||||
/* END AUTOGENERATE */
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# $Id$
|
||||
OOL_OBJS += oosrc/widget/button.o oosrc/widget/frame.o oosrc/widget/image.o oosrc/widget/menu.o oosrc/widget/scrollbar.o oosrc/widget/submenu.o oosrc/widget/window.o
|
||||
OOL_OBJS += oosrc/widget/button.o oosrc/widget/menu.o oosrc/widget/window.o oosrc/widget/image.o oosrc/widget/submenu.o oosrc/widget/frame.o oosrc/widget/scrollbar.o oosrc/widget/checkbox.o
|
||||
|
||||
15
oosrc/widget/checkbox.cc
Normal file
15
oosrc/widget/checkbox.cc
Normal file
@@ -0,0 +1,15 @@
|
||||
/* $Id$ */
|
||||
#include <MwOO/Widget/CheckBox.h>
|
||||
#include <Mw/Widget/CheckBox.h>
|
||||
|
||||
MwOO::CheckBox::CheckBox(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwCheckBoxClass, widget_name, parent, x, y, w, h){
|
||||
}
|
||||
|
||||
void MwOO::CheckBox::SetPixmap(void* value){
|
||||
MwSetVoid(this->widget, MwNpixmap, value);
|
||||
}
|
||||
|
||||
void* MwOO::CheckBox::GetPixmap(void){
|
||||
return MwGetVoid(this->widget, MwNpixmap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user