gtk.revealer
Module for [Revealer] class
Types 3
A [gtk.revealer.Revealer] animates the transition of its child from invisible to visible.
The style of transition can be controlled with [gtk.revealer.Revealer.setTransitionType].
These animations respect the property@Gtk.Settings:gtk-enable-animations setting.
CSS nodes
[gtk.revealer.Revealer] has a single CSS node with name revealer. When styling [gtk.revealer.Revealer] 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 to false.
Accessibility
[gtk.revealer.Revealer] uses the [gtk.types.AccessibleRole.Group] role.
The child of [gtk.revealer.Revealer], if set, is always available in the accessibility tree, regardless of the state of the revealer widget.
RevealerGidBuilder builder()Get builder for [gtk.revealer.Revealer] Returns: New builder objectvoid child(gtk.widget.Widget propval) @propertySet `child` property. Params: propval = The child widget.bool childRevealed() @propertyGet `childRevealed` property. Returns: Whether the child is revealed and the animation target reached.bool revealChild() @propertyGet `revealChild` property. Returns: Whether the revealer should reveal the child.void revealChild(bool propval) @propertySet `revealChild` property. Params: propval = Whether the revealer should reveal the child.uint transitionDuration() @propertyGet `transitionDuration` property. Returns: The animation duration, in milliseconds.void transitionDuration(uint propval) @propertySet `transitionDuration` property. Params: propval = The animation duration, in milliseconds.gtk.types.RevealerTransitionType transitionType() @propertyGet `transitionType` property. Returns: The type of animation used to transition.void transitionType(gtk.types.RevealerTransitionType propval) @propertySet `transitionType` property. Params: propval = The type of animation used to transition.gtk.widget.Widget getChild()Gets the child widget of revealer. Returns: the child widget of revealerbool getChildRevealed()Returns whether the child is fully revealed.bool getRevealChild()Returns whether the child is currently revealed.uint getTransitionDuration()Returns the amount of time (in milliseconds) that transitions will take. Returns: the transition durationgtk.types.RevealerTransitionType getTransitionType()Gets the type of animation that will be used for transitions in revealer. Returns: the current transition type of revealervoid setChild(gtk.widget.Widget child = null)Sets the child widget of revealer.void setRevealChild(bool revealChild)Tells the [gtk.revealer.Revealer] to reveal or conceal its child.void setTransitionDuration(uint duration)Sets the duration that transitions will take.void setTransitionType(gtk.types.RevealerTransitionType transition)Sets the type of animation that will be used for transitions in revealer.T child(gtk.widget.Widget propval)Set `child` property. Params: propval = The child widget. Returns: Builder instance for fluent chainingT revealChild(bool propval)Set `revealChild` property. Params: propval = Whether the revealer should reveal the child. Returns: Builder instance for fluent chainingT transitionDuration(uint propval)Set `transitionDuration` property. Params: propval = The animation duration, in milliseconds. Returns: Builder instance for fluent chainingT transitionType(gtk.types.RevealerTransitionType propval)Set `transitionType` property. Params: propval = The type of animation used to transition. Returns: Builder instance for fluent chaining