mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 16:37:30 +00:00
e15f2097df
Putting it in Editor worked as a proof of concept, but it seems those always turn out to need tweaking like this because the concept proves itself to be generally worthwhile :P
40 lines
870 B
Objective-C
40 lines
870 B
Objective-C
#ifndef __qwaq_ui_scrollbar_h
|
|
#define __qwaq_ui_scrollbar_h
|
|
|
|
#include "ui/view.h"
|
|
|
|
@class Button;
|
|
@class DrawBuffer;
|
|
@class Group;
|
|
@class ListenerGroup;
|
|
|
|
@interface ScrollBar : View
|
|
{
|
|
int vertical;
|
|
int bgchar;
|
|
double mouseTime;
|
|
Point mouseStart;
|
|
Point tabStart;
|
|
DrawBuffer *buffer;
|
|
Button *backButton;
|
|
Button *forwardButton;
|
|
Button *thumbTab;
|
|
Group *objects;
|
|
ListenerGroup *onScrollBarModified;
|
|
|
|
unsigned pageStep;
|
|
unsigned singleStep;
|
|
unsigned range;
|
|
unsigned index;
|
|
}
|
|
+(ScrollBar *)horizontal:(unsigned)len at:(Point)pos;
|
|
+(ScrollBar *)vertical:(unsigned)len at:(Point)pos;
|
|
-(ListenerGroup *)onScrollBarModified;
|
|
-setRange:(unsigned)range;
|
|
-setPageStep:(unsigned)pageStep;
|
|
-setSingleStep:(unsigned)singleStep;
|
|
-setIndex:(unsigned)index;
|
|
-(unsigned)index;
|
|
@end
|
|
|
|
#endif//__qwaq_ui_scrollbar_h
|