quakeforge/ruamoko/qwaq/ui/scrollbar.h

42 lines
924 B
C
Raw Normal View History

2020-03-30 11:29:48 +00:00
#ifndef __qwaq_ui_scrollbar_h
#define __qwaq_ui_scrollbar_h
#include "ruamoko/qwaq/ui/view.h"
2020-03-30 11:29:48 +00:00
@class Button;
@class DrawBuffer;
2020-03-30 11:29:48 +00:00
@class Group;
@class ListenerGroup;
@interface ScrollBar : View
{
int vertical;
int bgchar;
double mouseTime;
2020-03-30 11:29:48 +00:00
Point mouseStart;
Point tabStart;
DrawBuffer *buffer;
2020-03-30 11:29:48 +00:00
Button *backButton;
Button *forwardButton;
Button *thumbTab;
Group *objects;
ListenerGroup *onScrollBarModified;
2020-03-30 11:29:48 +00:00
unsigned pageStep;
unsigned singleStep;
unsigned range;
unsigned index;
}
+(ScrollBar *)horizontal:(unsigned)len at:(Point)pos;
+(ScrollBar *)vertical:(unsigned)len at:(Point)pos;
-(ListenerGroup *)onScrollBarModified;
2020-03-30 11:29:48 +00:00
-setRange:(unsigned)range;
-setPageStep:(unsigned)pageStep;
-setSingleStep:(unsigned)singleStep;
-setIndex:(unsigned)index;
-(unsigned)index;
-page:(unsigned)step dir:(unsigned) dir;
2020-03-30 11:29:48 +00:00
@end
#endif//__qwaq_ui_scrollbar_h