C# Class CSharpGL.UICursor

opengl UI for Cursor
Inheritance: UIRenderer
Afficher le fichier Open project: bitzhuwei/CSharpGL Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
DoRender ( RenderEventArgs arg ) : void

Method Details

CreateDefault() public static méthode

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

DoRender() protected méthode

protected DoRender ( RenderEventArgs arg ) : void
arg RenderEventArgs
Résultat void

UICursor() public méthode

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
Résultat System

UpdatePosition() public méthode

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