mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@230 b9cfdab3-6d41-4d17-bbe4-086880011989
32 lines
839 B
C++
32 lines
839 B
C++
/* $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::SetChecked(int value){
|
|
MwSetInteger(this->widget, MwNchecked, value);
|
|
}
|
|
|
|
int MwOO::CheckBox::GetChecked(void){
|
|
return MwGetInteger(this->widget, MwNchecked);
|
|
}
|
|
|
|
void MwOO::CheckBox::SetBackground(const char* value){
|
|
MwSetText(this->widget, MwNbackground, value);
|
|
}
|
|
|
|
const char* MwOO::CheckBox::GetBackground(void){
|
|
return MwGetText(this->widget, MwNbackground);
|
|
}
|
|
|
|
void MwOO::CheckBox::SetForeground(const char* value){
|
|
MwSetText(this->widget, MwNforeground, value);
|
|
}
|
|
|
|
const char* MwOO::CheckBox::GetForeground(void){
|
|
return MwGetText(this->widget, MwNforeground);
|
|
}
|
|
|