Spherical widget. More...
Public Member Functions | |
LiveSphere () | |
Constructor. | |
override void | SetSize (float width, float height) |
Sets the size. | |
void | Start () |
Rotates. | |
void | Stop () |
Stops the rotation. | |
void | Stop (bool withAnimate) |
Stops the rotation. | |
Protected Member Functions | |
internal override void | OnTouchEvent (TouchEventCollection touchEvents) |
Touch event handler. | |
internal override void | OnResetState () |
Status reset handler. | |
override void | OnUpdate (float elapsedTime) |
Update processing. | |
Properties | |
int | TurnCount [get, set] |
Obtains and sets the number of rotations. | |
float | ZAxis [get, set] |
Obtains and sets the angle (radian) of the Z-axis rotation. | |
float | YAxis [get, set] |
Obtains and sets the angle (radian) of the Y-axis rotation. | |
bool | TouchEnabled [get, set] |
Obtains and sets whether to enable touch operations (drag, flick). | |
bool | ToggleEnabled [get, set] |
Obtains and sets whether to enable the toggle operation. | |
override float | Width [get, set] |
Obtains and sets the width. | |
override float | Height [get, set] |
Obtains and sets the height. | |
ImageAsset | Image [get, set] |
Obtains and sets the image. | |
bool | FrontFace [get] |
Obtains whether the front of the sphere is displayed. | |
Events | |
EventHandler< TouchEventArgs > | ButtonAction |
Handler called when a button action is fired. |
Spherical widget.
It is possible to rotate by flicking.
internal override void OnTouchEvent | ( | TouchEventCollection | touchEvents | ) | [protected, virtual] |
override void OnUpdate | ( | float | elapsedTime | ) | [protected, virtual] |
Update processing.
elapsedTime | Elapsed time from previous update (ms) |
Reimplemented from Widget.
override void SetSize | ( | float | width, |
float | height | ||
) | [virtual] |
Sets the size.
The sphere diameter is a value of the smaller Width or Height, and is displayed in the center.
width | Width |
height | Height |
Reimplemented from Widget.
void Stop | ( | bool | withAnimate | ) |
Stops the rotation.
withAnimate | Flag determining whether to perform a snap animation when stopped |
override float Height [get, set] |
Obtains and sets the height.
The sphere diameter is a value of the smaller Width or Height, and is displayed in the center.
Reimplemented from Widget.
int TurnCount [get, set] |
Obtains and sets the number of rotations.
(Half rotation = 1)
override float Width [get, set] |
Obtains and sets the width.
The sphere diameter is a value of the smaller Width or Height, and is displayed in the center.
Reimplemented from Widget.