ReferenceRect
A rectangle hint for designing UIs.
ReferenceRect.swift:17class ReferenceRect
A rectangle box that displays only a colored border around its rectangle. It is used to visualize the extents of a Control
.
Superclasses
class Control
Base class for all GUI controls. Adapts its position and size based on its parent control.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
Instance members
var borderColor: Color
Sets the border color of the
ReferenceRect
.var borderWidth: Double
Sets the border width of the
ReferenceRect
. The border grows both inwards and outwards with respect to the rectangle box.var editorOnly: Bool
If
true
, theReferenceRect
will only be visible while in editor. Otherwise,ReferenceRect
will be visible in the running project.