C# Class idTech4.UI.idWindow

Inheritance: IDisposable
Show file Open project: iainmckay/idtech4.net Class Usage Examples

Protected Properties

Property Type Description
_backColor idWinVector4
_background idTech4.Renderer.idMaterial
_backgroundName idWinBackground
_borderColor idWinVector4
_foreColor idWinVector4
_hideCursor idWinBool
_hoverColor idWinVector4
_materialColor idWinVector4
_noEvents idWinBool
_noTime idWinBool
_rect idWinRectangle
_rotate idWinFloat
_text idWinString
_textScale idWinFloat
_visible idWinBool

Public Methods

Method Description
Activate ( bool activate, string &act ) : void
AddChild ( idWindow child ) : void
AddCommand ( string command ) : void
AddDefinedVariable ( idWindowVariable var ) : void
AddTransition ( idWindowVariable dest, Vector4 from, Vector4 to, int time, float accelTime, float decelTime ) : void
AddUpdateVariable ( idWindowVariable var ) : void
BringToTop ( idWindow window ) : void
ClientToScreen ( idRectangle &rect ) : void
Contains ( float x, float y ) : bool
Contains ( idRectangle rect, float x, float y ) : bool
Dispose ( ) : void
Draw ( float x, float y ) : void
EvaluateRegisters ( ) : float
EvaluateRegisters ( int test ) : float
EvaluateRegisters ( int test, bool force ) : float
EvaluateRegisters ( float &registers ) : void

Parameters are taken from the localSpace and the renderView, then all expressions are evaluated, leaving the shader registers set to their apropriate values.

FindChildByName ( string name ) : DrawWindow
FixupParameters ( ) : void
GetChild ( int index ) : idWindow

Returns the child window at the given index.

GetChildIndex ( idWindow window ) : int
GetVariableByName ( string name ) : idWindowVariable
GetVariableByName ( string name, bool fixup ) : idWindowVariable
GetVariableByName ( string name, bool fixup, DrawWindow &owner ) : idWindowVariable
HandleBuddyUpdate ( idWindow buddy ) : void
HandleEvent ( SystemEvent e, bool &updateVisuals ) : string
InsertChild ( idWindow window, idWindow before ) : bool

Inserts the given window as a child into the given location in the zorder.

Parse ( idScriptParser parser, bool rebuild ) : bool
ParseExpression ( idScriptParser parser ) : int

Returns a register index.

ParseExpression ( idScriptParser parser, idWindowVariable var ) : int

Returns a register index.

ParseExpression ( idScriptParser parser, idWindowVariable var, int component ) : int

Returns a register index.

ResetTime ( int time ) : void
RunNamedEvent ( string name ) : void
RunScript ( ScriptName name ) : bool
RunScriptList ( idGuiScriptList list ) : bool
ScreenToClient ( idRectangle &rect ) : void
SetFocus ( idWindow window, bool scripts = true ) : idWindow
SetupFromState ( ) : void
StartTransition ( ) : void
StateChanged ( bool redraw ) : void
Trigger ( ) : void
idWindow ( idUserInterface gui ) : System
idWindow ( idUserInterface gui, idDeviceContext context ) : System

Protected Methods

Method Description
DrawBackground ( idRectangle drawRect ) : void
OnFocusGained ( ) : void
OnFocusLost ( ) : void
ParseInternalVariable ( string name, idScriptParser parser ) : bool
ParseString ( idScriptParser parser ) : string
PostParse ( ) : void
RouteMouseCoordinates ( float x, float y ) : string
RunTimeEvents ( int time ) : bool
SetFont ( ) : void
SetInitialState ( string name ) : void

Private Methods

