Class UIComponent
- Namespace
- Forma
- Assembly
- Forma.dll
Connects a UIContext to an XNA-compatible Microsoft.Xna.Framework.Game.
public sealed class UIComponent : DrawableGameComponent, IGameComponent, IUpdateable, IDisposable, IDrawable
- Inheritance
-
GameComponentDrawableGameComponentUIComponent
- Implements
-
IGameComponentIUpdateableIDrawable
- Inherited Members
-
DrawableGameComponent.Initialize()DrawableGameComponent.GraphicsDeviceDrawableGameComponent.DrawOrderDrawableGameComponent.VisibleDrawableGameComponent.DrawOrderChangedDrawableGameComponent.VisibleChangedGameComponent.Dispose()GameComponent.GameGameComponent.EnabledGameComponent.UpdateOrderGameComponent.EnabledChangedGameComponent.UpdateOrderChanged
Constructors
UIComponent(Game, UIContext)
public UIComponent(Game game, UIContext context = null)
Parameters
gameGamecontextUIContext
Properties
Context
public UIContext Context { get; }
Property Value
SupportsFocusedTextComposition
Native preedit/candidate placement currently supports editable LineEdit, not TextEdit.
public bool SupportsFocusedTextComposition { get; }
Property Value
SupportsSystemCursor
Whether this runtime can set system cursors with native pointer-window ownership checks.
public bool SupportsSystemCursor { get; }
Property Value
SupportsTextComposition
True only when the runtime has the native composition, atomic-commit and candidate-area APIs.
public bool SupportsTextComposition { get; }
Property Value
Methods
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposingbool
Draw(GameTime)
public override void Draw(GameTime gameTime)
Parameters
gameTimeGameTime
OnEnabledChanged(object, EventArgs)
protected override void OnEnabledChanged(object sender, EventArgs args)
Parameters
OnVisibleChanged(object, EventArgs)
protected override void OnVisibleChanged(object sender, EventArgs args)
Parameters
Update(GameTime)
public override void Update(GameTime gameTime)
Parameters
gameTimeGameTime