Top |
GtkWidget * | hdy_leaflet_new () |
HdyFold | hdy_leaflet_get_fold () |
GtkWidget * | hdy_leaflet_get_visible_child () |
void | hdy_leaflet_set_visible_child () |
const gchar * | hdy_leaflet_get_visible_child_name () |
void | hdy_leaflet_set_visible_child_name () |
gboolean | hdy_leaflet_get_homogeneous () |
void | hdy_leaflet_set_homogeneous () |
HdyLeafletModeTransitionType | hdy_leaflet_get_mode_transition_type () |
void | hdy_leaflet_set_mode_transition_type () |
guint | hdy_leaflet_get_mode_transition_duration () |
void | hdy_leaflet_set_mode_transition_duration () |
HdyLeafletChildTransitionType | hdy_leaflet_get_child_transition_type () |
void | hdy_leaflet_set_child_transition_type () |
guint | hdy_leaflet_get_child_transition_duration () |
void | hdy_leaflet_set_child_transition_duration () |
gboolean | hdy_leaflet_get_child_transition_running () |
gboolean | hdy_leaflet_get_interpolate_size () |
void | hdy_leaflet_set_interpolate_size () |
guint | child-transition-duration | Read / Write |
gboolean | child-transition-running | Read |
HdyLeafletChildTransitionType | child-transition-type | Read / Write |
HdyFold | fold | Read |
gboolean | hhomogeneous-folded | Read / Write |
gboolean | hhomogeneous-unfolded | Read / Write |
gboolean | interpolate-size | Read / Write |
guint | mode-transition-duration | Read / Write |
HdyLeafletModeTransitionType | mode-transition-type | Read / Write |
gboolean | vhomogeneous-folded | Read / Write |
gboolean | vhomogeneous-unfolded | Read / Write |
GtkWidget * | visible-child | Read / Write |
char * | visible-child-name | Read / Write |
GEnum ├── HdyLeafletChildTransitionType ╰── HdyLeafletModeTransitionType GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── HdyLeaflet
The HdyLeaflet widget can display its children like a GtkBox does or like a HdyLeaflet does, adapting to size changes by switching between the two modes.
When there is enough space the children are displayed side by side, otherwise only one is displayed. The threshold is dictated by the preferred minimum sizes of the children.
GtkWidget *
hdy_leaflet_get_visible_child (HdyLeaflet *self
);
Get the visible child widget.
void hdy_leaflet_set_visible_child (HdyLeaflet *self
,GtkWidget *visible_child
);
const gchar *
hdy_leaflet_get_visible_child_name (HdyLeaflet *self
);
void hdy_leaflet_set_visible_child_name (HdyLeaflet *self
,const gchar *name
);
gboolean hdy_leaflet_get_homogeneous (HdyLeaflet *self
,HdyFold fold
,GtkOrientation orientation
);
Gets whether self
is homogeneous for the given fold and orientation.
See hdy_leaflet_set_homogeneous()
.
void hdy_leaflet_set_homogeneous (HdyLeaflet *self
,HdyFold fold
,GtkOrientation orientation
,gboolean homogeneous
);
Sets the HdyLeaflet to be homogeneous or not for the given fold and orientation. If it is homogeneous, the HdyLeaflet will request the same width or height for all its children depending on the orientation. If it isn't and it is folded, the leaflet may change width or height when a different child becomes visible.
HdyLeafletModeTransitionType
hdy_leaflet_get_mode_transition_type (HdyLeaflet *self
);
Gets the type of animation that will be used
for transitions between modes in self
.
void hdy_leaflet_set_mode_transition_type (HdyLeaflet *self
,HdyLeafletModeTransitionType transition
);
Sets the type of animation that will be used for
transitions between modes in self
.
The transition type can be changed without problems at runtime, so it is possible to change the animation based on the mode that is about to become current.
guint
hdy_leaflet_get_mode_transition_duration
(HdyLeaflet *self
);
Returns the amount of time (in milliseconds) that
transitions between modes in self
will take.
void hdy_leaflet_set_mode_transition_duration (HdyLeaflet *self
,guint duration
);
Sets the duration that transitions between modes in self
will take.
HdyLeafletChildTransitionType
hdy_leaflet_get_child_transition_type (HdyLeaflet *self
);
Gets the type of animation that will be used
for transitions between modes in self
.
void hdy_leaflet_set_child_transition_type (HdyLeaflet *self
,HdyLeafletChildTransitionType transition
);
Sets the type of animation that will be used for
transitions between children in self
.
The transition type can be changed without problems at runtime, so it is possible to change the animation based on the mode that is about to become current.
guint
hdy_leaflet_get_child_transition_duration
(HdyLeaflet *self
);
Returns the amount of time (in milliseconds) that
transitions between children in self
will take.
void hdy_leaflet_set_child_transition_duration (HdyLeaflet *self
,guint duration
);
Sets the duration that transitions between children in self
will take.
gboolean
hdy_leaflet_get_child_transition_running
(HdyLeaflet *self
);
Returns whether self
is currently in a transition from one page to
another.
gboolean
hdy_leaflet_get_interpolate_size (HdyLeaflet *self
);
Returns wether the HdyLeaflet is set up to interpolate between the sizes of children on page switch.
void hdy_leaflet_set_interpolate_size (HdyLeaflet *self
,gboolean interpolate_size
);
Sets whether or not self
will interpolate its size when
changing the visible child. If the “interpolate-size”
property is set to TRUE
, stack
will interpolate its size between
the current one and the one it'll take after changing the
visible child, according to the set transition duration.
struct HdyLeafletClass { GtkContainerClass parent; /* Signals */ void (*todo) (HdyLeaflet *self); };
“child-transition-duration”
property “child-transition-duration” guint
The child transition animation duration, in milliseconds.
Owner: HdyLeaflet
Flags: Read / Write
Default value: 200
“child-transition-running”
property “child-transition-running” gboolean
Whether or not the child transition is currently running.
Owner: HdyLeaflet
Flags: Read
Default value: FALSE
“child-transition-type”
property “child-transition-type” HdyLeafletChildTransitionType
The type of animation used to transition between children.
Owner: HdyLeaflet
Flags: Read / Write
Default value: HDY_LEAFLET_CHILD_TRANSITION_TYPE_NONE
“fold”
property “fold” HdyFold
Whether the widget is folded.
Owner: HdyLeaflet
Flags: Read
Default value: HDY_FOLD_UNFOLDED
“hhomogeneous-folded”
property “hhomogeneous-folded” gboolean
Horizontally homogeneous sizing when the leaflet is folded.
Owner: HdyLeaflet
Flags: Read / Write
Default value: TRUE
“hhomogeneous-unfolded”
property “hhomogeneous-unfolded” gboolean
Horizontally homogeneous sizing when the leaflet is unfolded.
Owner: HdyLeaflet
Flags: Read / Write
Default value: FALSE
“interpolate-size”
property “interpolate-size” gboolean
Whether or not the size should smoothly change when changing between differently sized children.
Owner: HdyLeaflet
Flags: Read / Write
Default value: FALSE
“mode-transition-duration”
property “mode-transition-duration” guint
The mode transition animation duration, in milliseconds.
Owner: HdyLeaflet
Flags: Read / Write
Default value: 250
“mode-transition-type”
property “mode-transition-type” HdyLeafletModeTransitionType
The type of animation used to transition between modes.
Owner: HdyLeaflet
Flags: Read / Write
Default value: HDY_LEAFLET_MODE_TRANSITION_TYPE_NONE
“vhomogeneous-folded”
property “vhomogeneous-folded” gboolean
Vertically homogeneous sizing when the leaflet is folded.
Owner: HdyLeaflet
Flags: Read / Write
Default value: TRUE
“vhomogeneous-unfolded”
property “vhomogeneous-unfolded” gboolean
Vertically homogeneous sizing when the leaflet is unfolded.
Owner: HdyLeaflet
Flags: Read / Write
Default value: FALSE
“visible-child”
property “visible-child” GtkWidget *
The widget currently visible when the leaflet is folded.
Owner: HdyLeaflet
Flags: Read / Write