Revealer

The GtkRevealer widget is a container which 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 #GtkSettings:gtk-enable-animations setting.

CSS nodes

GtkRevealer has a single CSS node with name revealer.

The GtkRevealer widget was added in GTK+ 3.10.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new #GtkRevealer.

Members

Functions

getChildRevealed
bool getChildRevealed()

Returns whether the child is fully revealed, in other words whether the transition to the revealed state is completed.

getRevealChild
bool getRevealChild()

Returns whether the child is currently revealed. See gtk.revealer.Revealer.setRevealChild.

getTransitionDuration
uint getTransitionDuration()

Returns the amount of time (in milliseconds) that transitions will take.

getTransitionType
gtk.types.RevealerTransitionType getTransitionType()

Gets the type of animation that will be used for transitions in revealer.

self
Revealer self()

Returns this, for use in with statements.

setRevealChild
void setRevealChild(bool revealChild)

Tells the #GtkRevealer to reveal or conceal its child.

setTransitionDuration
void setTransitionDuration(uint duration)

Sets the duration that transitions will take.

setTransitionType
void setTransitionType(gtk.types.RevealerTransitionType transition)

Sets the type of animation that will be used for transitions in revealer. Available types include various kinds of fades and slides.

Properties

_gType
GType _gType [@property getter]
childRevealed
bool childRevealed [@property getter]
revealChild
bool revealChild [@property getter]
revealChild
bool revealChild [@property setter]
transitionDuration
uint transitionDuration [@property getter]
transitionDuration
uint transitionDuration [@property setter]
transitionType
gtk.types.RevealerTransitionType transitionType [@property getter]
transitionType
gtk.types.RevealerTransitionType transitionType [@property setter]

Static functions

_getGType
GType _getGType()
builder
RevealerGidBuilder builder()

Get builder for gtk.revealer.Revealer

Inherited Members

From Bin

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Bin self()

Returns this, for use in with statements.

builder
BinGidBuilder builder()

Get builder for gtk.bin.Bin

getChild
gtk.widget.Widget getChild()

Gets the child of the #GtkBin, or null if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.