Leaflet

Constructors

this
this(HdyLeaflet* hdyLeaflet, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this()

Members

Functions

getChildTransitionDuration
uint getChildTransitionDuration()

Returns the amount of time (in milliseconds) that transitions between children in @self will take.

getChildTransitionRunning
bool getChildTransitionRunning()

Returns whether @self is currently in a transition from one page to another.

getChildTransitionType
HdyLeafletChildTransitionType getChildTransitionType()

Gets the type of animation that will be used for transitions between modes in @self.

getFold
HdyFold getFold()

Gets the fold of @self.

getHomogeneous
bool getHomogeneous(HdyFold fold, GtkOrientation orientation)

Gets whether @self is homogeneous for the given fold and orientation. See hdy_leaflet_set_homogeneous().

getInterpolateSize
bool getInterpolateSize()

Returns wether the #HdyLeaflet is set up to interpolate between the sizes of children on page switch.

getLeafletStruct
HdyLeaflet* getLeafletStruct(bool transferOwnership = false)

Get the main Gtk struct

getModeTransitionDuration
uint getModeTransitionDuration()

Returns the amount of time (in milliseconds) that transitions between modes in @self will take.

getModeTransitionType
HdyLeafletModeTransitionType getModeTransitionType()

Gets the type of animation that will be used for transitions between modes in @self.

getStruct
void* getStruct()

the main Gtk struct as a void*

getVisibleChild
Widget getVisibleChild()

Get the visible child widget.

getVisibleChildName
string getVisibleChildName()
setChildTransitionDuration
void setChildTransitionDuration(uint duration)

Sets the duration that transitions between children in @self will take.

setChildTransitionType
void setChildTransitionType(HdyLeafletChildTransitionType transition)

Sets the type of animation that will be used for transitions between children in @self.

setHomogeneous
void setHomogeneous(HdyFold fold, GtkOrientation orientation, bool 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.

setInterpolateSize
void setInterpolateSize(bool interpolateSize)

Sets whether or not @self will interpolate its size when changing the visible child. If the #HdyLeaflet: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.

setModeTransitionDuration
void setModeTransitionDuration(uint duration)

Sets the duration that transitions between modes in @self will take.

setModeTransitionType
void setModeTransitionType(HdyLeafletModeTransitionType transition)

Sets the type of animation that will be used for transitions between modes in @self.

setVisibleChild
void setVisibleChild(Widget visibleChild)
setVisibleChildName
void setVisibleChildName(string name)

Static functions

getType
GType getType()

Variables

hdyLeaflet
HdyLeaflet* hdyLeaflet;

the main Gtk struct

Meta