C# 클래스 Gonzo.Elements.UIElement

UIElement is the base class for all UI related elements (UIButton, UIControl, UIDialog, UIImage, UILabel, UISlider, UITextEdit).
파일 보기 프로젝트 열기: Afr0Games/Project-Dollhouse 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Image UIImage
Name string
TextDrawingColor Color
Tracking int
Visible bool

보호된 프로퍼티들

프로퍼티 타입 설명
m_Font Microsoft.Xna.Framework.Graphics.SpriteFont
m_HasFocus bool
m_ID int
m_KeyboardInput bool
m_Opaque bool
m_Parent UIElement
m_Screen UIScreen
m_Size Vector2

공개 메소드들

메소드 설명
Draw ( SpriteBatch SBatch, Rectangle SourceRect, float LayerDepth ) : void

Handles drawing logic for this UIElement.

Draw ( SpriteBatch SBatch, Rectangle SourceRect, float LayerDepth, Vector2 ScaleFactor ) : void

Handles drawing logic for this UIElement.

Draw ( SpriteBatch SBatch, float LayerDepth ) : void

Handles drawing logic for this UIElement.

GetLayerDepth ( LayerDepth Depth ) : float

Gets the value of the corresponding layer depth.

IsMouseOver ( InputHelper Input ) : bool

Returns true if the mouse is over this UIElement. Does NOT work for pixel-perfect collision.

MouseEvents ( InputHelper Helper ) : void

Mouse interacted with this UIElement.

UIElement ( UIScreen Screen, UIElement Parent = null, string Path = "" ) : System

Constructs a UIElement from a Screen instance and an optional UIElement that acts as a parent.

UIElement ( string Name, Vector2 Position, Vector2 Size, UIScreen Screen, UIElement Parent = null ) : System
Update ( InputHelper Helper, GameTime GTime ) : void

Handles update logic for this UIElement.

보호된 메소드들

메소드 설명
PixelCheck ( InputHelper Input, int Width ) : bool

메소드 상세

Draw() 공개 메소드

Handles drawing logic for this UIElement.
public Draw ( SpriteBatch SBatch, Rectangle SourceRect, float LayerDepth ) : void
SBatch Microsoft.Xna.Framework.Graphics.SpriteBatch A SpriteBatch instance.
SourceRect Microsoft.Xna.Framework.Rectangle A source rectangle, for controlling which part of this elenent's texture is drawn.
LayerDepth float Depth at which to draw, may be null.
리턴 void

Draw() 공개 메소드

Handles drawing logic for this UIElement.
public Draw ( SpriteBatch SBatch, Rectangle SourceRect, float LayerDepth, Vector2 ScaleFactor ) : void
SBatch Microsoft.Xna.Framework.Graphics.SpriteBatch A SpriteBatch instance.
SourceRect Microsoft.Xna.Framework.Rectangle A source rectangle, for controlling which part of this elenent's texture is drawn.
LayerDepth float Depth at which to draw, may be null.
ScaleFactor Vector2 Scale at which to draw, may be null.
리턴 void

Draw() 공개 메소드

Handles drawing logic for this UIElement.
public Draw ( SpriteBatch SBatch, float LayerDepth ) : void
SBatch Microsoft.Xna.Framework.Graphics.SpriteBatch A SpriteBatch instance.
LayerDepth float Depth at which to draw, may be null.
리턴 void

GetLayerDepth() 공개 정적인 메소드

Gets the value of the corresponding layer depth.
public static GetLayerDepth ( LayerDepth Depth ) : float
Depth LayerDepth The depth for which to retrieve a value.
리턴 float

IsMouseOver() 공개 메소드

Returns true if the mouse is over this UIElement. Does NOT work for pixel-perfect collision.
public IsMouseOver ( InputHelper Input ) : bool
Input InputHelper
리턴 bool

MouseEvents() 공개 메소드

Mouse interacted with this UIElement.
public MouseEvents ( InputHelper Helper ) : void
Helper InputHelper InputHelper instance for input data.
리턴 void

PixelCheck() 보호된 메소드

protected PixelCheck ( InputHelper Input, int Width ) : bool
Input InputHelper
Width int
리턴 bool

UIElement() 공개 메소드

Constructs a UIElement from a Screen instance and an optional UIElement that acts as a parent.
public UIElement ( UIScreen Screen, UIElement Parent = null, string Path = "" ) : System
Screen UIScreen A Screen instance.
Parent UIElement (Optional) UIElement that acts as a parent.
Path string (Optional) Path to a UI script that will create this UI element.
리턴 System

UIElement() 공개 메소드

public UIElement ( string Name, Vector2 Position, Vector2 Size, UIScreen Screen, UIElement Parent = null ) : System
Name string
Position Vector2
Size Vector2
Screen UIScreen
Parent UIElement
리턴 System

Update() 공개 메소드

Handles update logic for this UIElement.
public Update ( InputHelper Helper, GameTime GTime ) : void
Helper InputHelper InputHelper instance for input data.
GTime Microsoft.Xna.Framework.GameTime
리턴 void

프로퍼티 상세

Image 공개적으로 프로퍼티

public UIImage,Gonzo.Elements Image
리턴 UIImage

Name 공개적으로 프로퍼티

public string Name
리턴 string

TextDrawingColor 공개적으로 프로퍼티

public Color TextDrawingColor
리턴 Color

Tracking 공개적으로 프로퍼티

public int Tracking
리턴 int

Visible 공개적으로 프로퍼티

public bool Visible
리턴 bool

m_Font 보호되어 있는 프로퍼티

protected SpriteFont,Microsoft.Xna.Framework.Graphics m_Font
리턴 Microsoft.Xna.Framework.Graphics.SpriteFont

m_HasFocus 보호되어 있는 프로퍼티

protected bool m_HasFocus
리턴 bool

m_ID 보호되어 있는 프로퍼티

protected int m_ID
리턴 int

m_KeyboardInput 보호되어 있는 프로퍼티

protected bool m_KeyboardInput
리턴 bool

m_Opaque 보호되어 있는 프로퍼티

protected bool m_Opaque
리턴 bool

m_Parent 보호되어 있는 프로퍼티

protected UIElement,Gonzo.Elements m_Parent
리턴 UIElement

m_Screen 보호되어 있는 프로퍼티

protected UIScreen m_Screen
리턴 UIScreen

m_Size 보호되어 있는 프로퍼티

protected Vector2 m_Size
리턴 Vector2