doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
idWindow Class Reference

#include <Window.h>

Inheritance diagram for idWindow:
idBindWindow idChoiceWindow idEditWindow idFieldWindow idGameBearShootWindow idGameBustOutWindow idGameSSDWindow idGameWindowProxy idListWindow idMarkerWindow idRenderWindow idSliderWindow

Public Types

enum  {
  ON_MOUSEENTER = 0, ON_MOUSEEXIT, ON_ACTION, ON_ACTIVATE,
  ON_DEACTIVATE, ON_ESC, ON_FRAME, ON_TRIGGER,
  ON_ACTIONRELEASE, ON_ENTER, ON_ENTERRELEASE, SCRIPT_COUNT
}
 
enum  {
  ADJUST_MOVE = 0, ADJUST_TOP, ADJUST_RIGHT, ADJUST_BOTTOM,
  ADJUST_LEFT, ADJUST_TOPLEFT, ADJUST_BOTTOMRIGHT, ADJUST_TOPRIGHT,
  ADJUST_BOTTOMLEFT
}
 

Public Member Functions

 idWindow (idUserInterfaceLocal *gui)
 
 idWindow (idDeviceContext *d, idUserInterfaceLocal *gui)
 
virtual ~idWindow ()
 
void SetDC (idDeviceContext *d)
 
idDeviceContextGetDC (void)
 
idWindowSetFocus (idWindow *w, bool scripts=true)
 
idWindowSetCapture (idWindow *w)
 
void SetParent (idWindow *w)
 
void SetFlag (unsigned int f)
 
void ClearFlag (unsigned int f)
 
unsigned GetFlags ()
 
void Move (float x, float y)
 
void BringToTop (idWindow *w)
 
void Adjust (float xd, float yd)
 
void SetAdjustMode (idWindow *child)
 
void Size (float x, float y, float w, float h)
 
void SetupFromState ()
 
void SetupBackground ()
 
drawWin_tFindChildByName (const char *name)
 
idSimpleWindowFindSimpleWinByName (const char *_name)
 
idWindowGetParent ()
 
idUserInterfaceLocalGetGui ()
 
bool Contains (float x, float y)
 
size_t Size ()
 
virtual size_t Allocated ()
 
idStrGetStrPtrByName (const char *_name)
 
virtual idWinVarGetWinVarByName (const char *_name, bool winLookup=false, drawWin_t **owner=NULL)
 
int GetWinVarOffset (idWinVar *wv, drawWin_t *dw)
 
float GetMaxCharHeight ()
 
float GetMaxCharWidth ()
 
void SetFont ()
 
void SetInitialState (const char *_name)
 
void AddChild (idWindow *win)
 
void DebugDraw (int time, float x, float y)
 
void CalcClientRect (float xofs, float yofs)
 
void CommonInit ()
 
void CleanUp ()
 
void DrawBorderAndCaption (const idRectangle &drawRect)
 
void DrawCaption (int time, float x, float y)
 
void SetupTransforms (float x, float y)
 
bool Contains (const idRectangle &sr, float x, float y)
 
const char * GetName ()
 
virtual bool Parse (idParser *src, bool rebuild=true)
 
virtual const char * HandleEvent (const sysEvent_t *event, bool *updateVisuals)
 
void CalcRects (float x, float y)
 
virtual void Redraw (float x, float y)
 
virtual void ArchiveToDictionary (idDict *dict, bool useNames=true)
 
virtual void InitFromDictionary (idDict *dict, bool byName=true)
 
virtual void PostParse ()
 
virtual void Activate (bool activate, idStr &act)
 
virtual void Trigger ()
 
virtual void GainFocus ()
 
virtual void LoseFocus ()
 
virtual void GainCapture ()
 
virtual void LoseCapture ()
 
virtual void Sized ()
 
virtual void Moved ()
 
virtual void Draw (int time, float x, float y)
 
virtual void MouseExit ()
 
virtual void MouseEnter ()
 
virtual void DrawBackground (const idRectangle &drawRect)
 
virtual const char * RouteMouseCoords (float xd, float yd)
 
virtual void SetBuddy (idWindow *buddy)
 
virtual void HandleBuddyUpdate (idWindow *buddy)
 
virtual void StateChanged (bool redraw)
 
virtual void ReadFromDemoFile (class idDemoFile *f, bool rebuild=true)
 
virtual void WriteToDemoFile (class idDemoFile *f)
 
void WriteSaveGameString (const char *string, idFile *savefile)
 
