StyleBoxLine.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="StyleBoxLine" inherits="StyleBox" version="3.2">
  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. <methods>
  12. </methods>
  13. <members>
  14. <member name="color" type="Color" setter="set_color" getter="get_color" default="Color( 0, 0, 0, 1 )">
  15. The line's color.
  16. </member>
  17. <member name="grow_begin" type="float" setter="set_grow_begin" getter="get_grow_begin" default="1.0">
  18. 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.
  19. </member>
  20. <member name="grow_end" type="float" setter="set_grow_end" getter="get_grow_end" default="1.0">
  21. 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.
  22. </member>
  23. <member name="thickness" type="int" setter="set_thickness" getter="get_thickness" default="1">
  24. The line's thickness in pixels.
  25. </member>
  26. <member name="vertical" type="bool" setter="set_vertical" getter="is_vertical" default="false">
  27. If [code]true[/code], the line will be vertical. If [code]false[/code], the line will be horizontal.
  28. </member>
  29. </members>
  30. <constants>
  31. </constants>
  32. </class>