메소드 | 설명 | |
---|---|---|
AddDelayedDelete ( |
Adds given control to the delete queue and detaches it from canvas. Don't call from Dispose, it modifies child list.
|
|
Canvas ( Skins skin ) : System |
Initializes a new instance of the Canvas class.
|
|
Dispose ( ) : void | ||
GetCanvas ( ) : |
||
Input_Character ( char chr ) : bool |
Handles keyboard events. Called from Input subsystems.
|
|
Input_Key ( Keys key, bool down ) : bool |
Handles keyboard events. Called from Input subsystems.
|
|
Input_MouseButton ( int button, bool down ) : bool |
Handles mouse button events. Called from Input subsystems.
|
|
Input_MouseMoved ( int x, int y, int dx, int dy ) : bool |
Handles mouse movement events. Called from Input subsystems.
|
|
Input_MouseWheel ( int val ) : bool |
Handles the mouse wheel events. Called from Input subsystems.
|
|
Redraw ( ) : void |
Re-renders the control, invalidates cached texture.
|
|
RenderCanvas ( ) : void |
Renders the canvas. Call in your rendering loop.
|
메소드 | 설명 | |
---|---|---|
Initialize ( ) : void |
Additional initialization (which is sometimes not appropriate in the constructor)
|
|
OnBoundsChanged ( Rectangle oldBounds ) : void |
Handler invoked when control's bounds change.
|
|
Render ( Skins skin ) : void |
Renders the control using specified skin.
|
메소드 | 설명 | |
---|---|---|
ProcessDelayedDeletes ( ) : void | ||
Update ( ) : void |
Processes input and layout. Also purges delayed delete queue.
|
public AddDelayedDelete ( |
||
control | Control to delete. | |
리턴 | void |
public Input_MouseButton ( int button, bool down ) : bool | ||
button | int | |
down | bool | |
리턴 | bool |
public Input_MouseMoved ( int x, int y, int dx, int dy ) : bool | ||
x | int | |
y | int | |
dx | int | |
dy | int | |
리턴 | bool |
protected OnBoundsChanged ( Rectangle oldBounds ) : void | ||
oldBounds | Rectangle | Old bounds. |
리턴 | void |