29 #include "../../idlib/precompiled.h"
32 #include "../../sys/win32/rc/guied_resource.h"
33 #include "../../renderer/tr_local.h"
34 #include "../../ui/EditWindow.h"
35 #include "../../ui/ListWindow.h"
36 #include "../../ui/BindWindow.h"
37 #include "../../ui/RenderWindow.h"
38 #include "../../ui/ChoiceWindow.h"
56 if ( dynamic_cast< idEditWindow*>(window) ) {
58 }
else if ( dynamic_cast< idListWindow*>(window) ) {
60 }
else if ( dynamic_cast< idBindWindow*>(window) ) {
62 }
else if ( dynamic_cast< idRenderWindow*>(window) ) {
64 }
else if ( dynamic_cast< idChoiceWindow*>(window) ) {
190 s =
va(
"%d,%d,%d,%d", (
int) (rect.
x + 0.5f), (
int) (rect.
y + 0.5f), (
int) ((rect.
w + 0.5f) * (
mFlippedHorz ? -1 : 1)), (
int) ((rect.
h + 0.5f) * (
mFlippedVert ? -1 : 1)));
291 tempVisible = atoi(realVisible) ?
true :
false;
300 mState.
Set(
"visible", tempVisible ?
"1" :
"0");
329 for ( i = count - 1; i >= 0; i -- ) {
392 static const char *typeNames[] = {
393 "Unknown",
"windowDef",
"editDef",
"htmlDef",
"choiceDef",
"sliderDef",
"bindDef",
"listDef",
"renderDef"
396 return typeNames[(
int) type];
584 if ( failed || before.
Cmp(after) ) {
bool(* PFNENUMCHILDRENPROC)(rvGEWindowWrapper *wrapper, void *data)
void UpdateWindowState(void)
GLsizei const GLfloat * value
assert(prefInfo.fullscreenBtn)
int Cmp(const char *text) const
void Delete(const char *key)
bool UpdateFromDictionary(idDict &dict)
void AddDefinedVar(idWinVar *var)
idWindow * WindowFromPoint(float x, float y, bool visibleOnly=true)
virtual bool ParseInternalVar(const char *name, idParser *src)
void StripTrailingWhitespace(void)
GLint GLint GLsizei GLsizei GLsizei depth
GLuint GLuint GLsizei GLenum type
static const char * WindowTypeToString(EWindowType type)
static EWindowType StringToWindowType(const char *string)
void Set(const char *key, const char *value)
void SetDeleted(bool del)
void Copy(const idDict &other)
int Icmp(const char *text) const
bool CanHaveChildren(void)
idWindow * GetChild(int index)
bool IsExpression(const char *s)
GLuint GLuint GLsizei count
void GetStringFromMarker(idStr &out, bool clean=false)
const char * GetString(const char *key, const char *defaultString="") const
GLsizei GLsizei GLenum GLenum const GLvoid * data
idRectangle & GetScreenRect(void)
bool VerfiyStateKey(const char *name, const char *value, idStr *result=NULL)
void SetName(const char *_name)
void CalcScreenRect(void)
rvGEWindowWrapper(idWindow *window, EWindowType type)
bool ParseRegEntry(const char *name, idParser *src)
static rvGEWindowWrapper * GetWrapper(idWindow *window)
bool Contains(float xt, float yt)
void DeleteStateKey(const char *key)
void SetStateKey(const char *key, const char *value, bool update=true)
char * va(const char *fmt,...)
virtual idWinVar * GetWinVarByName(const char *_name, bool winLookup=false, drawWin_t **owner=NULL)
bool EnumChildren(PFNENUMCHILDRENPROC proc, void *data)
void SetState(const idDict &dict)
void SetRect(idRectangle &rect)