RevealerRef

public struct RevealerRef : RevealerProtocol, GWeakCapturing

A GtkRevealer animates the transition of its child from invisible to visible.

The style of transition can be controlled with [methodGtk.Revealer.set_transition_type].

These animations respect the [propertyGtk.Settings:gtk-enable-animations] setting.

CSS nodes

GtkRevealer has a single CSS node with name revealer. When styling GtkRevealer using CSS, remember that it only hides its contents, not itself. That means applied margin, padding and borders will be visible even when the [propertyGtk.Revealer:reveal-child] property is set to false.

Accessibility

GtkRevealer uses the GTK_ACCESSIBLE_ROLE_GROUP role.

The child of GtkRevealer, if set, is always available in the accessibility tree, regardless of the state of the revealer widget.

The RevealerRef type acts as a lightweight Swift reference to an underlying GtkRevealer instance. It exposes methods that can operate on this data type through RevealerProtocol conformance. Use RevealerRef only as an unowned reference to an existing GtkRevealer instance.

  • ptr
    Untyped pointer to the underlying `GtkRevealer` instance.
    

    For type-safe access, use the generated, typed pointer revealer_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

Revealer Class

  • Designated initialiser from the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafeMutablePointer<GtkRevealer>)
  • Designated initialiser from a constant pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafePointer<GtkRevealer>)
  • Conditional initialiser from an optional pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafeMutablePointer<GtkRevealer>?)
  • Conditional initialiser from an optional, non-mutable pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafePointer<GtkRevealer>?)
  • Conditional initialiser from an optional gpointer

    Declaration

    Swift

    @inlinable
    init!(gpointer g: gpointer?)
  • Conditional initialiser from an optional, non-mutable gconstpointer

    Declaration

    Swift

    @inlinable
    init!(gconstpointer g: gconstpointer?)
  • Reference intialiser for a related type that implements RevealerProtocol

    Declaration

    Swift

    @inlinable
    init<T>(_ other: T) where T : RevealerProtocol
  • This factory is syntactic sugar for setting weak pointers wrapped in GWeak<T>

    Declaration

    Swift

    @inlinable
    static func unowned<T>(_ other: T) -> RevealerRef where T : RevealerProtocol
  • Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to RevealerProtocol.

    Declaration

    Swift

    @inlinable
    init<T>(cPointer: UnsafeMutablePointer<T>)
  • Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to RevealerProtocol.

    Declaration

    Swift

    @inlinable
    init<T>(constPointer: UnsafePointer<T>)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to RevealerProtocol.

    Declaration

    Swift

    @inlinable
    init(mutating raw: UnsafeRawPointer)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to RevealerProtocol.

    Declaration

    Swift

    @inlinable
    init(raw: UnsafeMutableRawPointer)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to RevealerProtocol.

    Declaration

    Swift

    @inlinable
    init(opaquePointer: OpaquePointer)
  • Creates a new GtkRevealer.

    Declaration

    Swift

    @inlinable
    init()