| Top |
| CtkWidget * | ctk_revealer_new () |
| gboolean | ctk_revealer_get_reveal_child () |
| void | ctk_revealer_set_reveal_child () |
| gboolean | ctk_revealer_get_child_revealed () |
| guint | ctk_revealer_get_transition_duration () |
| void | ctk_revealer_set_transition_duration () |
| CtkRevealerTransitionType | ctk_revealer_get_transition_type () |
| void | ctk_revealer_set_transition_type () |
| gboolean | child-revealed | Read |
| gboolean | reveal-child | Read / Write / Construct |
| guint | transition-duration | Read / Write / Construct |
| CtkRevealerTransitionType | transition-type | Read / Write / Construct |
GObject
╰── GInitiallyUnowned
╰── CtkWidget
╰── CtkContainer
╰── CtkBin
╰── CtkRevealer
The CtkRevealer widget is a container which animates the transition of its child from invisible to visible.
The style of transition can be controlled with
ctk_revealer_set_transition_type().
These animations respect the “ctk-enable-animations” setting.
gboolean
ctk_revealer_get_reveal_child (CtkRevealer *revealer);
Returns whether the child is currently
revealed. See ctk_revealer_set_reveal_child().
This function returns TRUE as soon as the transition
is to the revealed state is started. To learn whether
the child is fully revealed (ie the transition is completed),
use ctk_revealer_get_child_revealed().
Since: 3.10
void ctk_revealer_set_reveal_child (CtkRevealer *revealer,gboolean reveal_child);
Tells the CtkRevealer to reveal or conceal its child.
The transition will be animated with the current
transition type of revealer
.
Since: 3.10
gboolean
ctk_revealer_get_child_revealed (CtkRevealer *revealer);
Returns whether the child is fully revealed, in other words whether the transition to the revealed state is completed.
Since: 3.10
guint
ctk_revealer_get_transition_duration (CtkRevealer *revealer);
Returns the amount of time (in milliseconds) that transitions will take.
Since: 3.10
void ctk_revealer_set_transition_duration (CtkRevealer *revealer,guint duration);
Sets the duration that transitions will take.
Since: 3.10
CtkRevealerTransitionType
ctk_revealer_get_transition_type (CtkRevealer *revealer);
Gets the type of animation that will be used
for transitions in revealer
.
Since: 3.10
void ctk_revealer_set_transition_type (CtkRevealer *revealer,CtkRevealerTransitionType transition);
Sets the type of animation that will be used for
transitions in revealer
. Available types include
various kinds of fades and slides.
Since: 3.10
These enumeration values describe the possible transitions when the child of a CtkRevealer widget is shown or hidden.
“child-revealed” property “child-revealed” gboolean
Whether the child is revealed and the animation target reached.
Owner: CtkRevealer
Flags: Read
Default value: FALSE
“reveal-child” property “reveal-child” gboolean
Whether the container should reveal the child.
Owner: CtkRevealer
Flags: Read / Write / Construct
Default value: FALSE
“transition-duration” property “transition-duration” guint
The animation duration, in milliseconds.
Owner: CtkRevealer
Flags: Read / Write / Construct
Default value: 250
“transition-type” property“transition-type” CtkRevealerTransitionType
The type of animation used to transition.
Owner: CtkRevealer
Flags: Read / Write / Construct
Default value: CTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN