Gtk.Revealer¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r |
|||
r/w/c/en |
|||
r/w/c/en |
|||
r/w/c/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.Revealer(**kwargs)¶
- Bases:
- Abstract:
No
A
GtkRevealer
animates the transition of its child from invisible to visible.The style of transition can be controlled with [method`Gtk`.Revealer.set_transition_type].
These animations respect the [property`Gtk`.Settings:gtk-enable-animations] setting.
- CSS nodes
GtkRevealer
has a single CSS node with name revealer. When stylingGtkRevealer
using CSS, remember that it only hides its contents, not itself. That means applied margin, padding and borders will be visible even when the [property`Gtk`.Revealer:reveal-child] property is set toFalse
.- Accessibility
GtkRevealer
uses theGtk.AccessibleRole.GROUP
role.The child of
GtkRevealer
, if set, is always available in the accessibility tree, regardless of the state of the revealer widget.- classmethod new()[source]¶
- Returns:
a newly created
GtkRevealer
- Return type:
Creates a new
GtkRevealer
.
- get_child()[source]¶
- Returns:
the child widget of self
- Return type:
Gtk.Widget
orNone
Gets the child widget of self.
- get_child_revealed()[source]¶
-
Returns whether the child is fully revealed.
In other words, this returns whether the transition to the revealed state is completed.
- get_reveal_child()[source]¶
-
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 [method`Gtk`.Revealer.get_child_revealed].
- get_transition_duration()[source]¶
- Returns:
the transition duration
- Return type:
Returns the amount of time (in milliseconds) that transitions will take.
- 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.
- set_child(child)[source]¶
- Parameters:
child (
Gtk.Widget
orNone
) – the child widget
Sets the child widget of self.
- set_reveal_child(reveal_child)[source]¶
-
Tells the
GtkRevealer
to reveal or conceal its child.The transition will be animated with the current transition type of self.
- set_transition_duration(duration)[source]¶
- Parameters:
duration (
int
) – the new duration, in milliseconds
Sets the duration that transitions will take.
- 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.
Property Details¶
- Gtk.Revealer.props.child¶
- Name:
child
- Type:
- Default Value:
- Flags:
The child widget.
- 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 revealer 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.