UISystem Class Reference

Class managing the entire UI Toolkit system. More...

List of all members.

Static Public Member Functions

static void Initialize (GraphicsContext graphics)
 Initializes.
static void Initialize (GraphicsContext graphics, float pixelDensity)
 Initializes.
static void Terminate ()
 Terminates.
static void Update (List< TouchData > touchDataList)
 Updates the entire UI system.
static void Update (List< TouchData > touchDataList, ref GamePadData gamePadData)
 Updates the entire UI system.
static void Update (List< TouchData > touchDataList, ref MotionData motionData)
 Updates the entire UI system.
static void Update (List< TouchData > touchDataList, ref GamePadData gamePadData, ref MotionData motionData)
 Updates the entire UI system.
static Widget FindHitWidget (Vector2 screenPoint)
 Searches for the widget that exists at the specified coordinates.
static void CancelKeyEvents ()
 Cancel all current key events.
static void Render ()
 Renders the UI.
static void SetScene (Scene newScene)
 Changes the scene.
static void SetScene (Scene newScene, Transition transition)
 Changes the scene.
static void PushScene (Scene newScene)
 Pushes the current scene to the scene stack and changes the scene.
static void PopScene ()
 Changes to the scene that was last pushed to the scene stack.
static ShaderProgram GetShaderProgram (ShaderType type)
 Obtains the shader program.
static void ResetStateAll ()
 Resets the states of all widgets.

Properties

static Widget KeyReceiverWidget [get, set]
 Obtains and sets the widget receiving a key-input event.
static GamePadData GamePadData [get, set]
 Obtains the gamepad information.
static MotionData MotionData [get, set]
 Obtains motion sensor information.
static int FramebufferWidth [get, set]
 Obtains the width of the frame buffer.
static int FramebufferHeight [get, set]
 Obtains the height of the frame buffer.
static float PixelDensity [get]
 Obtains the pixel density.
static Scene CurrentScene [get, set]
 Obtains the currently displayed scene.
static Transition ScenePushTransition [get, set]
 Obtains and sets the transition when a scene is pushed.
static Transition ScenePopTransition [get, set]
 Obtains and sets the transition when a scene pops.
static GraphicsContext GraphicsContext [get, set]
 Obtains the graphics context.
static Matrix4 ViewProjectionMatrix [get, set]
 Obtains the projection matrix.
static TimeSpan CurrentTime [get, set]
 Obtains the elapsed time of the system.
static float KeyLongPressTime [get, set]
 Obtains and sets the time (ms) from when a key is pressed to when a LongPress key event is issued.
static float KeyRepeatStartTime [get, set]
 Obtains and sets the time (ms) from when a key is pressed to when a Repeat key event is first issued.
static float KeyRepeatIntervalTime [get, set]
 Obtains and sets the interval time (ms) when a Repeat key event is issued.
static float FocusTimeout [get, set]
 Obtains and sets the time (ms) taken to deactivate focus when not operating.
static bool FocusActive [get, set]
 Obtains and sets whether the focus is currently active.
static bool EnabledFocus [get, set]
 Obtains and sets whether to enable the focus feature.
static bool SuppressFocusKeyEvent [get, set]
 Obtains and sets whether to pause the key event distribution of the focus.
static UIColor FocusFilterColor [get, set]
 Obtains and sets the color that multiplies in the focus image.
static BlendMode FocusBlendMode [get, set]
 Obtains and sets the blend mode of the focus image.

Detailed Description

Class managing the entire UI Toolkit system.


Member Function Documentation

static Widget FindHitWidget ( Vector2  screenPoint) [static]

Searches for the widget that exists at the specified coordinates.

Returns:
The found widget. If not found, null.
Parameters:
screenPointCoordinates in the screen coordinate system
static ShaderProgram GetShaderProgram ( ShaderType  type) [static]

Obtains the shader program.

Parameters:
typeType of shader program
Returns:
Shader Program
static void Initialize ( GraphicsContext  graphics) [static]

Initializes.

Parameters:
graphicsGraphics Context
static void Initialize ( GraphicsContext  graphics,
float  pixelDensity 
) [static]

Initializes.

Parameters:
graphicsGraphics Context
pixelDensityPixel density
Exceptions:
ArgumentOutOfRangeExceptionpixelDensity is outside the range of 0.5 to 4.
static void PushScene ( Scene  newScene) [static]

Pushes the current scene to the scene stack and changes the scene.

Parameters:
newSceneNew scene
static void ResetStateAll ( ) [static]

Resets the states of all widgets.

The state of GestureDetector registered to a widget is also reset.

static void SetScene ( Scene  newScene) [static]

Changes the scene.

Parameters:
newSceneNew scene
static void SetScene ( Scene  newScene,
Transition  transition 
) [static]

Changes the scene.

Parameters:
newSceneNew scene
transitionTransition
static void Update ( List< TouchData touchDataList) [static]

Updates the entire UI system.

Parameters:
touchDataListTouch information list
static void Update ( List< TouchData touchDataList,
ref GamePadData  gamePadData 
) [static]

Updates the entire UI system.

Parameters:
touchDataListTouch information list
gamePadDataGamepad information
static void Update ( List< TouchData touchDataList,
ref MotionData  motionData 
) [static]

Updates the entire UI system.

Parameters:
touchDataListTouch information list
motionDataMotion sensor information
static void Update ( List< TouchData touchDataList,
ref GamePadData  gamePadData,
ref MotionData  motionData 
) [static]

Updates the entire UI system.

Parameters:
touchDataListTouch information list
gamePadDataGamepad information
motionDataMotion sensor information

Property Documentation

GraphicsContext GraphicsContext [static, get, set]

Obtains the graphics context.

Returns:
Graphics Context
Widget KeyReceiverWidget [static, get, set]

Obtains and sets the widget receiving a key-input event.

If null is specified, the key event is ignored.