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
GameComponent
DrawableGameComponent
UIComponent
Implements
IGameComponent
IUpdateable
IDrawable
Inherited Members
DrawableGameComponent.Initialize()
DrawableGameComponent.GraphicsDevice
DrawableGameComponent.DrawOrder
DrawableGameComponent.Visible
DrawableGameComponent.DrawOrderChanged
DrawableGameComponent.VisibleChanged
GameComponent.Dispose()
GameComponent.Game
GameComponent.Enabled
GameComponent.UpdateOrder
GameComponent.EnabledChanged
GameComponent.UpdateOrderChanged

Constructors

UIComponent(Game, UIContext)

public UIComponent(Game game, UIContext context = null)

Parameters

game Game
context UIContext

Properties

Context

public UIContext Context { get; }

Property Value

UIContext

SupportsFocusedTextComposition

Native preedit/candidate placement currently supports editable LineEdit, not TextEdit.

public bool SupportsFocusedTextComposition { get; }

Property Value

bool

SupportsSystemCursor

Whether this runtime can set system cursors with native pointer-window ownership checks.

public bool SupportsSystemCursor { get; }

Property Value

bool

SupportsTextComposition

True only when the runtime has the native composition, atomic-commit and candidate-area APIs.

public bool SupportsTextComposition { get; }

Property Value

bool

Methods

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

Draw(GameTime)

public override void Draw(GameTime gameTime)

Parameters

gameTime GameTime

OnEnabledChanged(object, EventArgs)

protected override void OnEnabledChanged(object sender, EventArgs args)

Parameters

sender object
args EventArgs

OnVisibleChanged(object, EventArgs)

protected override void OnVisibleChanged(object sender, EventArgs args)

Parameters

sender object
args EventArgs

Update(GameTime)

public override void Update(GameTime gameTime)

Parameters

gameTime GameTime