Benoît Minisini ba19f3c1dd * Copy https://gambas.svn.sourceforge.net/svnroot/gambas/2.0 to https://gambas.svn.sourceforge.net/svnroot/gambas/gambas
git-svn-id: svn://localhost/gambas/trunk@893 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-30 16:41:49 +00:00

40 lines
681 B
C++

#ifndef __GSPINBOX_H
#define __GSPINBOX_H
class gSpinBox : public gControl
{
public:
gSpinBox(gContainer *parent);
//"Properties"
long background();
long foreground();
long maxValue() { return _max; }
long minValue() { return _min; }
long step();
long value();
bool wrap();
void setBackground(long vl);
void setForeground(long vl);
void setMaxValue (long vl);
void setMinValue (long vl);
void setStep (long vl);
void setValue (long vl);
void setWrap (bool vl);
//"Methods"
void selectAll();
//"Signals"
void (*onChange) (gSpinBox *sender);
//"Private"
private:
int _min;
int _max;
virtual void updateCursor(GdkCursor *cursor);
};
#endif