add label
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@213 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
b07ee601cd
commit
406452391b
18 changed files with 167 additions and 15 deletions
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);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue