class_styleboxline.rst 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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/StyleBoxLine.xml.
  6. .. _class_StyleBoxLine:
  7. StyleBoxLine
  8. ============
  9. **Inherits:** :ref:`StyleBox<class_StyleBox>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. :ref:`StyleBox<class_StyleBox>` that displays a single line.
  11. Description
  12. -----------
  13. :ref:`StyleBox<class_StyleBox>` that displays a single line of a given color and thickness. It can be used to draw things like separators.
  14. Properties
  15. ----------
  16. +---------------------------+-----------------------------------------------------------+-----------------------+
  17. | :ref:`Color<class_Color>` | :ref:`color<class_StyleBoxLine_property_color>` | ``Color(0, 0, 0, 1)`` |
  18. +---------------------------+-----------------------------------------------------------+-----------------------+
  19. | :ref:`float<class_float>` | :ref:`grow_begin<class_StyleBoxLine_property_grow_begin>` | ``1.0`` |
  20. +---------------------------+-----------------------------------------------------------+-----------------------+
  21. | :ref:`float<class_float>` | :ref:`grow_end<class_StyleBoxLine_property_grow_end>` | ``1.0`` |
  22. +---------------------------+-----------------------------------------------------------+-----------------------+
  23. | :ref:`int<class_int>` | :ref:`thickness<class_StyleBoxLine_property_thickness>` | ``1`` |
  24. +---------------------------+-----------------------------------------------------------+-----------------------+
  25. | :ref:`bool<class_bool>` | :ref:`vertical<class_StyleBoxLine_property_vertical>` | ``false`` |
  26. +---------------------------+-----------------------------------------------------------+-----------------------+
  27. Property Descriptions
  28. ---------------------
  29. .. _class_StyleBoxLine_property_color:
  30. - :ref:`Color<class_Color>` **color**
  31. +-----------+-----------------------+
  32. | *Default* | ``Color(0, 0, 0, 1)`` |
  33. +-----------+-----------------------+
  34. | *Setter* | set_color(value) |
  35. +-----------+-----------------------+
  36. | *Getter* | get_color() |
  37. +-----------+-----------------------+
  38. The line's color.
  39. ----
  40. .. _class_StyleBoxLine_property_grow_begin:
  41. - :ref:`float<class_float>` **grow_begin**
  42. +-----------+-----------------------+
  43. | *Default* | ``1.0`` |
  44. +-----------+-----------------------+
  45. | *Setter* | set_grow_begin(value) |
  46. +-----------+-----------------------+
  47. | *Getter* | get_grow_begin() |
  48. +-----------+-----------------------+
  49. The number of pixels the line will extend before the ``StyleBoxLine``'s bounds. If set to a negative value, the line will begin inside the ``StyleBoxLine``'s bounds.
  50. ----
  51. .. _class_StyleBoxLine_property_grow_end:
  52. - :ref:`float<class_float>` **grow_end**
  53. +-----------+---------------------+
  54. | *Default* | ``1.0`` |
  55. +-----------+---------------------+
  56. | *Setter* | set_grow_end(value) |
  57. +-----------+---------------------+
  58. | *Getter* | get_grow_end() |
  59. +-----------+---------------------+
  60. The number of pixels the line will extend past the ``StyleBoxLine``'s bounds. If set to a negative value, the line will end inside the ``StyleBoxLine``'s bounds.
  61. ----
  62. .. _class_StyleBoxLine_property_thickness:
  63. - :ref:`int<class_int>` **thickness**
  64. +-----------+----------------------+
  65. | *Default* | ``1`` |
  66. +-----------+----------------------+
  67. | *Setter* | set_thickness(value) |
  68. +-----------+----------------------+
  69. | *Getter* | get_thickness() |
  70. +-----------+----------------------+
  71. The line's thickness in pixels.
  72. ----
  73. .. _class_StyleBoxLine_property_vertical:
  74. - :ref:`bool<class_bool>` **vertical**
  75. +-----------+---------------------+
  76. | *Default* | ``false`` |
  77. +-----------+---------------------+
  78. | *Setter* | set_vertical(value) |
  79. +-----------+---------------------+
  80. | *Getter* | is_vertical() |
  81. +-----------+---------------------+
  82. If ``true``, the line will be vertical. If ``false``, the line will be horizontal.
  83. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  84. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  85. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  86. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  87. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  88. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`