Basics
Guides
API Reference
Basics
Guides
API Reference
[294:14] static extends: object
Generated metadata helpers for Revealer class surfaces.
properties ()
Returns property metadata for
Revealer.
A list.[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.
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 exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asWidget ()
Wraps this handle as
Widget.
A Widget object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
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.
Value is the new property value.None.setRevealchild (bool Value)
Whether the revealer should reveal the child.
Value is the new property value.None.setTransitionduration (int Value)
The animation duration, in milliseconds.
Value is the new property value.None.setTransitiontype (string Value)
The type of animation used to transition.
Value is the new property value.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
set_child (object child)
Sets the child widget of @revealer.
child is the child widget.None.set_reveal_child (bool reveal_child)
Tells the
GtkRevealerto reveal or conceal its child. The transition will be animated with the current transition type of @revealer.
reveal_child is %TRUE to reveal the child.None.set_transition_duration (int duration)
Sets the duration that transitions will take.
duration is the new duration, in milliseconds.None.set_transition_type (string transition)
Sets the type of animation that will be used for transitions in
Available types include various kinds of fades and slides.transition is the new transition type.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.