C# Class CSharpGL.UICursor

opengl UI for Cursor
Inheritance: UIRenderer
Show file Open project: bitzhuwei/CSharpGL Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
CreateDefault ( ) : UICursor

crates default cursor. Note: put this as the last one of SceneRootUI's children.

UICursor ( PointF focalPoint, Size size, string cursorBitmap = "" ) : System

opengl UI for Cursor. Note: put this as the last one of SceneRootUI's children.

UpdatePosition ( Point mousePosition ) : void

update cursor's position before every rendering.

Protected Methods

Method Description
DoRender ( RenderEventArgs arg ) : void

Method Details

CreateDefault() public static method

crates default cursor. Note: put this as the last one of SceneRootUI's children.
public static CreateDefault ( ) : UICursor
return UICursor

DoRender() protected method

protected DoRender ( RenderEventArgs arg ) : void
arg RenderEventArgs
return void

UICursor() public method

opengl UI for Cursor. Note: put this as the last one of SceneRootUI's children.
public UICursor ( PointF focalPoint, Size size, string cursorBitmap = "" ) : System
focalPoint System.Drawing.PointF in percentage(0.00 ~ 1.00)..X ranges from 0(left) to 1(right). .Y ranges from 0(bottom) to 1(top).
size System.Drawing.Size
cursorBitmap string
return System

UpdatePosition() public method

update cursor's position before every rendering.
public UpdatePosition ( Point mousePosition ) : void
mousePosition Point
return void