UserInterface Methods

GeonBit.UI

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 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 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