mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 16:10:50 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@230 b9cfdab3-6d41-4d17-bbe4-086880011989
40 lines
990 B
C++
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);
|
|
}
|
|
|