void WriteSaveGameTransition (idTransitionData &trans, idFile *savefile)
 
virtual void WriteToSaveGame (idFile *savefile)
 
void ReadSaveGameString (idStr &string, idFile *savefile)
 
void ReadSaveGameTransition (idTransitionData &trans, idFile *savefile)
 
virtual void ReadFromSaveGame (idFile *savefile)
 
void FixupTransitions ()
 
virtual void HasAction ()
 
virtual void HasScripts ()
 
void FixupParms ()
 
void GetScriptString (const char *name, idStr &out)
 
void SetScriptParams ()
 
bool HasOps ()
 
float EvalRegs (int test=-1, bool force=false)
 
void StartTransition ()
 
void AddTransition (idWinVar *dest, idVec4 from, idVec4 to, int time, float accelTime, float decelTime)
 
void ResetTime (int time)
 
void ResetCinematics ()
 
int NumTransitions ()
 
bool ParseScript (idParser *src, idGuiScriptList &list, int *timeParm=NULL, bool allowIf=false)
 
bool RunScript (int n)
 
bool RunScriptList (idGuiScriptList *src)
 
void SetRegs (const char *key, const char *val)
 
int ParseExpression (idParser *src, idWinVar *var=NULL, int component=0)
 
int ExpressionConstant (float f)
 
idRegisterListRegList ()
 
void AddCommand (const char *cmd)
 
void AddUpdateVar (idWinVar *var)
 
bool Interactive ()
 
bool ContainsStateVars ()
 
void SetChildWinVarVal (const char *name, const char *var, const char *val)
 
idWindowGetFocusedChild ()
 
idWindowGetCaptureChild ()
 
const char * GetComment ()
 
void SetComment (const char *p)
 
virtual void RunNamedEvent (const char *eventName)
 
void AddDefinedVar (idWinVar *var)
 
idWindowFindChildByPoint (float x, float y, idWindow *below=NULL)
 
int GetChildIndex (idWindow *window)
 
int GetChildCount (void)
 
idWindowGetChild (int index)
 
void RemoveChild (idWindow *win)
 
bool InsertChild (idWindow *win, idWindow *before)
 
void ScreenToClient (idRectangle *rect)
 
void ClientToScreen (idRectangle *rect)
 
bool UpdateFromDictionary (idDict &dict)
 

Public Attributes

idStr cmd
 

Static Public Attributes

static const char * ScriptNames [SCRIPT_COUNT]
 
static const idRegEntry RegisterVars []
 
static const int NumRegisterVars = sizeof(RegisterVars) / sizeof(idRegEntry)
 

Protected Member Functions

idWindowFindChildByPoint (float x, float y, idWindow **below)
 
void SetDefaults (void)
 
bool IsSimple ()
 
void UpdateWinVars ()
 
void DisableRegister (const char *_name)
 
void Transition ()
 
void Time ()
 
bool RunTimeEvents (int time)
 
void Dump ()
 
int ExpressionTemporary ()
 
wexpOp_tExpressionOp ()
 
int EmitOp (int a, int b, wexpOpType_t opType, wexpOp_t **opp=NULL)
 
int ParseEmitOp (idParser *src, int a, wexpOpType_t opType, int priority, wexpOp_t **opp=NULL)
 
int ParseTerm (idParser *src, idWinVar *var=NULL, int component=0)
 
int ParseExpressionPriority (idParser *src, int priority, idWinVar *var=NULL, int component=0)
 
void EvaluateRegisters (float *registers)
 
void SaveExpressionParseState ()
 
void RestoreExpressionParseState ()
 
void ParseBracedExpression (idParser *src)
 
bool ParseScriptEntry (const char *name, idParser *src)
 
bool ParseRegEntry (const char *name, idParser *src)
 
virtual bool ParseInternalVar (const char *name, idParser *src)
 
void ParseString (idParser *src, idStr &out)
 
void ParseVec4 (idParser *src, idVec4 &out)
 
void ConvertRegEntry (const char *name, idParser *src, idStr &out, int tabs)
 

Protected Attributes

float actualX
 
float actualY
 
int childID
 
unsigned int flags
 
int lastTimeRun
 
idRectangle drawRect
 
idRectangle clientRect
 
idVec2 origin
 
int timeLine
 
float xOffset
 
float yOffset
 
float forceAspectWidth
 
float forceAspectHeight
 
float matScalex
 
float matScaley
 
float borderSize
 
