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 gtk.settings.Settings.gtkEnableAnimations 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 gtk.revealer.Revealer.revealChild 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() static nothrowGet builder for [gtk.revealer.Revealer] Returns: New builder objectvoid child(gtk.widget.Widget propval) @property nothrowSet `child` property. Params: propval = The child widget.bool childRevealed() @property nothrowGet `childRevealed` property. Returns: Whether the child is revealed and the animation target reached.bool revealChild() @property nothrowGet `revealChild` property. Returns: Whether the revealer should reveal the child.void revealChild(bool propval) @property nothrowSet `revealChild` property. Params: propval = Whether the revealer should reveal the child.uint transitionDuration() @property nothrowGet `transitionDuration` property. Returns: The animation duration, in milliseconds.void transitionDuration(uint propval) @property nothrowSet `transitionDuration` property. Params: propval = The animation duration, in milliseconds.gtk.types.RevealerTransitionType transitionType() @property nothrowGet `transitionType` property. Returns: The type of animation used to transition.void transitionType(gtk.types.RevealerTransitionType propval) @property nothrowSet `transitionType` property. Params: propval = The type of animation used to transition.gtk.widget.Widget getChild() nothrowGets the child widget of revealer. Returns: the child widget of revealeruint getTransitionDuration() nothrowReturns the amount of time (in milliseconds) that transitions will take. Returns: the transition durationgtk.types.RevealerTransitionType getTransitionType() nothrowGets the type of animation that will be used for transitions in revealer. Returns: the current transition type of revealervoid setRevealChild(bool revealChild) nothrowTells the [gtk.revealer.Revealer] to reveal or conceal its child.void setTransitionType(gtk.types.RevealerTransitionType transition) nothrowSets the type of animation that will be used for transitions in revealer.Fluent builder implementation template for gtk.revealer.Revealer
T child(gtk.widget.Widget propval) nothrowSet `child` property. Params: propval = The child widget. Returns: Builder instance for fluent chainingT revealChild(bool propval) nothrowSet `revealChild` property. Params: propval = Whether the revealer should reveal the child. Returns: Builder instance for fluent chainingT transitionDuration(uint propval) nothrowSet `transitionDuration` property. Params: propval = The animation duration, in milliseconds. Returns: Builder instance for fluent chainingT transitionType(gtk.types.RevealerTransitionType propval) nothrowSet `transitionType` property. Params: propval = The type of animation used to transition. Returns: Builder instance for fluent chainingFluent builder for gtk.revealer.Revealer