C# Class FSO.Client.UI.Controls.UIImage

A drawable image that is part of the GUI. Cannot be clicked.
Inheritance: FSO.Client.UI.Framework.UIElement
Afficher le fichier Open project: RHY3756547/FreeSO Class Usage Examples

Private Properties

Свойство Type Description
BlockMouseEvent void

Méthodes publiques

Méthode Description
BlockInput ( ) : void
Draw ( FSO.Client.UI.Framework.UISpriteBatch SBatch ) : void
GetBounds ( ) : Rectangle
ListenForMouse ( UIMouseEvent callback ) : void

Listen for mouse events on the whole image

SetSize ( float width, float height ) : void
UIImage ( ) : System
UIImage ( ITextureRef Texture ) : System
UIImage ( Microsoft.Xna.Framework.Graphics.Texture2D Texture ) : System
Update ( UpdateState statex ) : void
With9Slice ( int marginLeft, int marginRight, int marginTop, int marginBottom ) : UIImage

Sets 9 slice options on the image, this allows it to be cut into 9 pieces for scaling

Private Methods

Méthode Description
BlockMouseEvent ( UIMouseEventType type, UpdateState state ) : void

Method Details

BlockInput() public méthode

public BlockInput ( ) : void
Résultat void

Draw() public méthode

public Draw ( FSO.Client.UI.Framework.UISpriteBatch SBatch ) : void
SBatch FSO.Client.UI.Framework.UISpriteBatch
Résultat void

GetBounds() public méthode

public GetBounds ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

ListenForMouse() public méthode

Listen for mouse events on the whole image
public ListenForMouse ( UIMouseEvent callback ) : void
callback UIMouseEvent
Résultat void

SetSize() public méthode

public SetSize ( float width, float height ) : void
width float
height float
Résultat void

UIImage() public méthode

public UIImage ( ) : System
Résultat System

UIImage() public méthode

public UIImage ( ITextureRef Texture ) : System
Texture ITextureRef
Résultat System

UIImage() public méthode

public UIImage ( Microsoft.Xna.Framework.Graphics.Texture2D Texture ) : System
Texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat System

Update() public méthode

public Update ( UpdateState statex ) : void
statex FSO.Common.Rendering.Framework.Model.UpdateState
Résultat void

With9Slice() public méthode

Sets 9 slice options on the image, this allows it to be cut into 9 pieces for scaling
public With9Slice ( int marginLeft, int marginRight, int marginTop, int marginBottom ) : UIImage
marginLeft int
marginRight int
marginTop int
marginBottom int
Résultat UIImage