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
ファイルを表示 Open project: RHY3756547/FreeSO Class Usage Examples

Private Properties

Property Type Description
BlockMouseEvent void

Public Methods

Method 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

Method Description
BlockMouseEvent ( UIMouseEventType type, UpdateState state ) : void

Method Details

BlockInput() public method

public BlockInput ( ) : void
return void

Draw() public method

public Draw ( FSO.Client.UI.Framework.UISpriteBatch SBatch ) : void
SBatch FSO.Client.UI.Framework.UISpriteBatch
return void

GetBounds() public method

public GetBounds ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

ListenForMouse() public method

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

SetSize() public method

public SetSize ( float width, float height ) : void
width float
height float
return void

UIImage() public method

public UIImage ( ) : System
return System

UIImage() public method

public UIImage ( ITextureRef Texture ) : System
Texture ITextureRef
return System

UIImage() public method

public UIImage ( Microsoft.Xna.Framework.Graphics.Texture2D Texture ) : System
Texture Microsoft.Xna.Framework.Graphics.Texture2D
return System

Update() public method

public Update ( UpdateState statex ) : void
statex FSO.Common.Rendering.Framework.Model.UpdateState
return void

With9Slice() public method

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
return UIImage