mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 21:20:33 +00:00
1a34f3663a
It's mostly working now, just some issues with clicking on the bar and the thumb tab doesn't work.
38 lines
801 B
Objective-C
38 lines
801 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;
|
|
Point mouseStart;
|
|
DrawBuffer *buffer;
|
|
Button *backButton;
|
|
Button *forwardButton;
|
|
Button *thumbTab;
|
|
Group *objects;
|
|
ListenerGroup *onScroll;
|
|
|
|
unsigned pageStep;
|
|
unsigned singleStep;
|
|
unsigned range;
|
|
unsigned index;
|
|
}
|
|
+(ScrollBar *)horizontal:(unsigned)len at:(Point)pos;
|
|
+(ScrollBar *)vertical:(unsigned)len at:(Point)pos;
|
|
-(ListenerGroup *)onScroll;
|
|
-setRange:(unsigned)range;
|
|
-setPageStep:(unsigned)pageStep;
|
|
-setSingleStep:(unsigned)singleStep;
|
|
-setIndex:(unsigned)index;
|
|
-(unsigned)index;
|
|
@end
|
|
|
|
#endif//__qwaq_ui_scrollbar_h
|