Files
milsko/oosrc/widget/label.cc
NishiOwO 795bb2d03f add cursor
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@230 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-10-08 17:34:14 +00:00

40 lines
990 B
C++

/* $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);
}
void MwOO::Label::SetBackground(const char* value){
MwSetText(this->widget, MwNbackground, value);
}
const char* MwOO::Label::GetBackground(void){
return MwGetText(this->widget, MwNbackground);
}
void MwOO::Label::SetForeground(const char* value){
MwSetText(this->widget, MwNforeground, value);
}
const char* MwOO::Label::GetForeground(void){
return MwGetText(this->widget, MwNforeground);
}