float textAlignx
 
float textAligny
 
idStr name
 
idStr comment
 
idVec2 shear
 
signed char textShadow
 
unsigned char fontNum
 
unsigned char cursor
 
signed char textAlign
 
idWinBool noTime
 
idWinBool visible
 
idWinBool noEvents
 
idWinRectangle rect
 
idWinVec4 backColor
 
idWinVec4 matColor
 
idWinVec4 foreColor
 
idWinVec4 hoverColor
 
idWinVec4 borderColor
 
idWinFloat textScale
 
idWinFloat rotate
 
idWinStr text
 
idWinBackground backGroundName
 
idList< idWinVar * > definedVars
 
idList< idWinVar * > updateVars
 
idRectangle textRect
 
const idMaterialbackground
 
idWindowparent
 
idList< idWindow * > children
 
idList< drawWin_tdrawWindows
 
idWindowfocusedChild
 
idWindowcaptureChild
 
idWindowoverChild
 
bool hover
 
idDeviceContextdc
 
idUserInterfaceLocalgui
 
idGuiScriptListscripts [SCRIPT_COUNT]
 
boolsaveTemps
 
idList< idTimeLineEvent * > timeLineEvents
 
idList< idTransitionDatatransitions
 
idList< wexpOp_tops
 
idList< floatexpressionRegisters
 
idList< wexpOp_t > * saveOps
 
idList< rvNamedEvent * > namedEvents
 
idList< float > * saveRegs
 
idRegisterList regList
 
idWinBool hideCursor
 

Static Protected Attributes

static idCVar gui_debug
 
static idCVar gui_edit
 
static bool registerIsTemporary [MAX_EXPRESSION_REGISTERS]
 

Friends

class rvGEWindowWrapper
 
class idSimpleWindow
 
class idUserInterfaceLocal
 

Detailed Description

Definition at line 166 of file Window.h.

Member Enumeration Documentation

anonymous enum
Enumerator
ON_MOUSEENTER 
ON_MOUSEEXIT 
ON_ACTION 
ON_ACTIVATE 
ON_DEACTIVATE 
ON_ESC 
ON_FRAME 
ON_TRIGGER 
ON_ACTIONRELEASE 
ON_ENTER 
ON_ENTERRELEASE 
SCRIPT_COUNT 

Definition at line 172 of file Window.h.

anonymous enum
Enumerator
ADJUST_MOVE 
ADJUST_TOP 
ADJUST_RIGHT 
ADJUST_BOTTOM 
ADJUST_LEFT 
ADJUST_TOPLEFT 
ADJUST_BOTTOMRIGHT 
ADJUST_TOPRIGHT 
ADJUST_BOTTOMLEFT 

Definition at line 187 of file Window.h.

Constructor & Destructor Documentation

idWindow::idWindow ( idUserInterfaceLocal gui)

Definition at line 220 of file Window.cpp.

idWindow::idWindow ( idDeviceContext d,
idUserInterfaceLocal gui 
)

Definition at line 231 of file Window.cpp.

idWindow::~idWindow ( )
virtual

Definition at line 269 of file Window.cpp.

Member Function Documentation

void idWindow::Activate ( bool  activate,
idStr act 
)
virtual

Reimplemented in idListWindow, idSliderWindow, idEditWindow, idMarkerWindow, idBindWindow, and idChoiceWindow.

Definition at line 481 of file Window.cpp.

void idWindow::AddChild ( idWindow win)

Definition at line 3829 of file Window.cpp.

void idWindow::AddCommand ( const char *  cmd)

Definition at line 693 of file Window.cpp.

ID_INLINE void idWindow::AddDefinedVar ( idWinVar var)

Definition at line 451 of file Window.h.

void idWindow::AddTransition ( idWinVar dest,
idVec4  from,
idVec4  to,
int  time,
float  accelTime,
float  decelTime 
)

Definition at line 2613 of file Window.cpp.

void idWindow::AddUpdateVar ( idWinVar var)

Definition at line 575 of file Window.cpp.

void idWindow::Adjust ( float  xd,
float  yd 
)
size_t idWindow::Allocated ( void  )
virtual
void idWindow::ArchiveToDictionary ( idDict dict,
bool  useNames = true 
)
virtual

Definition at line 1317 of file Window.cpp.

void idWindow::BringToTop ( idWindow w)

Definition at line 353 of file Window.cpp.

void idWindow::CalcClientRect ( float  xofs,
float  yofs 
)

