StyleBoxLine Properties |
The StyleBoxLine type exposes the following members.
Name | Description | |
---|---|---|
![]() | Color | The line's color. |
![]() | ContentMarginBottom | The bottom margin for the contents of this style box. Increasing this value reduces the space available to the contents from the bottom. If this value is negative, it is ignored and a child-specific margin is used instead. For example for StyleBoxFlat the border thickness (if any) is used instead. It is up to the code using this style box to decide what these contents are: for example, a Button respects this content margin for the textual contents of the button. GetMargin(Margin) should be used to fetch this value as consumer instead of reading these properties directly. This is because it correctly respects negative values and the fallback mentioned above. |
![]() | ContentMarginLeft | The left margin for the contents of this style box.Increasing this value reduces the space available to the contents from the left. Refer to ContentMarginBottom for extra considerations. |
![]() | ContentMarginRight | The right margin for the contents of this style box. Increasing this value reduces the space available to the contents from the right. Refer to ContentMarginBottom for extra considerations. |
![]() | ContentMarginTop | The top margin for the contents of this style box. Increasing this value reduces the space available to the contents from the top. Refer to ContentMarginBottom for extra considerations. |
![]() | DynamicObject |
Gets a new DynamicGodotObject associated with this instance.
(Inherited from Object.) |
![]() | GrowBegin | 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. |
![]() | GrowEnd | 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. |
![]() | NativeInstance | (Inherited from Object.) |
![]() | ResourceLocalToScene | If true, the resource will be made unique in each instance of its local scene. It can thus be modified in a scene instance without impacting other instances of that same scene. |
![]() | ResourceName | The name of the resource. This is an optional identifier. If ResourceName is not empty, its value will be displayed to represent the current resource in the editor inspector. For built-in scripts, the ResourceName will be displayed as the tab name in the script editor. |
![]() | ResourcePath | The path to the resource. In case it has its own file, it will return its filepath. If it's tied to the scene, it will return the scene's path, followed by the resource's index. |
![]() | Thickness | The line's thickness in pixels. |
![]() | Vertical | If true, the line will be vertical. If false, the line will be horizontal. |