LiveSphere Class Reference

Spherical widget. More...

Inheritance diagram for LiveSphere:
Widget

List of all members.

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< TouchEventArgsButtonAction
 Handler called when a button action is fired.

Detailed Description

Spherical widget.

It is possible to rotate by flicking.


Member Function Documentation

internal override void OnTouchEvent ( TouchEventCollection  touchEvents) [protected, virtual]

Touch event handler.

Parameters:
touchEventsTouch event

Reimplemented from Widget.

override void OnUpdate ( float  elapsedTime) [protected, virtual]

Update processing.

Parameters:
elapsedTimeElapsed 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.

Parameters:
widthWidth
heightHeight

Reimplemented from Widget.

void Stop ( bool  withAnimate)

Stops the rotation.

Parameters:
withAnimateFlag determining whether to perform a snap animation when stopped

Property Documentation

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.