Definition at line 1343 of file Window.cpp.

void idWindow::CalcRects ( float  x,
float  y 
)

Definition at line 1173 of file Window.cpp.

void idWindow::CleanUp ( void  )

Definition at line 242 of file Window.cpp.

void idWindow::ClearFlag ( unsigned int  f)

Definition at line 1493 of file Window.cpp.

void idWindow::ClientToScreen ( idRectangle rect)

Definition at line 4137 of file Window.cpp.

void idWindow::CommonInit ( )

Definition at line 112 of file Window.cpp.

bool idWindow::Contains ( float  x,
float  y 
)

Definition at line 681 of file Window.cpp.

bool idWindow::Contains ( const idRectangle sr,
float  x,
float  y 
)

Definition at line 669 of file Window.cpp.

bool idWindow::ContainsStateVars ( )

Definition at line 3921 of file Window.cpp.

void idWindow::ConvertRegEntry ( const char *  name,
idParser src,
idStr out,
int  tabs 
)
protected
void idWindow::DebugDraw ( int  time,
float  x,
float  y 
)

Definition at line 959 of file Window.cpp.

void idWindow::DisableRegister ( const char *  _name)
protected

Definition at line 1697 of file Window.cpp.

void idWindow::Draw ( int  time,
float  x,
float  y 
)
virtual
void idWindow::DrawBackground ( const idRectangle drawRect)
virtual

Reimplemented in idSliderWindow.

Definition at line 1107 of file Window.cpp.

void idWindow::DrawBorderAndCaption ( const idRectangle drawRect)

Definition at line 1130 of file Window.cpp.

void idWindow::DrawCaption ( int  time,
float  x,
float  y 
)
void idWindow::Dump ( )
protected
int idWindow::EmitOp ( int  a,
int  b,
wexpOpType_t  opType,
wexpOp_t **  opp = NULL 
)
protected

Definition at line 2766 of file Window.cpp.

float idWindow::EvalRegs ( int  test = -1,
bool  force = false 
)

Definition at line 1079 of file Window.cpp.

void idWindow::EvaluateRegisters ( float registers)
protected

Definition at line 3027 of file Window.cpp.

int idWindow::ExpressionConstant ( float  f)

Definition at line 2702 of file Window.cpp.

wexpOp_t * idWindow::ExpressionOp ( )
protected

Definition at line 2749 of file Window.cpp.

int idWindow::ExpressionTemporary ( )
protected

Definition at line 2733 of file Window.cpp.

drawWin_t * idWindow::FindChildByName ( const char *  name)

Definition at line 2573 of file Window.cpp.

idWindow * idWindow::FindChildByPoint ( float  x,
float  y,
idWindow below = NULL 
)

Definition at line 4012 of file Window.cpp.

idWindow * idWindow::FindChildByPoint ( float  x,
float  y,
idWindow **  below 
)
protected

Definition at line 3979 of file Window.cpp.

idSimpleWindow * idWindow::FindSimpleWinByName ( const char *  _name)

Definition at line 2555 of file Window.cpp.

void idWindow::FixupParms ( )

Definition at line 3838 of file Window.cpp.

void idWindow::FixupTransitions ( )

Definition at line 3771 of file Window.cpp.

void idWindow::GainCapture ( )
virtual

Definition at line 1467 of file Window.cpp.

void idWindow::GainFocus ( )
virtual

Reimplemented in idEditWindow.

Definition at line 1451 of file Window.cpp.

idWindow * idWindow::GetCaptureChild ( )

Definition at line 1512 of file Window.cpp.

idWindow * idWindow::GetChild ( int  index)

Definition at line 4036 of file Window.cpp.

int idWindow::GetChildCount ( void  )

Definition at line 4024 of file Window.cpp.

int idWindow::GetChildIndex ( idWindow window)

Definition at line 4048 of file Window.cpp.

const char* idWindow::GetComment ( )
inline

Definition at line 313 of file Window.h.

idDeviceContext* idWindow::GetDC ( void  )
inline

Definition at line 206 of file Window.h.

unsigned idWindow::GetFlags ( void  )
inline

Definition at line 214 of file Window.h.

idWindow * idWindow::GetFocusedChild ( )

Definition at line 1524 of file Window.cpp.

idUserInterfaceLocal* idWindow::GetGui ( )
inline

Definition at line 225 of file Window.h.

float idWindow::GetMaxCharHeight ( )

Definition at line 303 of file Window.cpp.

