Revealer


Object Hierarchy:

Gtk.Revealer Gtk.Revealer Gtk.Revealer Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Revealer GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.Revealer Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.Revealer Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.Revealer Gtk.ConstraintTarget->Gtk.Widget

Description:

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

A `GtkRevealer` 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 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

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget