Documentation
¶
Overview ¶
Package TextServerManager provides methods for working with TextServerManager object instances.
Index ¶
- func AddInterface(intf [1]gdclass.TextServer)
- func Advanced() class
- func FindInterface(name string) [1]gdclass.TextServer
- func GetInterface(idx int) [1]gdclass.TextServer
- func GetInterfaceCount() int
- func GetInterfaces() []map[int]string
- func GetPrimaryInterface() [1]gdclass.TextServer
- func OnInterfaceAdded(cb func(interface_name string))
- func OnInterfaceRemoved(cb func(interface_name string))
- func RemoveInterface(intf [1]gdclass.TextServer)
- func SetPrimaryInterface(index [1]gdclass.TextServer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInterface ¶
func AddInterface(intf [1]gdclass.TextServer)
Registers a [TextServer] interface.
func Advanced ¶
func Advanced() class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
func FindInterface ¶
func FindInterface(name string) [1]gdclass.TextServer
Finds an interface by its [param name].
func GetInterface ¶
func GetInterface(idx int) [1]gdclass.TextServer
Returns the interface registered at a given index.
func GetInterfaceCount ¶
func GetInterfaceCount() int
Returns the number of interfaces currently registered.
func GetInterfaces ¶
Returns a list of available interfaces, with the index and name of each interface.
func GetPrimaryInterface ¶
func GetPrimaryInterface() [1]gdclass.TextServer
Returns the primary [TextServer] interface currently in use.
func OnInterfaceAdded ¶
func OnInterfaceAdded(cb func(interface_name string))
func OnInterfaceRemoved ¶
func OnInterfaceRemoved(cb func(interface_name string))
func RemoveInterface ¶
func RemoveInterface(intf [1]gdclass.TextServer)
Removes an interface. All fonts and shaped text caches should be freed before removing an interface.
func SetPrimaryInterface ¶
func SetPrimaryInterface(index [1]gdclass.TextServer)
Sets the primary [TextServer] interface.
Types ¶
This section is empty.