Files
milsko/oosrc/widget/scrollbar.cc
NishiOwO bd4352dba9 fancy listbox
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@369 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-10-16 16:47:41 +00:00

70 lines
1.7 KiB
C++

/* $Id$ */
#include <MwOO/Widget/ScrollBar.h>
#include <Mw/Widget/ScrollBar.h>
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);
}