29 #ifndef __USERINTERFACE_H__
30 #define __USERINTERFACE_H__
50 virtual const char *
Name()
const = 0;
53 virtual const char *
Comment()
const = 0;
62 virtual bool InitFromFile(
const char *qpath,
bool rebuild =
true,
bool cache =
true ) = 0;
72 virtual void Redraw(
int time ) = 0;
90 virtual const char*
GetStateString(
const char *varName,
const char* defaultString =
"" )
const = 0;
91 virtual bool GetStateBool(
const char *varName,
const char* defaultString =
"0" )
const = 0;
92 virtual int GetStateInt(
const char *varName,
const char* defaultString =
"0" )
const = 0;
93 virtual float GetStateFloat(
const char *varName,
const char* defaultString =
"0" )
const = 0;
96 virtual void StateChanged(
int time,
bool redraw =
false ) = 0;
99 virtual const char *
Activate(
bool activate,
int time ) = 0;
102 virtual void Trigger(
int time ) = 0;
121 virtual void Init() = 0;
123 virtual void Touch(
const char *
name ) = 0;
133 virtual void Reload(
bool all ) = 0;
139 virtual bool CheckGui(
const char *qpath )
const = 0;
148 virtual idUserInterface *
FindGui(
const char *qpath,
bool autoLoad =
false,
bool needUnique =
false,
bool forceUnique =
false ) = 0;
virtual void DeAlloc(idUserInterface *gui)=0
GLsizei const GLfloat * value
virtual void StateChanged(int time, bool redraw=false)=0
virtual void WritePrecacheCommands(idFile *f)=0
virtual void SetStateString(const char *varName, const char *value)=0
virtual void SetUniqued(bool b)=0
virtual idUserInterface * FindDemoGui(const char *qpath)=0
virtual idUserInterface * Alloc(void) const =0
virtual void HandleNamedEvent(const char *eventName)=0
virtual void SetKeyBindingNames(void)=0
virtual void SetStateInt(const char *varName, const int value)=0
virtual void SetSize(float width, float height)=0
virtual const char * Comment() const =0
virtual const char * HandleEvent(const sysEvent_t *event, int time, bool *updateVisuals=NULL)=0
virtual bool IsInteractive() const =0
virtual void SetStateBool(const char *varName, const bool value)=0
virtual float CursorX()=0
virtual idUserInterface * FindGui(const char *qpath, bool autoLoad=false, bool needUnique=false, bool forceUnique=false)=0
virtual int GetStateInt(const char *varName, const char *defaultString="0") const =0
virtual void SetStateFloat(const char *varName, const float value)=0
virtual void DeleteStateVar(const char *varName)=0
virtual float CursorY()=0
virtual const char * GetStateString(const char *varName, const char *defaultString="") const =0
virtual bool ReadFromSaveGame(idFile *savefile)=0
virtual void Shutdown()=0
virtual void SetCursor(float x, float y)=0
virtual idListGUI * AllocListGUI(void) const =0
virtual bool InitFromFile(const char *qpath, bool rebuild=true, bool cache=true)=0
virtual void Redraw(int time)=0
virtual const char * Name() const =0
virtual void ListGuis() const =0
virtual void FreeListGUI(idListGUI *listgui)=0
virtual const char * Activate(bool activate, int time)=0
virtual bool CheckGui(const char *qpath) const =0
virtual const idDict & State() const =0
virtual void BeginLevelLoad()=0
GLenum GLsizei GLsizei height
virtual bool GetStateBool(const char *varName, const char *defaultString="0") const =0
idUserInterfaceManager * uiManager
virtual float GetStateFloat(const char *varName, const char *defaultString="0") const =0
virtual void Reload(bool all)=0
virtual ~idUserInterface()
virtual void Touch(const char *name)=0
virtual bool IsUniqued() const =0
virtual bool WriteToSaveGame(idFile *savefile) const =0
virtual void WriteToDemoFile(class idDemoFile *f)=0
virtual void ReadFromDemoFile(class idDemoFile *f)=0
virtual ~idUserInterfaceManager(void)
virtual void DrawCursor()=0
virtual void Trigger(int time)=0
virtual void EndLevelLoad()=0