StyleBoxLine.xml 1.4 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="StyleBoxLine" inherits="StyleBox" version="4.0">
  3. <brief_description>
  4. [StyleBox] that displays a single line.
  5. </brief_description>
  6. <description>
  7. [StyleBox] that displays a single line of a given color and thickness. It can be used to draw things like separators.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <members>
  12. <member name="color" type="Color" setter="set_color" getter="get_color" default="Color(0, 0, 0, 1)">
  13. The line's color.
  14. </member>
  15. <member name="grow_begin" type="float" setter="set_grow_begin" getter="get_grow_begin" default="1.0">
  16. 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.
  17. </member>
  18. <member name="grow_end" type="float" setter="set_grow_end" getter="get_grow_end" default="1.0">
  19. 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.
  20. </member>
  21. <member name="thickness" type="int" setter="set_thickness" getter="get_thickness" default="1">
  22. The line's thickness in pixels.
  23. </member>
  24. <member name="vertical" type="bool" setter="set_vertical" getter="is_vertical" default="false">
  25. If [code]true[/code], the line will be vertical. If [code]false[/code], the line will be horizontal.
  26. </member>
  27. </members>
  28. </class>