/* $Id$ */ #include #include MwOO::ScrollBar::ScrollBar(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwScrollBarClass, widget_name, parent, x, y, w, h){ } int MwOO::ScrollBar::GetVisibleLength(void){ int ret; ret = MwScrollBarGetVisibleLength(this->widget); return ret; } void MwOO::ScrollBar::SetAreaShown(int value){ MwSetInteger(this->widget, MwNareaShown, value); } int MwOO::ScrollBar::GetAreaShown(void){ return MwGetInteger(this->widget, MwNareaShown); } void MwOO::ScrollBar::SetValue(int value){ MwSetInteger(this->widget, MwNvalue, value); } int MwOO::ScrollBar::GetValue(void){ return MwGetInteger(this->widget, MwNvalue); } void MwOO::ScrollBar::SetMinValue(int value){ MwSetInteger(this->widget, MwNminValue, value); } int MwOO::ScrollBar::GetMinValue(void){ return MwGetInteger(this->widget, MwNminValue); } void MwOO::ScrollBar::SetMaxValue(int value){ MwSetInteger(this->widget, MwNmaxValue, value); } int MwOO::ScrollBar::GetMaxValue(void){ return MwGetInteger(this->widget, MwNmaxValue); } void MwOO::ScrollBar::SetOrientation(int value){ MwSetInteger(this->widget, MwNorientation, value); } int MwOO::ScrollBar::GetOrientation(void){ return MwGetInteger(this->widget, MwNorientation); } void MwOO::ScrollBar::SetBackground(const char* value){ MwSetText(this->widget, MwNbackground, value); } const char* MwOO::ScrollBar::GetBackground(void){ return MwGetText(this->widget, MwNbackground); } void MwOO::ScrollBar::SetForeground(const char* value){ MwSetText(this->widget, MwNforeground, value); } const char* MwOO::ScrollBar::GetForeground(void){ return MwGetText(this->widget, MwNforeground); }