C# Класс XNAInterfaceComponents.AbstractComponents.ParentComponent

Наследование: XNAInterfaceComponents.Components.Component
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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