class_textservermanager.rst 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/TextServerManager.xml.
  6. .. _class_TextServerManager:
  7. TextServerManager
  8. =================
  9. **Inherits:** :ref:`Object<class_Object>`
  10. A singleton for managing :ref:`TextServer<class_TextServer>` implementations.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. **TextServerManager** is the API backend for loading, enumerating, and switching :ref:`TextServer<class_TextServer>`\ s.
  15. \ **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.
  16. .. rst-class:: classref-reftable-group
  17. Methods
  18. -------
  19. .. table::
  20. :widths: auto
  21. +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  22. | |void| | :ref:`add_interface<class_TextServerManager_method_add_interface>`\ (\ interface\: :ref:`TextServer<class_TextServer>`\ ) |
  23. +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`TextServer<class_TextServer>` | :ref:`find_interface<class_TextServerManager_method_find_interface>`\ (\ name\: :ref:`String<class_String>`\ ) |const| |
  25. +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`TextServer<class_TextServer>` | :ref:`get_interface<class_TextServerManager_method_get_interface>`\ (\ idx\: :ref:`int<class_int>`\ ) |const| |
  27. +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`int<class_int>` | :ref:`get_interface_count<class_TextServerManager_method_get_interface_count>`\ (\ ) |const| |
  29. +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] | :ref:`get_interfaces<class_TextServerManager_method_get_interfaces>`\ (\ ) |const| |
  31. +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`TextServer<class_TextServer>` | :ref:`get_primary_interface<class_TextServerManager_method_get_primary_interface>`\ (\ ) |const| |
  33. +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  34. | |void| | :ref:`remove_interface<class_TextServerManager_method_remove_interface>`\ (\ interface\: :ref:`TextServer<class_TextServer>`\ ) |
  35. +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  36. | |void| | :ref:`set_primary_interface<class_TextServerManager_method_set_primary_interface>`\ (\ index\: :ref:`TextServer<class_TextServer>`\ ) |
  37. +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  38. .. rst-class:: classref-section-separator
  39. ----
  40. .. rst-class:: classref-descriptions-group
  41. Signals
  42. -------
  43. .. _class_TextServerManager_signal_interface_added:
  44. .. rst-class:: classref-signal
  45. **interface_added**\ (\ interface_name\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_TextServerManager_signal_interface_added>`
  46. Emitted when a new interface has been added.
  47. .. rst-class:: classref-item-separator
  48. ----
  49. .. _class_TextServerManager_signal_interface_removed:
  50. .. rst-class:: classref-signal
  51. **interface_removed**\ (\ interface_name\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_TextServerManager_signal_interface_removed>`
  52. Emitted when an interface is removed.
  53. .. rst-class:: classref-section-separator
  54. ----
  55. .. rst-class:: classref-descriptions-group
  56. Method Descriptions
  57. -------------------
  58. .. _class_TextServerManager_method_add_interface:
  59. .. rst-class:: classref-method
  60. |void| **add_interface**\ (\ interface\: :ref:`TextServer<class_TextServer>`\ ) :ref:`🔗<class_TextServerManager_method_add_interface>`
  61. Registers a :ref:`TextServer<class_TextServer>` interface.
  62. .. rst-class:: classref-item-separator
  63. ----
  64. .. _class_TextServerManager_method_find_interface:
  65. .. rst-class:: classref-method
  66. :ref:`TextServer<class_TextServer>` **find_interface**\ (\ name\: :ref:`String<class_String>`\ ) |const| :ref:`🔗<class_TextServerManager_method_find_interface>`
  67. Finds an interface by its ``name``.
  68. .. rst-class:: classref-item-separator
  69. ----
  70. .. _class_TextServerManager_method_get_interface:
  71. .. rst-class:: classref-method
  72. :ref:`TextServer<class_TextServer>` **get_interface**\ (\ idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_TextServerManager_method_get_interface>`
  73. Returns the interface registered at a given index.
  74. .. rst-class:: classref-item-separator
  75. ----
  76. .. _class_TextServerManager_method_get_interface_count:
  77. .. rst-class:: classref-method
  78. :ref:`int<class_int>` **get_interface_count**\ (\ ) |const| :ref:`🔗<class_TextServerManager_method_get_interface_count>`
  79. Returns the number of interfaces currently registered.
  80. .. rst-class:: classref-item-separator
  81. ----
  82. .. _class_TextServerManager_method_get_interfaces:
  83. .. rst-class:: classref-method
  84. :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] **get_interfaces**\ (\ ) |const| :ref:`🔗<class_TextServerManager_method_get_interfaces>`
  85. Returns a list of available interfaces, with the index and name of each interface.
  86. .. rst-class:: classref-item-separator
  87. ----
  88. .. _class_TextServerManager_method_get_primary_interface:
  89. .. rst-class:: classref-method
  90. :ref:`TextServer<class_TextServer>` **get_primary_interface**\ (\ ) |const| :ref:`🔗<class_TextServerManager_method_get_primary_interface>`
  91. Returns the primary :ref:`TextServer<class_TextServer>` interface currently in use.
  92. .. rst-class:: classref-item-separator
  93. ----
  94. .. _class_TextServerManager_method_remove_interface:
  95. .. rst-class:: classref-method
  96. |void| **remove_interface**\ (\ interface\: :ref:`TextServer<class_TextServer>`\ ) :ref:`🔗<class_TextServerManager_method_remove_interface>`
  97. Removes an interface. All fonts and shaped text caches should be freed before removing an interface.
  98. .. rst-class:: classref-item-separator
  99. ----
  100. .. _class_TextServerManager_method_set_primary_interface:
  101. .. rst-class:: classref-method
  102. |void| **set_primary_interface**\ (\ index\: :ref:`TextServer<class_TextServer>`\ ) :ref:`🔗<class_TextServerManager_method_set_primary_interface>`
  103. Sets the primary :ref:`TextServer<class_TextServer>` interface.
  104. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  105. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  106. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  107. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  108. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  109. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  110. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  111. .. |void| replace:: :abbr:`void (No return value.)`