Table of Contents

Interface IIcyHost

Namespace
Icy.UI
Assembly
IcyUI.dll

IcyUI running inside a game: its configuration and the canvases the engine draws every frame. Returned by each engine integration's UseIcyUI().

public interface IIcyHost
Extension Methods

Remarks

Engine-independent game code can take an IIcyHost; the engine's own host type adds engine-specific settings.

A canvas you render yourself with Render() (for example into a render target) must not be in Canvases, or it's drawn twice.

Properties

Canvases

Gets the canvases drawn every frame, in order: a later canvas draws on top of an earlier one.

IList<Canvas> Canvases { get; }

Property Value

IList<Canvas>

Configuration

Gets the configuration every element in this game is created with.

IcyConfiguration Configuration { get; }

Property Value

IcyConfiguration

MainCanvas

Gets the canvas UseIcyUI() created, with input enabled; Canvases[0].

Canvas MainCanvas { get; }

Property Value

Canvas