Method Description
CalculateClientRectangle ( float offsetX, float offsetY ) : void
CalculateRectangles ( float x, float y ) : void
CleanUp ( ) : void
DisableRegister ( string name ) : void
Dispose ( bool disposing ) : void
DrawBorderAndCaption ( idRectangle drawRect ) : void
DrawDebug ( int time, float x, float y ) : void
DrawText ( int time, float x, float y ) : void
EmitOperation ( object a, int b, WindowExpressionOperationType opType ) : int
EmitOperation ( object a, int b, WindowExpressionOperationType opType, WindowExpressionOperation &op ) : int
ExpressionConstant ( float f ) : int
HandleCaptureGained ( ) : void
HandleCaptureLost ( ) : void
HandleFocusGained ( ) : void
HandleFocusLost ( ) : void
HandleKeyEvent ( SystemEvent e, Keys key, bool down, bool &updateVisuals ) : string
HandleMouseEnter ( ) : void
HandleMouseEvent ( int deltaX, int deltaY, bool &updateVisuals ) : string
HandleMouseExit ( ) : void
Init ( ) : void
ParseEmitOperation ( idScriptParser parser, int a, WindowExpressionOperationType opType, int priority ) : int
ParseEmitOperation ( idScriptParser parser, int a, WindowExpressionOperationType opType, int priority, WindowExpressionOperation &op ) : int
ParseExpressionPriority ( idScriptParser parser, int priority, idWindowVariable var = null, int component ) : int
ParseRegisterEntry ( string name, idScriptParser parser ) : bool
ParseScript ( idScriptParser parser, idGuiScriptList list, bool elseBlock = false ) : bool
ParseScriptEntry ( idToken token, idScriptParser parser ) : bool
ParseTerm ( idScriptParser parser, idWindowVariable var, int component ) : int

RestoreExpressionParseState ( ) : void
SaveExpressionParseState ( ) : void
SetupBackground ( ) : void
SetupTransforms ( float x, float y ) : void
Time ( ) : void
Transition ( ) : void
UpdateVariables ( ) : void
idWindow ( ) : System

Method Details

Activate() public method

public Activate ( bool activate, string &act ) : void
activate bool
act string
return void

AddChild() public method

public AddChild ( idWindow child ) : void
child idWindow
return void

AddCommand() public method

public AddCommand ( string command ) : void
command string
return void

AddDefinedVariable() public method

public AddDefinedVariable ( idWindowVariable var ) : void
var idWindowVariable
return void

AddTransition() public method

public AddTransition ( idWindowVariable dest, Vector4 from, Vector4 to, int time, float accelTime, float decelTime ) : void
dest idWindowVariable
from Vector4
to Vector4
time int
accelTime float
decelTime float
return void

AddUpdateVariable() public method

public AddUpdateVariable ( idWindowVariable var ) : void
var idWindowVariable
return void

BringToTop() public method

public BringToTop ( idWindow window ) : void
window idWindow
return void

ClientToScreen() public method

public ClientToScreen ( idRectangle &rect ) : void
rect idRectangle
return void

Contains() public method

public Contains ( float x, float y ) : bool
x float
y float
return bool

Contains() public method

public Contains ( idRectangle rect, float x, float y ) : bool
rect idRectangle
x float
y float
return bool

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( float x, float y ) : void
x float
y float
return void

DrawBackground() protected method

protected DrawBackground ( idRectangle drawRect ) : void
drawRect idRectangle
return void

EvaluateRegisters() public method

public EvaluateRegisters ( ) : float
return float

EvaluateRegisters() public method

public EvaluateRegisters ( int test ) : float
test int
return float

EvaluateRegisters() public method

public EvaluateRegisters ( int test, bool force ) : float
test int
force bool
return float

EvaluateRegisters() public method

Parameters are taken from the localSpace and the renderView, then all expressions are evaluated, leaving the shader registers set to their apropriate values.
public EvaluateRegisters ( float &registers ) : void
registers float
return void

FindChildByName() public method

public FindChildByName ( string name ) : DrawWindow
name string
return DrawWindow

FixupParameters() public method

public FixupParameters ( ) : void
return void

GetChild() public method

Returns the child window at the given index.
public GetChild ( int index ) : idWindow
index int
return idWindow

GetChildIndex() public method

public GetChildIndex ( idWindow window ) : int
window idWindow
return int

GetVariableByName() public method

public GetVariableByName ( string name ) : idWindowVariable
name string
return idWindowVariable

GetVariableByName() public method

public GetVariableByName ( string name, bool fixup ) : idWindowVariable
name string
fixup bool
return idWindowVariable

GetVariableByName() public method

public GetVariableByName ( string name, bool fixup, DrawWindow &owner ) : idWindowVariable
name string
fixup bool
owner DrawWindow
return idWindowVariable

HandleBuddyUpdate() public method

public HandleBuddyUpdate ( idWindow buddy ) : void
buddy idWindow
return void

HandleEvent() public method

public HandleEvent ( SystemEvent e, bool &updateVisuals ) : string
e SystemEvent
updateVisuals bool
return string

