StyleBoxLine

Inherits: StyleBox < Resource < Reference < Object

StyleBox that displays a single line.

Description

StyleBox that displays a single line of a given color and thickness. It can be used to draw things like separators.

Property Descriptions

DefaultColor( 0, 0, 0, 1 )
Setterset_color(value)
Getterget_color()

The line’s color.


Default1.0
Setterset_grow_begin(value)
Getterget_grow_begin()

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.


Default1.0
Setterset_grow_end(value)
Getterget_grow_end()

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.


Default1
Setterset_thickness(value)
Getterget_thickness()

The line’s thickness in pixels.


Defaultfalse
Setterset_vertical(value)
Getteris_vertical()

If true, the line will be vertical. If false, the line will be horizontal.

doradoro's advice! Getters and Setters will be deprecated! Avoid their use!

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:41:25. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.