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 _gType() @property
Revealer self()Returns `this`, for use in `with` statements.
RevealerGidBuilder builder()Get builder for [gtk.revealer.Revealer] Returns: New builder object
gtk.widget.Widget child() @propertyGet `child` property. Returns: The child widget.
void 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 revealer
bool 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 duration
gtk.types.RevealerTransitionType getTransitionType()Gets 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)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.
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)Set `child` property. Params: propval = The child widget. Returns: Builder instance for fluent chaining
T revealChild(bool propval)Set `revealChild` property. Params: propval = Whether the revealer should reveal the child. Returns: Builder instance for fluent chaining
T transitionDuration(uint propval)Set `transitionDuration` property. Params: propval = The animation duration, in milliseconds. Returns: Builder instance for fluent chaining
T transitionType(gtk.types.RevealerTransitionType propval)Set `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()Create object from builder. Returns: New object