float idWindow::GetMaxCharWidth ( )

Definition at line 313 of file Window.cpp.

const char* idWindow::GetName ( void  )
inline

Definition at line 247 of file Window.h.

idWindow* idWindow::GetParent ( void  )
inline

Definition at line 224 of file Window.h.

void idWindow::GetScriptString ( const char *  name,
idStr out 
)
idStr * idWindow::GetStrPtrByName ( const char *  _name)

Definition at line 2604 of file Window.cpp.

idWinVar * idWindow::GetWinVarByName ( const char *  _name,
bool  winLookup = false,
drawWin_t **  owner = NULL 
)
virtual
int idWindow::GetWinVarOffset ( idWinVar wv,
drawWin_t dw 
)

Definition at line 1717 of file Window.cpp.

virtual void idWindow::HandleBuddyUpdate ( idWindow buddy)
inlinevirtual

Reimplemented in idListWindow, and idEditWindow.

Definition at line 271 of file Window.h.

const char * idWindow::HandleEvent ( const sysEvent_t event,
bool updateVisuals 
)
virtual
virtual void idWindow::HasAction ( )
inlinevirtual

Definition at line 284 of file Window.h.

bool idWindow::HasOps ( )
inline

Definition at line 290 of file Window.h.

virtual void idWindow::HasScripts ( )
inlinevirtual

Definition at line 285 of file Window.h.

void idWindow::InitFromDictionary ( idDict dict,
bool  byName = true 
)
virtual

Definition at line 1330 of file Window.cpp.

bool idWindow::InsertChild ( idWindow win,
idWindow before 
)

Definition at line 4089 of file Window.cpp.

bool idWindow::Interactive ( )

Definition at line 3939 of file Window.cpp.

bool idWindow::IsSimple ( )
protected

Definition at line 3884 of file Window.cpp.

void idWindow::LoseCapture ( )
virtual

Definition at line 1475 of file Window.cpp.

void idWindow::LoseFocus ( )
virtual

Definition at line 1459 of file Window.cpp.

void idWindow::MouseEnter ( )
virtual

Reimplemented in idMarkerWindow.

Definition at line 392 of file Window.cpp.

void idWindow::MouseExit ( )
virtual

Reimplemented in idMarkerWindow.

Definition at line 406 of file Window.cpp.

void idWindow::Move ( float  x,
float  y 
)

Definition at line 278 of file Window.cpp.

void idWindow::Moved ( )
virtual

Definition at line 1435 of file Window.cpp.

int idWindow::NumTransitions ( )

Definition at line 3757 of file Window.cpp.

bool idWindow::Parse ( idParser src,
bool  rebuild = true 
)
virtual

Definition at line 2130 of file Window.cpp.

void idWindow::ParseBracedExpression ( idParser src)
protected

Definition at line 3012 of file Window.cpp.

int idWindow::ParseEmitOp ( idParser src,
int  a,
wexpOpType_t  opType,
int  priority,
wexpOp_t **  opp = NULL 
)
protected

Definition at line 2817 of file Window.cpp.

int idWindow::ParseExpression ( idParser src,
idWinVar var = NULL,
int  component = 0 
)

Definition at line 3003 of file Window.cpp.

int idWindow::ParseExpressionPriority ( idParser src,
int  priority,
idWinVar var = NULL,
int  component = 0 
)
protected

Definition at line 2920 of file Window.cpp.

bool idWindow::ParseInternalVar ( const char *  name,
idParser src 
)
protectedvirtual
bool idWindow::ParseRegEntry ( const char *  name,
idParser src 
)
protected

Definition at line 2052 of file Window.cpp.

bool idWindow::ParseScript ( idParser src,
idGuiScriptList list,
int timeParm = NULL,
bool  allowIf = false 
)

Definition at line 1571 of file Window.cpp.

bool idWindow::ParseScriptEntry ( const char *  name,
idParser src 
)
protected

Definition at line 1681 of file Window.cpp.

void idWindow::ParseString ( idParser src,
idStr out 
)
protected

Definition at line 1883 of file Window.cpp.

int idWindow::ParseTerm ( idParser src,
idWinVar var = NULL,
int  component = 0 
)
protected

Definition at line 2830 of file Window.cpp.

void idWindow::ParseVec4 ( idParser src,
idVec4 out 
)
protected

Definition at line 1895 of file Window.cpp.

void idWindow::PostParse ( )
virtual
void idWindow::ReadFromDemoFile ( class idDemoFile f,
bool  rebuild = true 
)
virtual

