C# Class NewTOAPIA.UI.GraphicWindow

Inheritance: Window, IGraphicGroup
Afficher le fichier Open project: Wiladams/NewTOAPIA

Protected Properties

Свойство Type Description
fIsDepressed bool
fLastMouse NewTOAPIA.Graphics.Point2I
fTracking bool

Méthodes publiques

Méthode Description
AddGraphic ( IGraphic aGraphic ) : void
AddGraphic ( IGraphic aGraphic, IGraphic before ) : void
AddGraphicAfter ( IGraphic aGraphic, IGraphic after ) : void
Contains ( int x, int y ) : bool
CountGraphics ( ) : int
Draw ( DrawEvent devent ) : void
DrawChildren ( DrawEvent devent ) : void
GraphicAt ( int index ) : IGraphic
GraphicNamed ( string graphicName ) : IGraphic
GraphicNamedRecurse ( string graphicName ) : IGraphic
GraphicWindow ( string title, int x, int y, int width, int height ) : System
GraphicsAt ( int x, int y, Stack &coll ) : void

Return a stack of graphics that are located under the point. The graphic hierarchy is traversed from the parent most, to the child most. The child that is the closest to the top of the visual stack will be the first in the stack. The parent parent will be at the bottom of the stack. This allows events such as mouse tracking to hit the closest graphic first, and purcolate up to the parent if none of the children do anything with it.

MouseTrackerAt ( int x, int y ) : IGraphic
MoveGraphicToFront ( IGraphic graphic ) : void
OnGraphicAdded ( IGraphic aGraphic ) : void
OnKeyDown ( KeyboardActivityArgs ke ) : void
OnKeyPress ( KeyboardActivityArgs ke ) : void
OnKeyUp ( KeyboardActivityArgs ke ) : void
OnMouseDown ( MouseActivityArgs e ) : void
OnMouseEnter ( MouseActivityArgs e ) : void
OnMouseMove ( MouseActivityArgs e ) : void
OnMouseUp ( MouseActivityArgs e ) : void
OnPaint ( DrawEvent devent ) : void
RemoveAllGraphics ( ) : void
RemoveGraphic ( IGraphic aGraphic ) : bool
UpdateBoundaryState ( ) : void
UpdateGeometryState ( ) : void

Méthodes protégées

Méthode Description
OnGraphicRemoved ( IGraphic graphic ) : void

Method Details

AddGraphic() public méthode

public AddGraphic ( IGraphic aGraphic ) : void
aGraphic IGraphic
Résultat void

AddGraphic() public méthode

public AddGraphic ( IGraphic aGraphic, IGraphic before ) : void
aGraphic IGraphic
before IGraphic
Résultat void

AddGraphicAfter() public méthode

public AddGraphicAfter ( IGraphic aGraphic, IGraphic after ) : void
aGraphic IGraphic
after IGraphic
Résultat void

Contains() public méthode

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

CountGraphics() public méthode

public CountGraphics ( ) : int
Résultat int

Draw() public méthode

public Draw ( DrawEvent devent ) : void
devent DrawEvent
Résultat void

DrawChildren() public méthode

public DrawChildren ( DrawEvent devent ) : void
devent DrawEvent
Résultat void

GraphicAt() public méthode

public GraphicAt ( int index ) : IGraphic
index int
Résultat IGraphic

GraphicNamed() public méthode

public GraphicNamed ( string graphicName ) : IGraphic
graphicName string
Résultat IGraphic

GraphicNamedRecurse() public méthode

public GraphicNamedRecurse ( string graphicName ) : IGraphic
graphicName string
Résultat IGraphic

GraphicWindow() public méthode

public GraphicWindow ( string title, int x, int y, int width, int height ) : System
title string
x int
y int
width int
height int
Résultat System

GraphicsAt() public méthode

Return a stack of graphics that are located under the point. The graphic hierarchy is traversed from the parent most, to the child most. The child that is the closest to the top of the visual stack will be the first in the stack. The parent parent will be at the bottom of the stack. This allows events such as mouse tracking to hit the closest graphic first, and purcolate up to the parent if none of the children do anything with it.
public GraphicsAt ( int x, int y, Stack &coll ) : void
x int
y int
coll Stack
Résultat void

MouseTrackerAt() public méthode

public MouseTrackerAt ( int x, int y ) : IGraphic
x int
y int
Résultat IGraphic

MoveGraphicToFront() public méthode

public MoveGraphicToFront ( IGraphic graphic ) : void
graphic IGraphic
Résultat void

OnGraphicAdded() public méthode

public OnGraphicAdded ( IGraphic aGraphic ) : void
aGraphic IGraphic
Résultat void

OnGraphicRemoved() protected méthode

protected OnGraphicRemoved ( IGraphic graphic ) : void
graphic IGraphic
Résultat void

OnKeyDown() public méthode

public OnKeyDown ( KeyboardActivityArgs ke ) : void
ke KeyboardActivityArgs
Résultat void

OnKeyPress() public méthode

public OnKeyPress ( KeyboardActivityArgs ke ) : void
ke KeyboardActivityArgs
Résultat void

OnKeyUp() public méthode

public OnKeyUp ( KeyboardActivityArgs ke ) : void
ke KeyboardActivityArgs
Résultat void

OnMouseDown() public méthode

public OnMouseDown ( MouseActivityArgs e ) : void
e MouseActivityArgs
Résultat void

OnMouseEnter() public méthode

public OnMouseEnter ( MouseActivityArgs e ) : void
e MouseActivityArgs
Résultat void

OnMouseMove() public méthode

public OnMouseMove ( MouseActivityArgs e ) : void
e MouseActivityArgs
Résultat void

OnMouseUp() public méthode

public OnMouseUp ( MouseActivityArgs e ) : void
e MouseActivityArgs
Résultat void

OnPaint() public méthode

public OnPaint ( DrawEvent devent ) : void
devent DrawEvent
Résultat void

RemoveAllGraphics() public méthode

public RemoveAllGraphics ( ) : void
Résultat void

RemoveGraphic() public méthode

public RemoveGraphic ( IGraphic aGraphic ) : bool
aGraphic IGraphic
Résultat bool

UpdateBoundaryState() public méthode

public UpdateBoundaryState ( ) : void
Résultat void

UpdateGeometryState() public méthode

public UpdateGeometryState ( ) : void
Résultat void

Property Details

fIsDepressed protected_oe property

protected bool fIsDepressed
Résultat bool

fLastMouse protected_oe property

protected Point2I,NewTOAPIA.Graphics fLastMouse
Résultat NewTOAPIA.Graphics.Point2I

fTracking protected_oe property

protected bool fTracking
Résultat bool