Revealer
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
- Constructors:
Revealer(**properties)
new() -> Gtk.Widget
Constructors
Methods
- class Revealer
-
- get_child_revealed() bool
Returns whether the child is fully revealed.
In other words, this returns whether the transition to the revealed state is completed.
- get_reveal_child() bool
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), useget_child_revealed
.
- get_transition_duration() int
Returns the amount of time (in milliseconds) that transitions will take.
- get_transition_type() RevealerTransitionType
Gets the type of animation that will be used for transitions in
revealer
.
- set_child(child: Widget | None = None) None
Sets the child widget of
revealer
.- Parameters:
child – the child widget
- set_reveal_child(reveal_child: bool) None
Tells the
GtkRevealer
to reveal or conceal its child.The transition will be animated with the current transition type of
revealer
.- Parameters:
reveal_child –
True
to reveal the child
- set_transition_duration(duration: int) None
Sets the duration that transitions will take.
- Parameters:
duration – the new duration, in milliseconds
- set_transition_type(transition: RevealerTransitionType) None
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
- class Revealer
-
- props.transition_type: RevealerTransitionType
The type of animation used to transition.