C# 클래스 Gonzo.Elements.UIImage

상속: UIElement
파일 보기 프로젝트 열기: Afr0Games/Project-Dollhouse 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Slicer NineSlicer
Texture Microsoft.Xna.Framework.Graphics.Texture2D

공개 메소드들

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

Draws this UIImage to the screen.

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

Draws this UIImage to the screen.

DrawTextureTo ( SpriteBatch SBatch, Vector2 Scale, Rectangle From, Vector2 To, float LayerDepth ) : void

Draws a part of this image's texture to a specific point in screen space. Used for drawing dialogs (see UIDialog.cs).

SetSize ( int Width, int Height ) : void

Sets the size of this UIImage instance.

UIImage ( DefineImageNode Node, UIScreen Screen ) : Files.Manager

Constructs a new UIImage instance.

UIImage ( Microsoft.Xna.Framework.Graphics.Texture2D Tex, UIScreen Screen, UIElement Parent = null ) : Files.Manager

Constructs a new UIImage instance.

UIImage ( UIImage Image ) : Files.Manager

Copy constructor.

메소드 상세

Draw() 공개 메소드

Draws this UIImage to the screen.
public Draw ( SpriteBatch SBatch, Rectangle SourceRect, float LayerDepth ) : void
SBatch Microsoft.Xna.Framework.Graphics.SpriteBatch A SpriteBatch instance to draw with.
SourceRect Microsoft.Xna.Framework.Rectangle A rectangle controlling which part of the image to draw. May be null.
LayerDepth float
리턴 void

Draw() 공개 메소드

Draws this UIImage to the screen.
public Draw ( SpriteBatch SBatch, Rectangle SourceRect, float LayerDepth, Vector2 ScaleFactor ) : void
SBatch Microsoft.Xna.Framework.Graphics.SpriteBatch A SpriteBatch instance to draw with.
SourceRect Microsoft.Xna.Framework.Rectangle A rectangle controlling which part of the image to draw. May be null.
LayerDepth float Depth at which to draw, may be null.
ScaleFactor Microsoft.Xna.Framework.Vector2 Scale at which to draw, may be null.
리턴 void

DrawTextureTo() 공개 메소드

Draws a part of this image's texture to a specific point in screen space. Used for drawing dialogs (see UIDialog.cs).
public DrawTextureTo ( SpriteBatch SBatch, Vector2 Scale, Rectangle From, Vector2 To, float LayerDepth ) : void
SBatch Microsoft.Xna.Framework.Graphics.SpriteBatch The SpriteBatch used for drawing.
Scale Microsoft.Xna.Framework.Vector2 The scale at which to draw.
From Microsoft.Xna.Framework.Rectangle A source rectangle that controls which part of the texture is drawn.
To Microsoft.Xna.Framework.Vector2 Point in screen space to draw to.
LayerDepth float Depth at which to render, from 0-1. Set to 0.10f by default.
리턴 void

SetSize() 공개 메소드

Sets the size of this UIImage instance.
public SetSize ( int Width, int Height ) : void
Width int The width of this UIImage instance.
Height int The height of this UIImage instance.
리턴 void

UIImage() 공개 메소드

Constructs a new UIImage instance.
public UIImage ( DefineImageNode Node, UIScreen Screen ) : Files.Manager
Node DefineImageNode A DefineImageNode instance, as generated by an Abstract Syntax Tree (see UIScreen.cs).
Screen UIScreen A UIScreen instance.
리턴 Files.Manager

UIImage() 공개 메소드

Constructs a new UIImage instance.
public UIImage ( Microsoft.Xna.Framework.Graphics.Texture2D Tex, UIScreen Screen, UIElement Parent = null ) : Files.Manager
Tex Microsoft.Xna.Framework.Graphics.Texture2D Texture to create image from.
Screen UIScreen UIScreen instance.
Parent UIElement Parent of this UIImage instance, may be null.
리턴 Files.Manager

UIImage() 공개 메소드

Copy constructor.
public UIImage ( UIImage Image ) : Files.Manager
Image UIImage A UIImage instance to copy.
리턴 Files.Manager

프로퍼티 상세

Slicer 공개적으로 프로퍼티

Initialize this to get nine rectangles with which to draw the texture.
public NineSlicer,Gonzo.Elements Slicer
리턴 NineSlicer

Texture 공개적으로 프로퍼티

public Texture2D,Microsoft.Xna.Framework.Graphics Texture
리턴 Microsoft.Xna.Framework.Graphics.Texture2D