milsko/oosrc/widget/checkbox.cc

31 lines
839 B
C++
Raw Normal View History

/* $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);
}