InsertChild() public method

Inserts the given window as a child into the given location in the zorder.
public InsertChild ( idWindow window, idWindow before ) : bool
window idWindow
before idWindow
return bool

OnFocusGained() protected method

protected OnFocusGained ( ) : void
return void

OnFocusLost() protected method

protected OnFocusLost ( ) : void
return void

Parse() public method

public Parse ( idScriptParser parser, bool rebuild ) : bool
parser idTech4.Text.idScriptParser
rebuild bool
return bool

ParseExpression() public method

Returns a register index.
public ParseExpression ( idScriptParser parser ) : int
parser idTech4.Text.idScriptParser
return int

ParseExpression() public method

Returns a register index.
public ParseExpression ( idScriptParser parser, idWindowVariable var ) : int
parser idTech4.Text.idScriptParser
var idWindowVariable
return int

ParseExpression() public method

Returns a register index.
public ParseExpression ( idScriptParser parser, idWindowVariable var, int component ) : int
parser idTech4.Text.idScriptParser
var idWindowVariable
component int
return int

ParseInternalVariable() protected method

protected ParseInternalVariable ( string name, idScriptParser parser ) : bool
name string
parser idTech4.Text.idScriptParser
return bool

ParseString() protected method

protected ParseString ( idScriptParser parser ) : string
parser idTech4.Text.idScriptParser
return string

PostParse() protected method

protected PostParse ( ) : void
return void

ResetTime() public method

public ResetTime ( int time ) : void
time int
return void

RouteMouseCoordinates() protected method

protected RouteMouseCoordinates ( float x, float y ) : string
x float
y float
return string

RunNamedEvent() public method

public RunNamedEvent ( string name ) : void
name string
return void

RunScript() public method

public RunScript ( ScriptName name ) : bool
name ScriptName
return bool

RunScriptList() public method

public RunScriptList ( idGuiScriptList list ) : bool
list idGuiScriptList
return bool

RunTimeEvents() protected method

protected RunTimeEvents ( int time ) : bool
time int
return bool

ScreenToClient() public method

public ScreenToClient ( idRectangle &rect ) : void
rect idRectangle
return void

SetFocus() public method

public SetFocus ( idWindow window, bool scripts = true ) : idWindow
window idWindow
scripts bool
return idWindow

SetFont() protected method

protected SetFont ( ) : void
return void

SetInitialState() protected method

protected SetInitialState ( string name ) : void
name string
return void

SetupFromState() public method

public SetupFromState ( ) : void
return void

StartTransition() public method

public StartTransition ( ) : void
return void

StateChanged() public method

public StateChanged ( bool redraw ) : void
redraw bool
return void

Trigger() public method

public Trigger ( ) : void
return void

idWindow() public method

public idWindow ( idUserInterface gui ) : System
gui idUserInterface
return System

idWindow() public method

public idWindow ( idUserInterface gui, idDeviceContext context ) : System
gui idUserInterface
context idDeviceContext
return System

Property Details

_backColor protected property

protected idWinVector4,idTech4.UI _backColor
return idWinVector4

_background protected property

protected idMaterial,idTech4.Renderer _background
return idTech4.Renderer.idMaterial

_backgroundName protected property

protected idWinBackground,idTech4.UI _backgroundName
return idWinBackground

_borderColor protected property

protected idWinVector4,idTech4.UI _borderColor
return idWinVector4

_foreColor protected property

protected idWinVector4,idTech4.UI _foreColor
return idWinVector4

_hideCursor protected property

protected idWinBool,idTech4.UI _hideCursor
return idWinBool

_hoverColor protected property

protected idWinVector4,idTech4.UI _hoverColor
return idWinVector4

_materialColor protected property

protected idWinVector4,idTech4.UI _materialColor
return idWinVector4

_noEvents protected property

protected idWinBool,idTech4.UI _noEvents
return idWinBool

_noTime protected property

protected idWinBool,idTech4.UI _noTime
return idWinBool

_rect protected property

protected idWinRectangle,idTech4.UI _rect
return idWinRectangle

_rotate protected property

protected idWinFloat,idTech4.UI _rotate
return idWinFloat

_text protected property

protected idWinString,idTech4.UI _text
return idWinString

_textScale protected property

protected idWinFloat,idTech4.UI _textScale
return idWinFloat

_visible protected property

protected idWinBool _visible
return idWinBool