TextServerManager

package
v0.0.0-...-e9402f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package TextServerManager provides methods for working with TextServerManager object instances.

Index

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

func GetInterfaces() []map[int]string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL