Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

Separator

继承: Control < CanvasItem < Node < Object

派生: HSeparator, VSeparator

分隔线的抽象基类。

描述

分隔线的抽象基类,用于分隔其他控件。Separator 只提供视觉上的分隔,通常用 StyleBoxLine 绘制。

主题属性

int

separation

0

StyleBox

separator


主题属性说明

int separation = 0

分隔器所覆盖区域的大小。其作用类似于最小宽度/高度。


StyleBox separator

分隔线的样式。与 StyleBoxLine 一起使用效果最好(请记住为 VSeparator 启用 StyleBoxLine.vertical)。