C# Класс XNAInterfaceComponents.Components.Component

Наследование: Drawable, MouseOverable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Component ( ParentComponent parent, Rectangle bounds ) : System
Draw ( SpriteBatch sb ) : void
GetDepth ( ) : int

Gets the depth of this component.

GetLocation ( ) : Point

Gets the location relative to the parent.

GetScreenBounds ( ) : Rectangle

Gets the location on the screen of this component.

OnMouseEnter ( MouseEvent e ) : void
OnMouseExit ( MouseEvent e ) : void
Unload ( ) : void
Update ( ) : void

Защищенные методы

Метод Описание
GetDrawDepthOffset ( ) : float

Takes the depth of this component, and multiplies it by 0.01f to get a value which you can use to draw the component at the correct depth on the screen.

Описание методов

Component() публичный Метод

public Component ( ParentComponent parent, Rectangle bounds ) : System
parent XNAInterfaceComponents.AbstractComponents.ParentComponent
bounds Microsoft.Xna.Framework.Rectangle
Результат System

Draw() публичный абстрактный Метод

public abstract Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

GetDepth() публичный Метод

Gets the depth of this component.
public GetDepth ( ) : int
Результат int

GetDrawDepthOffset() защищенный Метод

Takes the depth of this component, and multiplies it by 0.01f to get a value which you can use to draw the component at the correct depth on the screen.
protected GetDrawDepthOffset ( ) : float
Результат float

GetLocation() публичный Метод

Gets the location relative to the parent.
public GetLocation ( ) : Point
Результат Point

GetScreenBounds() публичный Метод

Gets the location on the screen of this component.
public GetScreenBounds ( ) : Rectangle
Результат Microsoft.Xna.Framework.Rectangle

OnMouseEnter() публичный абстрактный Метод

public abstract OnMouseEnter ( MouseEvent e ) : void
e MouseEvent
Результат void

OnMouseExit() публичный абстрактный Метод

public abstract OnMouseExit ( MouseEvent e ) : void
e MouseEvent
Результат void

Unload() публичный абстрактный Метод

public abstract Unload ( ) : void
Результат void

Update() публичный абстрактный Метод

public abstract Update ( ) : void
Результат void