Definition at line 3160 of file Window.cpp.

void idWindow::ReadFromSaveGame ( idFile savefile)
virtual

Reimplemented in idGameSSDWindow, idGameBustOutWindow, and idGameBearShootWindow.

Definition at line 3607 of file Window.cpp.

void idWindow::ReadSaveGameString ( idStr string,
idFile savefile 
)

Definition at line 3590 of file Window.cpp.

void idWindow::ReadSaveGameTransition ( idTransitionData trans,
idFile savefile 
)

Definition at line 3441 of file Window.cpp.

void idWindow::Redraw ( float  x,
float  y 
)
virtual

Definition at line 1194 of file Window.cpp.

idRegisterList* idWindow::RegList ( )
inline

Definition at line 305 of file Window.h.

void idWindow::RemoveChild ( idWindow win)

Definition at line 4066 of file Window.cpp.

void idWindow::ResetCinematics ( )

Definition at line 2635 of file Window.cpp.

void idWindow::ResetTime ( int  time)

Definition at line 2646 of file Window.cpp.

void idWindow::RestoreExpressionParseState ( )
protected

Definition at line 1671 of file Window.cpp.

const char * idWindow::RouteMouseCoords ( float  xd,
float  yd 
)
virtual

Reimplemented in idSliderWindow, and idMarkerWindow.

Definition at line 421 of file Window.cpp.

void idWindow::RunNamedEvent ( const char *  eventName)
virtual

Reimplemented in idSliderWindow, idEditWindow, and idChoiceWindow.

Definition at line 633 of file Window.cpp.

bool idWindow::RunScript ( int  n)

Definition at line 2690 of file Window.cpp.

bool idWindow::RunScriptList ( idGuiScriptList src)

Definition at line 2677 of file Window.cpp.

bool idWindow::RunTimeEvents ( int  time)
protected

Definition at line 596 of file Window.cpp.

void idWindow::SaveExpressionParseState ( )
protected

Definition at line 1661 of file Window.cpp.

void idWindow::ScreenToClient ( idRectangle rect)

Definition at line 4118 of file Window.cpp.

void idWindow::SetAdjustMode ( idWindow child)
virtual void idWindow::SetBuddy ( idWindow buddy)
inlinevirtual

Reimplemented in idSliderWindow.

Definition at line 270 of file Window.h.

idWindow * idWindow::SetCapture ( idWindow w)

Definition at line 550 of file Window.cpp.

void idWindow::SetChildWinVarVal ( const char *  name,
const char *  var,
const char *  val 
)

Definition at line 3957 of file Window.cpp.

void idWindow::SetComment ( const char *  p)
inline

Definition at line 314 of file Window.h.

void idWindow::SetDC ( idDeviceContext d)

Definition at line 1301 of file Window.cpp.

void idWindow::SetDefaults ( void  )
protected

Definition at line 4159 of file Window.cpp.

void idWindow::SetFlag ( unsigned int  f)

Definition at line 1484 of file Window.cpp.

idWindow * idWindow::SetFocus ( idWindow w,
bool  scripts = true 
)

Definition at line 1537 of file Window.cpp.

void idWindow::SetFont ( )

Definition at line 294 of file Window.cpp.

void idWindow::SetInitialState ( const char *  _name)

Definition at line 2114 of file Window.cpp.

void idWindow::SetParent ( idWindow w)

Definition at line 1503 of file Window.cpp.

void idWindow::SetRegs ( const char *  key,
const char *  val 
)
void idWindow::SetScriptParams ( )
void idWindow::SetupBackground ( )

Definition at line 1393 of file Window.cpp.

void idWindow::SetupFromState ( )

Definition at line 1409 of file Window.cpp.

void idWindow::SetupTransforms ( float  x,
float  y 
)

Definition at line 1141 of file Window.cpp.

void idWindow::Size ( float  x,
float  y,
float  w,
float  h 
)

Definition at line 377 of file Window.cpp.

size_t idWindow::Size ( void  )

Definition at line 164 of file Window.cpp.

void idWindow::Sized ( )
virtual

Definition at line 1443 of file Window.cpp.

void idWindow::StartTransition ( )

Definition at line 2626 of file Window.cpp.

void idWindow::StateChanged ( bool  redraw)
virtual

Reimplemented in idListWindow.

Definition at line 518 of file Window.cpp.

void idWindow::Time ( )
protected

