Object Hierarchy:

Object hierarchy for Revealer


[ CCode ( type_id = "gtk_revealer_get_type ()" ) ]
public class Revealer : Widget, Accessible, Buildable, ConstraintTarget

The GtkRevealer widget is a container which animates the transition of its child from invisible to visible.

The style of transition can be controlled with set_transition_type.

These animations respect the gtk_enable_animations setting.

CSS nodes

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


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.

Namespace: Gtk
Package: gtk4



Creation methods:


Inherited Members:

All known members inherited from class Gtk.Widget