132 return sizeof(*this) +
event->Size();
215 void Move(
float x,
float y);
217 void Adjust(
float xd,
float yd);
219 void Size(
float x,
float y,
float w,
float h);
252 virtual void Redraw(
float x,
float y);
263 virtual void Sized();
264 virtual void Moved();
265 virtual void Draw(
int time,
float x,
float y);
302 void SetRegs(
const char *key,
const char *val);
idList< float > expressionRegisters
idList< idTimeLineEvent * > timeLineEvents
void GetScriptString(const char *name, idStr &out)
int ExpressionConstant(float f)
bool ParseScript(idParser *src, idGuiScriptList &list, int *timeParm=NULL, bool allowIf=false)
bool UpdateFromDictionary(idDict &dict)
bool Contains(float x, float y)
void ScreenToClient(idRectangle *rect)
void AddDefinedVar(idWinVar *var)
int GetWinVarOffset(idWinVar *wv, drawWin_t *dw)
virtual void StateChanged(bool redraw)
int EmitOp(int a, int b, wexpOpType_t opType, wexpOp_t **opp=NULL)
void RestoreExpressionParseState()
virtual void ArchiveToDictionary(idDict *dict, bool useNames=true)
virtual bool ParseInternalVar(const char *name, idParser *src)
idList< idWindow * > children
virtual void SetBuddy(idWindow *buddy)
drawWin_t * FindChildByName(const char *name)
idWindow(idUserInterfaceLocal *gui)
void BringToTop(idWindow *w)
void DisableRegister(const char *_name)
void AddCommand(const char *cmd)
idList< drawWin_t > drawWindows
idList< float > * saveRegs
const char DEFAULT_BORDERCOLOR[]
void ClientToScreen(idRectangle *rect)
void ParseString(idParser *src, idStr &out)
virtual void WriteToSaveGame(idFile *savefile)
idRegisterList * RegList()
void ParseVec4(idParser *src, idVec4 &out)
virtual void GainCapture()
const char SCROLLER_SIZE[]
const char DEFAULT_TEXTSCALE[]
const idMaterial * background
idGuiScriptList * scripts[SCRIPT_COUNT]
void DebugDraw(int time, float x, float y)
void SetDC(idDeviceContext *d)
virtual void HandleBuddyUpdate(idWindow *buddy)
virtual void MouseEnter()
virtual void LoseCapture()
int ParseExpressionPriority(idParser *src, int priority, idWinVar *var=NULL, int component=0)
virtual void WriteToDemoFile(class idDemoFile *f)
void CalcRects(float x, float y)
void SetParent(idWindow *w)
virtual void Draw(int time, float x, float y)
idWindow * FindChildByPoint(float x, float y, idWindow *below=NULL)
idList< idWinVar * > updateVars
void AddUpdateVar(idWinVar *var)
idStr * GetStrPtrByName(const char *_name)
virtual void HasScripts()
virtual void Activate(bool activate, idStr &act)
rvNamedEvent(const char *name)
virtual void DrawBackground(const idRectangle &drawRect)
bool RunTimeEvents(int time)
GLubyte GLubyte GLubyte GLubyte w
virtual void InitFromDictionary(idDict *dict, bool byName=true)
void Adjust(float xd, float yd)
idDeviceContext * GetDC(void)
idSimpleWindow * FindSimpleWinByName(const char *_name)
void SetComment(const char *p)
float EvalRegs(int test=-1, bool force=false)
idWindow * SetCapture(idWindow *w)
virtual bool Parse(idParser *src, bool rebuild=true)
static const char * ScriptNames[SCRIPT_COUNT]
idList< wexpOp_t > * saveOps
virtual const char * RouteMouseCoords(float xd, float yd)
void DrawBorderAndCaption(const idRectangle &drawRect)
virtual size_t Allocated()
idWindow * GetCaptureChild()
static const idRegEntry RegisterVars[]
void SetupTransforms(float x, float y)
void Move(float x, float y)
GLubyte GLubyte GLubyte a
void SaveExpressionParseState()
idList< idTransitionData > transitions
const int MAX_WINDOW_NAME
void ReadSaveGameString(idStr &string, idFile *savefile)
void WriteSaveGameString(const char *string, idFile *savefile)
const int WIN_INTRANSITION
void SetAdjustMode(idWindow *child)
void RemoveChild(idWindow *win)
virtual void RunNamedEvent(const char *eventName)
void SetInitialState(const char *_name)
const char * GetComment()
void ParseBracedExpression(idParser *src)
idWindow * SetFocus(idWindow *w, bool scripts=true)
bool ParseRegEntry(const char *name, idParser *src)
bool RunScriptList(idGuiScriptList *src)
int ParseExpression(idParser *src, idWinVar *var=NULL, int component=0)
void ClearFlag(unsigned int f)
int ExpressionTemporary()
void SetChildWinVarVal(const char *name, const char *var, const char *val)
void SetRegs(const char *key, const char *val)
int AddUnique(const type &obj)
idUserInterfaceLocal * gui
const char CAPTION_HEIGHT[]
void DrawCaption(int time, float x, float y)
idUserInterfaceLocal * GetGui()
static bool registerIsTemporary[MAX_EXPRESSION_REGISTERS]
const char DEFAULT_BACKCOLOR[]
idWindow * GetChild(int index)
void ConvertRegEntry(const char *name, idParser *src, idStr &out, int tabs)
virtual void Redraw(float x, float y)
void ReadSaveGameTransition(idTransitionData &trans, idFile *savefile)
bool InsertChild(idWindow *win, idWindow *before)
idList< rvNamedEvent * > namedEvents
bool ParseScriptEntry(const char *name, idParser *src)
idInterpolateAccelDecelLinear< idVec4 > interp
virtual void ReadFromDemoFile(class idDemoFile *f, bool rebuild=true)
wexpOp_t * ExpressionOp()
void EvaluateRegisters(float *registers)
void AddChild(idWindow *win)
static const int NumRegisterVars
virtual const char * HandleEvent(const sysEvent_t *event, bool *updateVisuals)
const int WIN_HOLDCAPTURE
void SetFlag(unsigned int f)
idList< idWinVar * > definedVars
idWinBackground backGroundName
int GetChildIndex(idWindow *window)
virtual idWinVar * GetWinVarByName(const char *_name, bool winLookup=false, drawWin_t **owner=NULL)
const char DEFAULT_FORECOLOR[]
virtual void ReadFromSaveGame(idFile *savefile)
idWindow * GetFocusedChild()
void CalcClientRect(float xofs, float yofs)
void AddTransition(idWinVar *dest, idVec4 from, idVec4 to, int time, float accelTime, float decelTime)
int ParseTerm(idParser *src, idWinVar *var=NULL, int component=0)
int ParseEmitOp(idParser *src, int a, wexpOpType_t opType, int priority, wexpOp_t **opp=NULL)
void WriteSaveGameTransition(idTransitionData &trans, idFile *savefile)