Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: RevealerMeta

[294:14] static extends: object

Generated metadata helpers for Revealer class surfaces.

Methods

  • properties ()

    Returns property metadata for Revealer.

    • @r A list.

class: Revealer

[23:7] extends: object

Animates the transition of its child from invisible to visible. The style of transition can be controlled with [method@Gtk.Revealer.set_transition_type]. These animations respect the [property@Gtk.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 [property@Gtk.Revealer:reveal-child] property is set to %FALSE. # Accessibility GtkRevealer uses the [enum@Gtk.AccessibleRole.group] role. The child of GtkRevealer, if set, is always available in the accessibility tree, regardless of the state of the revealer widget.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • Revealer ()

    Creates a new GtkRevealer.

  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asWidget ()

    Wraps this handle as Widget.

    • @r A Widget object.
  • asAccessible ()

    Wraps this handle as Accessible.

    • @r A Accessible object.
  • asBuildable ()

    Wraps this handle as Buildable.

    • @r A Buildable object.
  • asConstraintTarget ()

    Wraps this handle as ConstraintTarget.

    • @r A ConstraintTarget object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setChild (object Value)

    The child widget.

    • @p Value is the new property value.
    • @r None.
  • setRevealchild (bool Value)

    Whether the revealer should reveal the child.

    • @p Value is the new property value.
    • @r None.
  • setTransitionduration (int Value)

    The animation duration, in milliseconds.

    • @p Value is the new property value.
    • @r None.
  • setTransitiontype (string Value)

    The type of animation used to transition.

    • @p Value is the new property value.
    • @r None.
  • get_child ()

    Gets the child widget of @revealer.

  • get_child_revealed ()

    Returns whether the child is fully revealed. In other words, this returns whether the transition to the revealed state is completed.

  • get_reveal_child ()

    Returns whether the child is currently revealed. This function returns %TRUE as soon as the transition is to the revealed state is started. To learn whether the child is fully revealed (ie the transition is completed), use [method@Gtk.Revealer.get_child_revealed].

  • get_transition_duration ()

    Returns the amount of time (in milliseconds) that transitions will take.

  • get_transition_type ()

    Gets the type of animation that will be used for transitions in

    • @revealer. ``
  • set_child (object child)

    Sets the child widget of @revealer.

    • @p child is the child widget.
    • @r None.
  • set_reveal_child (bool reveal_child)

    Tells the GtkRevealer to reveal or conceal its child. The transition will be animated with the current transition type of @revealer.

    • @p reveal_child is %TRUE to reveal the child.
    • @r None.
  • set_transition_duration (int duration)

    Sets the duration that transitions will take.

    • @p duration is the new duration, in milliseconds.
    • @r None.
  • set_transition_type (string transition)

    Sets the type of animation that will be used for transitions in

    • @revealer. Available types include various kinds of fades and slides.
    • @p transition is the new transition type.
    • @r None.