Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
StyleBoxLine¶
继承: StyleBox < Resource < RefCounted < Object
显示一条线的 StyleBox,可以给定颜色和粗细。
描述¶
显示一条线的 StyleBox,可以给定颜色和粗细。可以是横线也可以是竖线。可用作分隔符。
属性¶
|
||
|
||
|
||
|
||
|
属性说明¶
Color color = Color(0, 0, 0, 1)
线的颜色。
float grow_begin = 1.0
线将在 StyleBoxLine 的边界之前延伸的像素数。如果设置为负值,则该线将从 StyleBoxLine 的边界内开始。
float grow_end = 1.0
线将超出 StyleBoxLine 边界的像素数。如果设置为负值,则该线将在 StyleBoxLine 的边界内结束。
int thickness = 1
线条的粗细(以像素为单位)。
bool vertical = false
如果为 true
,则该线将是垂直的。如果 false
,该线将是水平的。