mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
28 lines
807 B
Objective-C
28 lines
807 B
Objective-C
#ifndef __options_util_h
|
|
#define __options_util_h
|
|
|
|
#include "gui/Group.h"
|
|
|
|
@class Text;
|
|
@class Slider;
|
|
|
|
@interface CvarRange : Group
|
|
{
|
|
Text title;
|
|
Text value;
|
|
Slider slider;
|
|
string name;
|
|
float min, max, step;
|
|
}
|
|
-(id)initWithBounds:(Rect)aRect title:(string)_title cvar:(string)cvname min:(float)_min max:(float)_max step:(float)_step;
|
|
-(void)inc;
|
|
-(void)dec;
|
|
@end
|
|
|
|
@extern void (integer x, integer y) opt_cursor;
|
|
@extern void (integer x, integer y, integer spacing, string spacechar, string label, string valstr) draw_item;
|
|
@extern void (integer x, integer y, integer spacing, string label, string valstr) draw_val_item;
|
|
@extern integer (float min, float max, float val) to_percentage;
|
|
@extern float (float min, float max, float step, float val, integer cntflag) min_max_cnt;
|
|
|
|
#endif//__options_util_h
|