TextServerManager
A singleton for managing TextServer implementations.
A singleton for managing TextServer implementations.
TextServerManager is the API backend for loading, enumerating, and switching TextServers.
Note: Switching text server at runtime is possible, but will invalidate all fonts and text buffers. Make sure to unload all controls, fonts, and themes before doing so.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Properties1
SingletonProperty
public static TextServerManagerInstance Singleton { get; }Methods8
AddInterfacevoid
public static void AddInterface(TextServer @interface);Registers a TextServer interface.
| Name | Type | Default |
|---|---|---|
interface | TextServer | — |
FindInterfaceTextServer
public static TextServer FindInterface(string name);Finds an interface by its name.
| Name | Type | Default |
|---|---|---|
name | string | — |
TextServerGetInterfaceTextServer
public static TextServer GetInterface(int idx);Returns the interface registered at a given index.
| Name | Type | Default |
|---|---|---|
idx | int | — |
TextServerGetInterfaceCountint
public static int GetInterfaceCount();Returns the number of interfaces currently registered.
intGetInterfacesReckfell.Collections.Array<Reckfell.Collections.Dictionary>
public static Reckfell.Collections.Array<Reckfell.Collections.Dictionary> GetInterfaces();Returns a list of available interfaces, with the index and name of each interface.
Reckfell.Collections.Array<Reckfell.Collections.Dictionary>GetPrimaryInterfaceTextServer
public static TextServer GetPrimaryInterface();Returns the primary TextServer interface currently in use.
TextServerRemoveInterfacevoid
public static void RemoveInterface(TextServer @interface);Removes an interface. All fonts and shaped text caches should be freed before removing an interface.
| Name | Type | Default |
|---|---|---|
interface | TextServer | — |
SetPrimaryInterfacevoid
public static void SetPrimaryInterface(TextServer index);Sets the primary TextServer interface.
| Name | Type | Default |
|---|---|---|
index | TextServer | — |
Signals and events2
InterfaceAddedEvent
public static event TextServerManager.InterfaceAddedEventHandler InterfaceAdded;Emitted when a new interface has been added.
| Name | Type | Default |
|---|---|---|
interfaceName | StringName | — |
InterfaceRemovedEvent
public static event TextServerManager.InterfaceRemovedEventHandler InterfaceRemoved;Emitted when an interface is removed.
| Name | Type | Default |
|---|---|---|
interfaceName | StringName | — |