1.163 <GtkRevealer>

Class: <GtkRevealer>

It derives from <GtkWidget>.

Animates the transition of its child from invisible to visible.

The style of transition can be controlled with revealer:set-transition-type.

These animations respect the 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 revealer:reveal-child property is set to #f.

Accessibility

<GtkRevealer> uses the 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.

Properties

Property: revealer:child self

The child widget.

Its value is a <GtkWidget>, or #f.

Set it with (set! (revealer:child self) value).

Property: revealer:child-revealed self

Whether the child is revealed and the animation target reached.

Its value is a boolean.

It is read only.

Property: revealer:reveal-child self

Whether the revealer should reveal the child.

Its value is a boolean.

Set it with (set! (revealer:reveal-child self) value).

Property: revealer:transition-duration self

The animation duration, in milliseconds.

Its value is an unsigned 32-bit integer.

Set it with (set! (revealer:transition-duration self) value).

Property: revealer:transition-type self

The type of animation used to transition.

Its value is a <GtkRevealerTransitionType> (or, to set it, one of its symbols).

Set it with (set! (revealer:transition-type self) value).

Procedures

Method: revealer:get-child self ⇒ %return
Method: get-child self ⇒ %return

Gets the child widget of self.

self

Passed: a <GtkRevealer>.

a <GtkRevealer>

%return

Returned: a <GtkWidget>, or #f.

the child widget of self

Method: revealer:get-child-revealed? self ⇒ %return
Method: get-child-revealed? self ⇒ %return

Returns whether the child is fully revealed.

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

self

Passed: a <GtkRevealer>.

a <GtkRevealer>

%return

Returned: a boolean.

#t if the child is fully revealed

Method: revealer:get-reveal-child? self ⇒ %return
Method: get-reveal-child? self ⇒ %return

Returns whether the child is currently revealed.

This function returns #t 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 revealer:get-child-revealed?.

self

Passed: a <GtkRevealer>.

a <GtkRevealer>

%return

Returned: a boolean.

#t if the child is revealed.

Method: revealer:get-transition-duration self ⇒ %return
Method: get-transition-duration self ⇒ %return

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

self

Passed: a <GtkRevealer>.

a <GtkRevealer>

%return

Returned: an unsigned 32-bit integer.

the transition duration

Method: revealer:get-transition-type self ⇒ %return
Method: get-transition-type self ⇒ %return

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

self

Passed: a <GtkRevealer>.

a <GtkRevealer>

%return

Returned: a <GtkRevealerTransitionType>.

the current transition type of self

Procedure: revealer:new ⇒ %return

Creates a new <GtkRevealer>.

%return

Returned: a <GtkWidget>.

a newly created <GtkRevealer>

Method: revealer:set-child self [child]
Method: set-child self [child]

Sets the child widget of self.

self

Passed: a <GtkRevealer>.

a <GtkRevealer>

child

Passed, or left out: a <GtkWidget>, or #f.

the child widget

Method: revealer:set-reveal-child self reveal-child
Method: set-reveal-child self reveal-child

Tells the <GtkRevealer> to reveal or conceal its child.

The transition will be animated with the current transition type of self.

self

Passed: a <GtkRevealer>.

a <GtkRevealer>

reveal-child

Passed: a boolean.

#t to reveal the child

Method: revealer:set-transition-duration self duration
Method: set-transition-duration self duration

Sets the duration that transitions will take.

self

Passed: a <GtkRevealer>.

a <GtkRevealer>

duration

Passed: an unsigned 32-bit integer.

the new duration, in milliseconds

Method: revealer:set-transition-type self transition
Method: set-transition-type self transition

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

Available types include various kinds of fades and slides.

self

Passed: a <GtkRevealer>.

a <GtkRevealer>

transition

Passed: a <GtkRevealerTransitionType>, or one of its symbols.

the new transition type