2020-08-12 13:49:10 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name= "TextServerManager" inherits= "Object" version= "4.0" >
<brief_description >
Manager for the font and complex text layout servers.
</brief_description>
<description >
[TextServerManager] is the API backend for loading, enumeration and switching [TextServer]s.
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.
</description>
<tutorials >
</tutorials>
<methods >
<method name= "find_interface" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "TextServer" />
<argument index= "0" name= "name" type= "String" />
2020-08-12 13:49:10 +02:00
<description >
Finds an interface by its name.
</description>
</method>
<method name= "get_interface" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "TextServer" />
<argument index= "0" name= "index" type= "int" />
2020-08-12 13:49:10 +02:00
<description >
Returns the interface registered at a given index.
</description>
</method>
<method name= "get_interface_count" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
2020-08-12 13:49:10 +02:00
<description >
Returns the number of interfaces currently registered.
</description>
</method>
<method name= "get_interface_features" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "index" type= "int" />
2020-08-12 13:49:10 +02:00
<description >
Returns text server supported features (binary OR).
</description>
</method>
<method name= "get_interface_name" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "String" />
<argument index= "0" name= "index" type= "int" />
2020-08-12 13:49:10 +02:00
<description >
Returns the interface name registered at a given index.
</description>
</method>
<method name= "get_interfaces" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Array" />
2020-08-12 13:49:10 +02:00
<description >
Returns a list of available interfaces the index and name of each interface.
</description>
</method>
<method name= "get_primary_interface" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "TextServer" />
2020-08-12 13:49:10 +02:00
<description >
Returns the primary [TextServer] interface.
</description>
</method>
<method name= "set_primary_interface" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
<argument index= "0" name= "index" type= "int" />
2020-08-12 13:49:10 +02:00
<description >
Sets (and initializes it if required) interface registered at a given index as the primary. Invalidates all references to the fonts and text buffers.
</description>
</method>
</methods>
</class>