Package: gtk

Class gtk:revealer

Superclasses

Documented Subclasses

None

Direct Slots

child
The child property of type gtk:widget (Read / Write)
The child widget.
child-revealed
The child-revealed property of type :boolean (Read)
Whether the child widget is revealed and the animation target reached.
Default value: false
reveal-child
The reveal-child property of type :boolean (Read / Write)
Whether the container should reveal the child widget.
Default value: false
transition-duration
The transition-duration property of type :uint (Read / Write)
The animation duration, in milliseconds.
Default value: 250
transition-type
The transition-type property of type gtk:revealer-transition-type (Read / Write)
The type of animation used to transition.
Default value: :slide-down

Details

The gtk:revealer widget is a container which animates the transition of its child widget from invisible to visible. The style of transition can be controlled with a value of the gtk:revealer-transition-type enumeration. These animations respect the gtk-enable-animations setting.

CSS nodes

The gtk:revealer implementation has a single CSS node with name revealer. When styling the gtk:revealer widget 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.

Accessibility

The gtk:revealer implementation uses the :group role of the gtk:accessible-role enumeration. The child widget of the gtk:revealer widget, if set, is always available in the accessibility tree, regardless of the state of the revealer widget.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2024-4-15