C# Class GameEngine.ScreenObject

Represents a Object that is to be displayed on the Screen(Canvas)
显示文件 Open project: Kursledare/Mookieraw Class Usage Examples

Public Methods

Method Description
Reposition ( float x, float y ) : void
ScreenObject ( string source, int zIndex, MouseButtonEventHandler uIElement_OnMouseDown = null ) : System
SetOpacity ( double value ) : void
ToCanvasPosition ( ) : Vector2

Method Details

Reposition() public method

public Reposition ( float x, float y ) : void
x float
y float
return void

ScreenObject() public method

public ScreenObject ( string source, int zIndex, MouseButtonEventHandler uIElement_OnMouseDown = null ) : System
source string
zIndex int
uIElement_OnMouseDown MouseButtonEventHandler
return System

SetOpacity() public method

public SetOpacity ( double value ) : void
value double
return void

ToCanvasPosition() public method

public ToCanvasPosition ( ) : Vector2
return Vector2