Definition at line 1048 of file Window.cpp.

void idWindow::Transition ( )
protected

Definition at line 998 of file Window.cpp.

void idWindow::Trigger ( )
virtual

Definition at line 504 of file Window.cpp.

bool idWindow::UpdateFromDictionary ( idDict dict)

Definition at line 4194 of file Window.cpp.

void idWindow::UpdateWinVars ( )
protected

Definition at line 584 of file Window.cpp.

void idWindow::WriteSaveGameString ( const char *  string,
idFile savefile 
)

Definition at line 3404 of file Window.cpp.

void idWindow::WriteSaveGameTransition ( idTransitionData trans,
idFile savefile 
)

Definition at line 3416 of file Window.cpp.

void idWindow::WriteToDemoFile ( class idDemoFile f)
virtual

Definition at line 3319 of file Window.cpp.

void idWindow::WriteToSaveGame ( idFile savefile)
virtual

Reimplemented in idGameSSDWindow, idGameBustOutWindow, and idGameBearShootWindow.

Definition at line 3464 of file Window.cpp.

Friends And Related Function Documentation

friend class idSimpleWindow
friend

Definition at line 341 of file Window.h.

friend class idUserInterfaceLocal
friend

Definition at line 342 of file Window.h.

friend class rvGEWindowWrapper
friend

Definition at line 336 of file Window.h.

Member Data Documentation

float idWindow::actualX
protected

Definition at line 368 of file Window.h.

float idWindow::actualY
protected

Definition at line 369 of file Window.h.

idWinVec4 idWindow::backColor
protected

Definition at line 400 of file Window.h.

const idMaterial* idWindow::background
protected

Definition at line 414 of file Window.h.

idWinBackground idWindow::backGroundName
protected

Definition at line 408 of file Window.h.

idWinVec4 idWindow::borderColor
protected

Definition at line 404 of file Window.h.

float idWindow::borderSize
protected

Definition at line 384 of file Window.h.

idWindow* idWindow::captureChild
protected

Definition at line 421 of file Window.h.

int idWindow::childID
protected

Definition at line 370 of file Window.h.

idList<idWindow*> idWindow::children
protected

Definition at line 417 of file Window.h.

idRectangle idWindow::clientRect
protected

Definition at line 374 of file Window.h.

idStr idWindow::cmd

Definition at line 316 of file Window.h.

idStr idWindow::comment
protected

Definition at line 388 of file Window.h.

unsigned char idWindow::cursor
protected

Definition at line 393 of file Window.h.

idDeviceContext* idWindow::dc
protected

Definition at line 425 of file Window.h.

idList<idWinVar*> idWindow::definedVars
protected

Definition at line 410 of file Window.h.

idRectangle idWindow::drawRect
protected

Definition at line 373 of file Window.h.

idList<drawWin_t> idWindow::drawWindows
protected

Definition at line 418 of file Window.h.

idList<float> idWindow::expressionRegisters
protected

Definition at line 441 of file Window.h.

unsigned int idWindow::flags
protected

Definition at line 371 of file Window.h.

idWindow* idWindow::focusedChild
protected

Definition at line 420 of file Window.h.

unsigned char idWindow::fontNum
protected

Definition at line 392 of file Window.h.

float idWindow::forceAspectHeight
protected

Definition at line 381 of file Window.h.

float idWindow::forceAspectWidth
protected

Definition at line 380 of file Window.h.

idWinVec4 idWindow::foreColor
protected

Definition at line 402 of file Window.h.

idUserInterfaceLocal* idWindow::gui
protected

Definition at line 427 of file Window.h.

idCVar idWindow::gui_debug
staticprotected

Definition at line 429 of file Window.h.

idCVar idWindow::gui_edit
staticprotected

Definition at line 430 of file Window.h.

idWinBool idWindow::hideCursor
protected

Definition at line 448 of file Window.h.

bool idWindow::hover
protected

Definition at line 423 of file Window.h.

idWinVec4 idWindow::hoverColor
protected

Definition at line 403 of file Window.h.

int idWindow::lastTimeRun
protected

Definition at line 372 of file Window.h.

idWinVec4 idWindow::matColor
protected

Definition at line 401 of file Window.h.

float idWindow::matScalex
protected

Definition at line 382 of file Window.h.

float idWindow::matScaley
protected

Definition at line 383 of file Window.h.

idStr idWindow::name
protected

Definition at line 387 of file Window.h.

idList<rvNamedEvent*> idWindow::namedEvents
protected

