Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
VisibilityMode
TouchScreenButton.swift:24enum VisibilityMode
Cases
case always
Always visible.
case touchscreenOnly
Visible on touch screens only.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (13) members.
Type members
Instance members
var action: String
The button’s action. Actions can be handled with
InputEventAction
.var bitmask: BitMap?
The button’s bitmask.
var passbyPress: Bool
If
true
, the [signal pressed] and [signal released] signals are emitted whenever a pressed finger goes in and out of the button, even if the pressure started outside the active area of the button.var pressed: SimpleSignal
Emitted when the button is pressed (down).
var released: SimpleSignal
Emitted when the button is released (up).
var shape: Shape2D?
The button’s shape.
var shapeCentered: Bool
If
true
, the button’s shape is centered in the provided texture. If no texture is used, this property has no effect.var shapeVisible: Bool
If
true
, the button’s shape is visible in the editor.var textureNormal: Texture2D?
The button’s texture for the normal state.
var texturePressed: Texture2D?
The button’s texture for the pressed state.
var visibilityMode: TouchScreenButton.VisibilityMode
The button’s visibility mode. See
VisibilityMode
for possible values.func isPressed(
) -> Bool Returns
true
if this button is currently pressed.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
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 RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.