Gtk.Revealer¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Whether the child is revealed and the animation target reached |
||
r/w/c/en |
Whether the container should reveal the child |
||
r/w/c/en |
The animation duration, in milliseconds |
||
r/w/c/en |
The type of animation used to transition |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gtk.Revealer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Gtk.Revealer
widget is a container which animates the transition of its child from invisible to visible.The style of transition can be controlled with
Gtk.Revealer.set_transition_type
().These animations respect the
Gtk.Settings
:gtk-enable-animations
setting.- CSS nodes
Gtk.Revealer
has a single CSS node with name revealer.The
Gtk.Revealer
widget was added in GTK+ 3.10.- classmethod new()[source]¶
- Returns:
a newly created
Gtk.Revealer
- Return type:
Creates a new
Gtk.Revealer
.New in version 3.10.
- get_child_revealed()[source]¶
-
Returns whether the child is fully revealed, in other words whether the transition to the revealed state is completed.
New in version 3.10.
- get_reveal_child()[source]¶
-
Returns whether the child is currently revealed. See
Gtk.Revealer.set_reveal_child
().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), useGtk.Revealer.get_child_revealed
().New in version 3.10.
- get_transition_duration()[source]¶
- Returns:
the transition duration
- Return type:
Returns the amount of time (in milliseconds) that transitions will take.
New in version 3.10.
- get_transition_type()[source]¶
- Returns:
the current transition type of self
- Return type:
Gets the type of animation that will be used for transitions in self.
New in version 3.10.
- set_reveal_child(reveal_child)[source]¶
-
Tells the
Gtk.Revealer
to reveal or conceal its child.The transition will be animated with the current transition type of self.
New in version 3.10.
- set_transition_duration(duration)[source]¶
- Parameters:
duration (
int
) – the new duration, in milliseconds
Sets the duration that transitions will take.
New in version 3.10.
- set_transition_type(transition)[source]¶
- Parameters:
transition (
Gtk.RevealerTransitionType
) – the new transition type
Sets the type of animation that will be used for transitions in self. Available types include various kinds of fades and slides.
New in version 3.10.
Property Details¶
- Gtk.Revealer.props.child_revealed¶
-
Whether the child is revealed and the animation target reached
- Gtk.Revealer.props.reveal_child¶
- Name:
reveal-child
- Type:
- Default Value:
- Flags:
Whether the container should reveal the child
- Gtk.Revealer.props.transition_duration¶
- Name:
transition-duration
- Type:
- Default Value:
250
- Flags:
The animation duration, in milliseconds
- Gtk.Revealer.props.transition_type¶
- Name:
transition-type
- Type:
- Default Value:
- Flags:
The type of animation used to transition