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.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Revealer self() nothrowReturns `this`, for use in `with` statements.
RevealerGidBuilder builder() static nothrowGet builder for [gtk.revealer.Revealer] Returns: New builder object
gtk.widget.Widget child() @property nothrowGet `child` property. Returns: The child widget.
void 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 revealer
bool getChildRevealed() nothrowReturns whether the child is fully revealed.
bool getRevealChild() nothrowReturns whether the child is currently revealed.
uint getTransitionDuration() nothrowReturns the amount of time (in milliseconds) that transitions will take. Returns: the transition duration
gtk.types.RevealerTransitionType getTransitionType() nothrowGets the type of animation that will be used for transitions in revealer. Returns: the current transition type of revealer
void setChild(gtk.widget.Widget child = null) nothrowSets the child widget of revealer.
void setRevealChild(bool revealChild) nothrowTells the [gtk.revealer.Revealer] to reveal or conceal its child.
void setTransitionDuration(uint duration) nothrowSets the duration that transitions will take.
void setTransitionType(gtk.types.RevealerTransitionType transition) nothrowSets the type of animation that will be used for transitions in revealer.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [gtk.revealer.Revealer]. Returns: a newly created [gtk.revealer.Revealer]

Fluent builder implementation template for gtk.revealer.Revealer

Methods
T child(gtk.widget.Widget propval) nothrowSet `child` property. Params: propval = The child widget. Returns: Builder instance for fluent chaining
T revealChild(bool propval) nothrowSet `revealChild` property. Params: propval = Whether the revealer should reveal the child. Returns: Builder instance for fluent chaining
T transitionDuration(uint propval) nothrowSet `transitionDuration` property. Params: propval = The animation duration, in milliseconds. Returns: Builder instance for fluent chaining
T transitionType(gtk.types.RevealerTransitionType propval) nothrowSet `transitionType` property. Params: propval = The type of animation used to transition. Returns: Builder instance for fluent chaining

Fluent builder for gtk.revealer.Revealer

Methods
Revealer build() nothrowCreate object from builder. Returns: New object