class_labelsettings.rst 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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/LabelSettings.xml.
  6. .. _class_LabelSettings:
  7. LabelSettings
  8. =============
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Properties
  11. ----------
  12. +-------------------------------+------------------------------------------------------------------+-----------------------------------+
  13. | :ref:`Font<class_Font>` | :ref:`font<class_LabelSettings_property_font>` | |
  14. +-------------------------------+------------------------------------------------------------------+-----------------------------------+
  15. | :ref:`Color<class_Color>` | :ref:`font_color<class_LabelSettings_property_font_color>` | ``Color(0.875, 0.875, 0.875, 1)`` |
  16. +-------------------------------+------------------------------------------------------------------+-----------------------------------+
  17. | :ref:`int<class_int>` | :ref:`font_size<class_LabelSettings_property_font_size>` | ``16`` |
  18. +-------------------------------+------------------------------------------------------------------+-----------------------------------+
  19. | :ref:`float<class_float>` | :ref:`line_spacing<class_LabelSettings_property_line_spacing>` | ``0.0`` |
  20. +-------------------------------+------------------------------------------------------------------+-----------------------------------+
  21. | :ref:`Color<class_Color>` | :ref:`outline_color<class_LabelSettings_property_outline_color>` | ``Color(1, 1, 1, 1)`` |
  22. +-------------------------------+------------------------------------------------------------------+-----------------------------------+
  23. | :ref:`int<class_int>` | :ref:`outline_size<class_LabelSettings_property_outline_size>` | ``0`` |
  24. +-------------------------------+------------------------------------------------------------------+-----------------------------------+
  25. | :ref:`Color<class_Color>` | :ref:`shadow_color<class_LabelSettings_property_shadow_color>` | ``Color(1, 1, 1, 1)`` |
  26. +-------------------------------+------------------------------------------------------------------+-----------------------------------+
  27. | :ref:`Vector2<class_Vector2>` | :ref:`shadow_offset<class_LabelSettings_property_shadow_offset>` | ``Vector2(1, 1)`` |
  28. +-------------------------------+------------------------------------------------------------------+-----------------------------------+
  29. | :ref:`int<class_int>` | :ref:`shadow_size<class_LabelSettings_property_shadow_size>` | ``0`` |
  30. +-------------------------------+------------------------------------------------------------------+-----------------------------------+
  31. Property Descriptions
  32. ---------------------
  33. .. _class_LabelSettings_property_font:
  34. - :ref:`Font<class_Font>` **font**
  35. +----------+-----------------+
  36. | *Setter* | set_font(value) |
  37. +----------+-----------------+
  38. | *Getter* | get_font() |
  39. +----------+-----------------+
  40. ----
  41. .. _class_LabelSettings_property_font_color:
  42. - :ref:`Color<class_Color>` **font_color**
  43. +-----------+-----------------------------------+
  44. | *Default* | ``Color(0.875, 0.875, 0.875, 1)`` |
  45. +-----------+-----------------------------------+
  46. | *Setter* | set_font_color(value) |
  47. +-----------+-----------------------------------+
  48. | *Getter* | get_font_color() |
  49. +-----------+-----------------------------------+
  50. ----
  51. .. _class_LabelSettings_property_font_size:
  52. - :ref:`int<class_int>` **font_size**
  53. +-----------+----------------------+
  54. | *Default* | ``16`` |
  55. +-----------+----------------------+
  56. | *Setter* | set_font_size(value) |
  57. +-----------+----------------------+
  58. | *Getter* | get_font_size() |
  59. +-----------+----------------------+
  60. ----
  61. .. _class_LabelSettings_property_line_spacing:
  62. - :ref:`float<class_float>` **line_spacing**
  63. +-----------+-------------------------+
  64. | *Default* | ``0.0`` |
  65. +-----------+-------------------------+
  66. | *Setter* | set_line_spacing(value) |
  67. +-----------+-------------------------+
  68. | *Getter* | get_line_spacing() |
  69. +-----------+-------------------------+
  70. ----
  71. .. _class_LabelSettings_property_outline_color:
  72. - :ref:`Color<class_Color>` **outline_color**
  73. +-----------+--------------------------+
  74. | *Default* | ``Color(1, 1, 1, 1)`` |
  75. +-----------+--------------------------+
  76. | *Setter* | set_outline_color(value) |
  77. +-----------+--------------------------+
  78. | *Getter* | get_outline_color() |
  79. +-----------+--------------------------+
  80. ----
  81. .. _class_LabelSettings_property_outline_size:
  82. - :ref:`int<class_int>` **outline_size**
  83. +-----------+-------------------------+
  84. | *Default* | ``0`` |
  85. +-----------+-------------------------+
  86. | *Setter* | set_outline_size(value) |
  87. +-----------+-------------------------+
  88. | *Getter* | get_outline_size() |
  89. +-----------+-------------------------+
  90. ----
  91. .. _class_LabelSettings_property_shadow_color:
  92. - :ref:`Color<class_Color>` **shadow_color**
  93. +-----------+-------------------------+
  94. | *Default* | ``Color(1, 1, 1, 1)`` |
  95. +-----------+-------------------------+
  96. | *Setter* | set_shadow_color(value) |
  97. +-----------+-------------------------+
  98. | *Getter* | get_shadow_color() |
  99. +-----------+-------------------------+
  100. ----
  101. .. _class_LabelSettings_property_shadow_offset:
  102. - :ref:`Vector2<class_Vector2>` **shadow_offset**
  103. +-----------+--------------------------+
  104. | *Default* | ``Vector2(1, 1)`` |
  105. +-----------+--------------------------+
  106. | *Setter* | set_shadow_offset(value) |
  107. +-----------+--------------------------+
  108. | *Getter* | get_shadow_offset() |
  109. +-----------+--------------------------+
  110. ----
  111. .. _class_LabelSettings_property_shadow_size:
  112. - :ref:`int<class_int>` **shadow_size**
  113. +-----------+------------------------+
  114. | *Default* | ``0`` |
  115. +-----------+------------------------+
  116. | *Setter* | set_shadow_size(value) |
  117. +-----------+------------------------+
  118. | *Getter* | get_shadow_size() |
  119. +-----------+------------------------+
  120. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  121. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  122. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  123. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  124. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  125. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`