C# 클래스 XNAInterfaceComponents.AbstractComponents.ParentComponent

상속: XNAInterfaceComponents.Components.Component
파일 보기 프로젝트 열기: Wotuu/RTS_XNA_v2 1 사용 예제들

공개 메소드들

메소드 설명
AddChild ( Component component ) : void

Adds a child to this component.

ChildAt ( int index ) : Component

Gets a component at an index.

ChildCount ( ) : int

Gets the amount of children in this component.

GetComponentAt ( Point p ) : Component

Gets the component at a location (may be this component if no childs contain the location)

ParentComponent ( ParentComponent parent, Rectangle bounds ) : System
RemoveChild ( Component component ) : System.Boolean

Removes a child from this component.

RequestFocusAt ( Point p ) : System.Boolean

The most top displayed component will grab focus at this location.

RequestScreenLocation ( Point childLocation ) : Point

Requests the screen location of this component. Childs can use this function to get their exact location on the screen, instead of relative to their parent.

메소드 상세

AddChild() 공개 메소드

Adds a child to this component.
public AddChild ( Component component ) : void
component XNAInterfaceComponents.Components.Component The component to add to this parent component
리턴 void

ChildAt() 공개 메소드

Gets a component at an index.
public ChildAt ( int index ) : Component
index int The index to get a component at.
리턴 XNAInterfaceComponents.Components.Component

ChildCount() 공개 메소드

Gets the amount of children in this component.
public ChildCount ( ) : int
리턴 int

GetComponentAt() 공개 메소드

Gets the component at a location (may be this component if no childs contain the location)
public GetComponentAt ( Point p ) : Component
p Point
리턴 XNAInterfaceComponents.Components.Component

ParentComponent() 공개 메소드

public ParentComponent ( ParentComponent parent, Rectangle bounds ) : System
parent ParentComponent
bounds Microsoft.Xna.Framework.Rectangle
리턴 System

RemoveChild() 공개 메소드

Removes a child from this component.
public RemoveChild ( Component component ) : System.Boolean
component XNAInterfaceComponents.Components.Component The component to remove.
리턴 System.Boolean

RequestFocusAt() 공개 메소드

The most top displayed component will grab focus at this location.
public RequestFocusAt ( Point p ) : System.Boolean
p Point The point to check for focus
리턴 System.Boolean

RequestScreenLocation() 공개 메소드

Requests the screen location of this component. Childs can use this function to get their exact location on the screen, instead of relative to their parent.
public RequestScreenLocation ( Point childLocation ) : Point
childLocation Point The location of the last child.
리턴 Point