C# Class idTech4.UI.idWindow

Inheritance: IDisposable
Afficher le fichier Open project: iainmckay/idtech4.net Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public Activate ( bool activate, string &act ) : void
activate bool
act string
Résultat void

AddChild() public méthode

public AddChild ( idWindow child ) : void
child idWindow
Résultat void

AddCommand() public méthode

public AddCommand ( string command ) : void
command string
Résultat void

AddDefinedVariable() public méthode

public AddDefinedVariable ( idWindowVariable var ) : void
var idWindowVariable
Résultat void

AddTransition() public méthode

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
Résultat void

AddUpdateVariable() public méthode

public AddUpdateVariable ( idWindowVariable var ) : void
var idWindowVariable
Résultat void

BringToTop() public méthode

public BringToTop ( idWindow window ) : void
window idWindow
Résultat void

ClientToScreen() public méthode

public ClientToScreen ( idRectangle &rect ) : void
rect idRectangle
Résultat void

Contains() public méthode

public Contains ( float x, float y ) : bool
x float
y float
Résultat bool

Contains() public méthode

public Contains ( idRectangle rect, float x, float y ) : bool
rect idRectangle
x float
y float
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Draw() public méthode

public Draw ( float x, float y ) : void
x float
y float
Résultat void

DrawBackground() protected méthode

protected DrawBackground ( idRectangle drawRect ) : void
drawRect idRectangle
Résultat void

EvaluateRegisters() public méthode

public EvaluateRegisters ( ) : float
Résultat float

EvaluateRegisters() public méthode

public EvaluateRegisters ( int test ) : float
test int
Résultat float

EvaluateRegisters() public méthode

public EvaluateRegisters ( int test, bool force ) : float
test int
force bool
Résultat float

EvaluateRegisters() public méthode

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
Résultat void

FindChildByName() public méthode

public FindChildByName ( string name ) : DrawWindow
name string
Résultat DrawWindow

FixupParameters() public méthode

public FixupParameters ( ) : void
Résultat void

GetChild() public méthode

Returns the child window at the given index.
public GetChild ( int index ) : idWindow
index int
Résultat idWindow

GetChildIndex() public méthode

public GetChildIndex ( idWindow window ) : int
window idWindow
Résultat int

GetVariableByName() public méthode

public GetVariableByName ( string name ) : idWindowVariable
name string
Résultat idWindowVariable

GetVariableByName() public méthode

public GetVariableByName ( string name, bool fixup ) : idWindowVariable
name string
fixup bool
Résultat idWindowVariable

GetVariableByName() public méthode

public GetVariableByName ( string name, bool fixup, DrawWindow &owner ) : idWindowVariable
name string
fixup bool
owner DrawWindow
Résultat idWindowVariable

HandleBuddyUpdate() public méthode

public HandleBuddyUpdate ( idWindow buddy ) : void
buddy idWindow
Résultat void

HandleEvent() public méthode

public HandleEvent ( SystemEvent e, bool &updateVisuals ) : string
e SystemEvent
updateVisuals bool
Résultat string

InsertChild() public méthode

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
Résultat bool

OnFocusGained() protected méthode

protected OnFocusGained ( ) : void
Résultat void

OnFocusLost() protected méthode

protected OnFocusLost ( ) : void
Résultat void

Parse() public méthode

public Parse ( idScriptParser parser, bool rebuild ) : bool
parser idTech4.Text.idScriptParser
rebuild bool
Résultat bool

ParseExpression() public méthode

Returns a register index.
public ParseExpression ( idScriptParser parser ) : int
parser idTech4.Text.idScriptParser
Résultat int

ParseExpression() public méthode

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

ParseExpression() public méthode

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

ParseInternalVariable() protected méthode

protected ParseInternalVariable ( string name, idScriptParser parser ) : bool
name string
parser idTech4.Text.idScriptParser
Résultat bool

ParseString() protected méthode

protected ParseString ( idScriptParser parser ) : string
parser idTech4.Text.idScriptParser
Résultat string

PostParse() protected méthode

protected PostParse ( ) : void
Résultat void

ResetTime() public méthode

public ResetTime ( int time ) : void
time int
Résultat void

RouteMouseCoordinates() protected méthode

protected RouteMouseCoordinates ( float x, float y ) : string
x float
y float
Résultat string

RunNamedEvent() public méthode

public RunNamedEvent ( string name ) : void
name string
Résultat void

RunScript() public méthode

public RunScript ( ScriptName name ) : bool
name ScriptName
Résultat bool

RunScriptList() public méthode

public RunScriptList ( idGuiScriptList list ) : bool
list idGuiScriptList
Résultat bool

RunTimeEvents() protected méthode

protected RunTimeEvents ( int time ) : bool
time int
Résultat bool

ScreenToClient() public méthode

public ScreenToClient ( idRectangle &rect ) : void
rect idRectangle
Résultat void

SetFocus() public méthode

public SetFocus ( idWindow window, bool scripts = true ) : idWindow
window idWindow
scripts bool
Résultat idWindow

SetFont() protected méthode

protected SetFont ( ) : void
Résultat void

SetInitialState() protected méthode

protected SetInitialState ( string name ) : void
name string
Résultat void

SetupFromState() public méthode

public SetupFromState ( ) : void
Résultat void

StartTransition() public méthode

public StartTransition ( ) : void
Résultat void

StateChanged() public méthode

public StateChanged ( bool redraw ) : void
redraw bool
Résultat void

Trigger() public méthode

public Trigger ( ) : void
Résultat void

idWindow() public méthode

public idWindow ( idUserInterface gui ) : System
gui idUserInterface
Résultat System

idWindow() public méthode

public idWindow ( idUserInterface gui, idDeviceContext context ) : System
gui idUserInterface
context idDeviceContext
Résultat System

Property Details

_backColor protected_oe property

protected idWinVector4,idTech4.UI _backColor
Résultat idWinVector4

_background protected_oe property

protected idMaterial,idTech4.Renderer _background
Résultat idTech4.Renderer.idMaterial

_backgroundName protected_oe property

protected idWinBackground,idTech4.UI _backgroundName
Résultat idWinBackground

_borderColor protected_oe property

protected idWinVector4,idTech4.UI _borderColor
Résultat idWinVector4

_foreColor protected_oe property

protected idWinVector4,idTech4.UI _foreColor
Résultat idWinVector4

_hideCursor protected_oe property

protected idWinBool,idTech4.UI _hideCursor
Résultat idWinBool

_hoverColor protected_oe property

protected idWinVector4,idTech4.UI _hoverColor
Résultat idWinVector4

_materialColor protected_oe property

protected idWinVector4,idTech4.UI _materialColor
Résultat idWinVector4

_noEvents protected_oe property

protected idWinBool,idTech4.UI _noEvents
Résultat idWinBool

_noTime protected_oe property

protected idWinBool,idTech4.UI _noTime
Résultat idWinBool

_rect protected_oe property

protected idWinRectangle,idTech4.UI _rect
Résultat idWinRectangle

_rotate protected_oe property

protected idWinFloat,idTech4.UI _rotate
Résultat idWinFloat

_text protected_oe property

protected idWinString,idTech4.UI _text
Résultat idWinString

_textScale protected_oe property

protected idWinFloat,idTech4.UI _textScale
Résultat idWinFloat

_visible protected_oe property

protected idWinBool _visible
Résultat idWinBool