C# Class NewTOAPIA.UI.GraphicWindow

Inheritance: Window, IGraphicGroup
显示文件 Open project: Wiladams/NewTOAPIA

Protected Properties

Property Type Description
fIsDepressed bool
fLastMouse NewTOAPIA.Graphics.Point2I
fTracking bool

Public Methods

Method 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

Protected Methods

Method Description
OnGraphicRemoved ( IGraphic graphic ) : void

Method Details

AddGraphic() public method

public AddGraphic ( IGraphic aGraphic ) : void
aGraphic IGraphic
return void

AddGraphic() public method

public AddGraphic ( IGraphic aGraphic, IGraphic before ) : void
aGraphic IGraphic
before IGraphic
return void

AddGraphicAfter() public method

public AddGraphicAfter ( IGraphic aGraphic, IGraphic after ) : void
aGraphic IGraphic
after IGraphic
return void

Contains() public method

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

CountGraphics() public method

public CountGraphics ( ) : int
return int

Draw() public method

public Draw ( DrawEvent devent ) : void
devent DrawEvent
return void

DrawChildren() public method

public DrawChildren ( DrawEvent devent ) : void
devent DrawEvent
return void

GraphicAt() public method

public GraphicAt ( int index ) : IGraphic
index int
return IGraphic

GraphicNamed() public method

public GraphicNamed ( string graphicName ) : IGraphic
graphicName string
return IGraphic

GraphicNamedRecurse() public method

public GraphicNamedRecurse ( string graphicName ) : IGraphic
graphicName string
return IGraphic

GraphicWindow() public method

public GraphicWindow ( string title, int x, int y, int width, int height ) : System
title string
x int
y int
width int
height int
return System

GraphicsAt() public method

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
return void

MouseTrackerAt() public method

public MouseTrackerAt ( int x, int y ) : IGraphic
x int
y int
return IGraphic

MoveGraphicToFront() public method

public MoveGraphicToFront ( IGraphic graphic ) : void
graphic IGraphic
return void

OnGraphicAdded() public method

public OnGraphicAdded ( IGraphic aGraphic ) : void
aGraphic IGraphic
return void

OnGraphicRemoved() protected method

protected OnGraphicRemoved ( IGraphic graphic ) : void
graphic IGraphic
return void

OnKeyDown() public method

public OnKeyDown ( KeyboardActivityArgs ke ) : void
ke KeyboardActivityArgs
return void

OnKeyPress() public method

public OnKeyPress ( KeyboardActivityArgs ke ) : void
ke KeyboardActivityArgs
return void

OnKeyUp() public method

public OnKeyUp ( KeyboardActivityArgs ke ) : void
ke KeyboardActivityArgs
return void

OnMouseDown() public method

public OnMouseDown ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnMouseEnter() public method

public OnMouseEnter ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnMouseMove() public method

public OnMouseMove ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnMouseUp() public method

public OnMouseUp ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnPaint() public method

public OnPaint ( DrawEvent devent ) : void
devent DrawEvent
return void

RemoveAllGraphics() public method

public RemoveAllGraphics ( ) : void
return void

RemoveGraphic() public method

public RemoveGraphic ( IGraphic aGraphic ) : bool
aGraphic IGraphic
return bool

UpdateBoundaryState() public method

public UpdateBoundaryState ( ) : void
return void

UpdateGeometryState() public method

public UpdateGeometryState ( ) : void
return void

Property Details

fIsDepressed protected_oe property

protected bool fIsDepressed
return bool

fLastMouse protected_oe property

protected Point2I,NewTOAPIA.Graphics fLastMouse
return NewTOAPIA.Graphics.Point2I

fTracking protected_oe property

protected bool fTracking
return bool