Gtk.Revealer¶
class — extends Widget, Accessible, Buildable, ConstraintTarget
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 False.
Accessibility¶
GtkRevealer uses the AccessibleRole.group role.
The child of GtkRevealer, if set, is always available in the accessibility
tree, regardless of the state of the revealer widget.
Constructors¶
new¶
Creates a new GtkRevealer.
Methods¶
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 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 revealer.
set_child¶
Sets the child widget of revealer.
Parameters:
child— the child widget
set_reveal_child¶
Tells the GtkRevealer to reveal or conceal its child.
The transition will be animated with the current
transition type of revealer.
Parameters:
reveal_child—Trueto reveal the child
set_transition_duration¶
Sets the duration that transitions will take.
Parameters:
duration— the new duration, in milliseconds
set_transition_type¶
Sets the type of animation that will be used for
transitions in revealer.
Available types include various kinds of fades and slides.
Parameters:
transition— the new transition type
Properties¶
child¶
The child widget.
child_revealed¶
Whether the child is revealed and the animation target reached.
reveal_child¶
Whether the revealer should reveal the child.
transition_duration¶
The animation duration, in milliseconds.
transition_type¶
The type of animation used to transition.