mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 16:10:50 +00:00
add label
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@213 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
# $Id$
|
||||
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
|
||||
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 oosrc/widget/checkbox.o oosrc/widget/label.o
|
||||
|
||||
@@ -13,3 +13,11 @@ void* MwOO::Button::GetPixmap(void){
|
||||
return MwGetVoid(this->widget, MwNpixmap);
|
||||
}
|
||||
|
||||
void MwOO::Button::SetText(const char* value){
|
||||
MwSetText(this->widget, MwNtext, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Button::GetText(void){
|
||||
return MwGetText(this->widget, MwNtext);
|
||||
}
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
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::SetChecked(int value){
|
||||
MwSetInteger(this->widget, MwNchecked, value);
|
||||
}
|
||||
|
||||
void* MwOO::CheckBox::GetPixmap(void){
|
||||
return MwGetVoid(this->widget, MwNpixmap);
|
||||
int MwOO::CheckBox::GetChecked(void){
|
||||
return MwGetInteger(this->widget, MwNchecked);
|
||||
}
|
||||
|
||||
|
||||
23
oosrc/widget/label.cc
Normal file
23
oosrc/widget/label.cc
Normal file
@@ -0,0 +1,23 @@
|
||||
/* $Id$ */
|
||||
#include <MwOO/Widget/Label.h>
|
||||
#include <Mw/Widget/Label.h>
|
||||
|
||||
MwOO::Label::Label(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwLabelClass, widget_name, parent, x, y, w, h){
|
||||
}
|
||||
|
||||
void MwOO::Label::SetText(const char* value){
|
||||
MwSetText(this->widget, MwNtext, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Label::GetText(void){
|
||||
return MwGetText(this->widget, MwNtext);
|
||||
}
|
||||
|
||||
void MwOO::Label::SetAlignment(int value){
|
||||
MwSetInteger(this->widget, MwNalignment, value);
|
||||
}
|
||||
|
||||
int MwOO::Label::GetAlignment(void){
|
||||
return MwGetInteger(this->widget, MwNalignment);
|
||||
}
|
||||
|
||||
@@ -5,3 +5,11 @@
|
||||
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){
|
||||
}
|
||||
|
||||
void MwOO::Window::SetTitle(const char* value){
|
||||
MwSetText(this->widget, MwNtitle, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Window::GetTitle(void){
|
||||
return MwGetText(this->widget, MwNtitle);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user