Squeezer

Constructors

this
this(HdySqueezer* hdySqueezer, bool ownedRef = false)

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

this
this()

Creates a new #HdySqueezer container.

Members

Functions

getChildEnabled
bool getChildEnabled(Widget child)

Gets whether @child is enabled.

getHomogeneous
bool getHomogeneous()

Gets whether @self is homogeneous.

getInterpolateSize
bool getInterpolateSize()

Gets wether @self should interpolate its size on visible child change.

getSqueezerStruct
HdySqueezer* getSqueezerStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getTransitionDuration
uint getTransitionDuration()

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

getTransitionRunning
bool getTransitionRunning()

Gets whether @self is currently in a transition from one child to another.

getTransitionType
HdySqueezerTransitionType getTransitionType()

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

getVisibleChild
Widget getVisibleChild()

Gets the currently visible child of @self, or %NULL if there are no visible children.

setChildEnabled
void setChildEnabled(Widget child, bool enabled)

Make @self enable or disable @child. If a child is disabled, it will be ignored when looking for the child fitting the available size best. This allows to programmatically and prematurely hide a child of @self even if it fits in the available space.

setHomogeneous
void setHomogeneous(bool homogeneous)

Sets @self to be homogeneous or not. If it is homogeneous, @self will request the same size for all its children for its opposite orientation, e.g. if @self is oriented horizontally and is homogeneous, it will request the same height for all its children. If it isn't, @self may change size when a different child becomes visible.

setInterpolateSize
void setInterpolateSize(bool interpolateSize)

Sets whether or not @self will interpolate the size of its opposing orientation when changing the visible child. If %TRUE, @self will interpolate its size between the one of the previous visible child and the one of the new visible child, according to the set transition duration and the orientation, e.g. if @self is horizontal, it will interpolate the its height.

setTransitionDuration
void setTransitionDuration(uint duration)

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

setTransitionType
void setTransitionType(HdySqueezerTransitionType transition)

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

Static functions

getType
GType getType()

Variables

hdySqueezer
HdySqueezer* hdySqueezer;

the main Gtk struct

Meta