Definition at line 443 of file Window.h.

idWinBool idWindow::noEvents
protected

Definition at line 398 of file Window.h.

idWinBool idWindow::noTime
protected

Definition at line 396 of file Window.h.

const int idWindow::NumRegisterVars = sizeof(RegisterVars) / sizeof(idRegEntry)
static

Definition at line 202 of file Window.h.

idList<wexpOp_t> idWindow::ops
protected

Definition at line 440 of file Window.h.

idVec2 idWindow::origin
protected

Definition at line 375 of file Window.h.

idWindow* idWindow::overChild
protected

Definition at line 422 of file Window.h.

idWindow* idWindow::parent
protected

Definition at line 416 of file Window.h.

idWinRectangle idWindow::rect
protected

Definition at line 399 of file Window.h.

bool idWindow::registerIsTemporary
staticprotected

Definition at line 438 of file Window.h.

const idRegEntry idWindow::RegisterVars
static
Initial value:
= {
{ "forecolor", idRegister::VEC4 },
{ "hovercolor", idRegister::VEC4 },
{ "backcolor", idRegister::VEC4 },
{ "bordercolor", idRegister::VEC4 },
{ "rect", idRegister::RECTANGLE },
{ "matcolor", idRegister::VEC4 },
{ "scale", idRegister::VEC2 },
{ "translate", idRegister::VEC2 },
{ "rotate", idRegister::FLOAT },
{ "textscale", idRegister::FLOAT },
{ "visible", idRegister::BOOL },
{ "noevents", idRegister::BOOL },
{ "text", idRegister::STRING },
{ "background", idRegister::STRING },
{ "runscript", idRegister::STRING },
{ "varbackground", idRegister::STRING },
{ "cvar", idRegister::STRING },
{ "choices", idRegister::STRING },
{ "choiceVar", idRegister::STRING },
{ "bind", idRegister::STRING },
{ "modelRotate", idRegister::VEC4 },
{ "modelOrigin", idRegister::VEC4 },
{ "lightOrigin", idRegister::VEC4 },
{ "lightColor", idRegister::VEC4 },
{ "viewOffset", idRegister::VEC4 },
{ "hideCursor", idRegister::BOOL}
}

Definition at line 201 of file Window.h.

idRegisterList idWindow::regList
protected

Definition at line 446 of file Window.h.

idWinFloat idWindow::rotate
protected

Definition at line 406 of file Window.h.

idList<wexpOp_t>* idWindow::saveOps
protected

Definition at line 442 of file Window.h.

idList<float>* idWindow::saveRegs
protected

Definition at line 444 of file Window.h.

bool* idWindow::saveTemps
protected

Definition at line 433 of file Window.h.

const char * idWindow::ScriptNames
static
Initial value:
= {
"onMouseEnter",
"onMouseExit",
"onAction",
"onActivate",
"onDeactivate",
"onESC",
"onEvent",
"onTrigger",
"onActionRelease",
"onEnter",
"onEnterRelease"
}

Definition at line 199 of file Window.h.

idGuiScriptList* idWindow::scripts[SCRIPT_COUNT]
protected

Definition at line 432 of file Window.h.

idVec2 idWindow::shear
protected

Definition at line 389 of file Window.h.

idWinStr idWindow::text
protected

Definition at line 407 of file Window.h.

signed char idWindow::textAlign
protected

Definition at line 394 of file Window.h.

float idWindow::textAlignx
protected

Definition at line 385 of file Window.h.

float idWindow::textAligny
protected

Definition at line 386 of file Window.h.

idRectangle idWindow::textRect
protected

Definition at line 413 of file Window.h.

idWinFloat idWindow::textScale
protected

Definition at line 405 of file Window.h.

signed char idWindow::textShadow
protected

Definition at line 391 of file Window.h.

int idWindow::timeLine
protected

Definition at line 377 of file Window.h.

idList<idTimeLineEvent*> idWindow::timeLineEvents
protected

Definition at line 435 of file Window.h.

idList<idTransitionData> idWindow::transitions
protected

Definition at line 436 of file Window.h.

idList<idWinVar*> idWindow::updateVars
protected

Definition at line 411 of file Window.h.

idWinBool idWindow::visible
protected

Definition at line 397 of file Window.h.

float idWindow::xOffset
protected

Definition at line 378 of file Window.h.

float idWindow::yOffset
protected

Definition at line 379 of file Window.h.


The documentation for this class was generated from the following files: