29 #include "../idlib/precompiled.h"
132 int key =
event->evValue;
223 if ( range <= 0.0
f ) {
227 float thumbPos = (
range) ? (
value - low) / range : 0.0;
230 thumbPos = 1.f - thumbPos;
402 if ( !
idStr::Cmpn( eventName,
"cvar read ", 10 ) ) {
404 group =
event.
Mid( 10, event.
Length() - 10 );
408 }
else if ( !
idStr::Cmpn( eventName,
"cvar write ", 11 ) ) {
410 group =
event.
Mid( 11, event.
Length() - 11 );
float GetFloat(const char *key, const char *defaultString="0") const
GLsizei const GLfloat * value
int Cmp(const char *text) const
idCVarSystem * cvarSystem
bool Contains(float x, float y)
float GetFloat(void) const
const idMaterial * thumbMat
void InitWithDefaults(const char *_name, const idRectangle &rect, const idVec4 &foreColor, const idVec4 &matColor, const char *_background, const char *thumbShader, bool _vertical, bool _scrollbar)
virtual bool ParseInternalVar(const char *name, idParser *src)
void ParseString(idParser *src, idStr &out)
void UpdateCvar(bool read, bool force=false)
void RunNamedEvent(const char *eventName)
int GetImageHeight(void) const
virtual const idMaterial * FindMaterial(const char *name, bool makeDefault=true)=0
virtual ~idSliderWindow()
const idMaterial * background
int Cmpn(const char *text, int n) const
int Icmp(const char *text) const
virtual void HandleBuddyUpdate(idWindow *buddy)
void SetValue(float _value)
virtual idCVar * Find(const char *name)=0
virtual void Activate(bool activate, idStr &act)
virtual void Activate(bool activate, idStr &act)
virtual void DrawBackground(const idRectangle &drawRect)
virtual const char * HandleEvent(const sysEvent_t *event, bool *updateVisuals)
virtual const char * RouteMouseCoords(float xd, float yd)
virtual void SetBuddy(idWindow *buddy)
virtual void Draw(int time, float x, float y)
const char * GetSourceFile(void) const
idWindow * SetCapture(idWindow *w)
virtual void SetStateFloat(const char *varName, const float value)
virtual const idDict & State() const
idSliderWindow(idUserInterfaceLocal *gui)
idDeclManager * declManager
void SetInitialState(const char *_name)
virtual idWinVar * GetWinVarByName(const char *_name, bool winLookup=false, drawWin_t **owner=NULL)
GLdouble GLdouble GLdouble r
const char * Mid(int start, int len, idStr &result) const
virtual void DrawBackground(const idRectangle &drawRect)
idUserInterfaceLocal * gui
int GetImageWidth(void) const
virtual const char * c_str() const
void SetSort(float s) const
virtual bool ParseInternalVar(const char *name, idParser *src)
void SetRange(float _low, float _high, float _step)
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID
const int WIN_HOLDCAPTURE
void DrawMaterial(float x, float y, float w, float h, const idMaterial *mat, const idVec4 &color, float scalex=1.0, float scaley=1.0)
void SetFloat(const float value)
virtual void virtual void Warning(const char *fmt,...) id_attribute((format(printf
virtual idWinVar * GetWinVarByName(const char *_name, bool winLookup=false, drawWin_t **owner=NULL)
void DrawRect(float x, float y, float width, float height, float size, const idVec4 &color)