Click or drag to resize
UserInterface Methods

The UserInterface type exposes the following members.

Methods
  NameDescription
Public methodAddEntity
Add an entity to screen.
Public methodClear
Remove all entities from screen.
Public methodDeserialize(Stream)
Deserialize the whole UI from stream. Note: serialization have some limitation and things that will not be included in xml, like even handlers. Please read docs carefuly to know what to expect.
Public methodDeserialize(String)
Deserialize the whole UI from filename. Note: serialization have some limitation and things that will not be included in xml, like even handlers. Please read docs carefuly to know what to expect.
Public methodDispose
Dispose unmanaged resources of this user interface.
Public methodDraw
Draw the UI. This function should be called from your Game 'Draw()' function. Note: if UseRenderTarget is true, this function should be called FIRST in your draw function. If UseRenderTarget is false, this function should be called LAST in your draw function.
Public methodDrawCursor
Draw the cursor.
Public methodDrawMainRenderTarget
Finalize the draw frame and draw all the UI on screen. This function only works if we are in UseRenderTarget mode.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTransformedCursorPos
Get transformed cursoer position for collision detection. If have transform matrix and curser is included in render target, will transform cursor position too. If don't use transform matrix or drawing cursor outside, will not transform cursor position.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInitialize(ContentManager, BuiltinThemes)
Initialize UI manager (mostly load resources and set some defaults).
Public methodStatic memberInitialize(ContentManager, String)
Initialize UI manager (mostly load resources and set some defaults).
Public methodRemoveEntity
Remove an entity from screen.
Public methodSerialize(Stream)
Serialize the whole UI to stream. Note: serialization have some limitation and things that will not be included in xml, like even handlers. Please read docs carefuly to know what to expect.
Public methodSerialize(String)
Serialize the whole UI to filename. Note: serialization have some limitation and things that will not be included in xml, like even handlers. Please read docs carefuly to know what to expect.
Public methodSetCursor(CursorType)
Set cursor style.
Public methodSetCursor(Texture2D, Int32, NullablePoint)
Set cursor graphics from a custom texture.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Update the UI manager. This function should be called from your Game 'Update()' function, as early as possible (eg before you update your game state).
Top
See Also