Class

HandySqueezer

Description [src]

final class Handy.Squeezer : Gtk.Container {
  /* No available fields */
}

A best fit container.

The HdySqueezer widget is a container which only shows the first of its children that fits in the available size. It is convenient to offer different widgets to represent the same data with different levels of detail, making the widget seem to squeeze itself to fit in the available space.

Transitions between children can be animated as fades. This can be controlled with hdy_squeezer_set_transition_type().

CSS nodes

HdySqueezer has a single CSS node with name squeezer.

Available since:1.0

Ancestors

  • GtkContainer
  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • AtkImplementorIface
  • GtkBuildable
  • GtkOrientable

Constructors

hdy_squeezer_new

Creates a new HdySqueezer.

Available since: 1.0

Instance methods

hdy_squeezer_get_child_enabled

Gets whether child is enabled.

Available since: 1.0

hdy_squeezer_get_homogeneous

Gets whether self is homogeneous.

Available since: 1.0

hdy_squeezer_get_interpolate_size

Gets whether self should interpolate its size on visible child change.

Available since: 1.0

hdy_squeezer_get_transition_duration

Gets the amount of time that transitions between children will take.

Available since: 1.0

hdy_squeezer_get_transition_running

Gets whether a transition is currently running for self.

Available since: 1.0

hdy_squeezer_get_transition_type

Gets the animation type that will be used for transitions between children.

Available since: 1.0

hdy_squeezer_get_visible_child

Gets the currently visible child of self.

Available since: 1.0

hdy_squeezer_get_xalign

Gets the horizontal alignment.

Available since: 1.0

hdy_squeezer_get_yalign

Gets the vertical alignment.

Available since: 1.0

hdy_squeezer_set_child_enabled

Sets whether child is enabled.

Available since: 1.0

hdy_squeezer_set_homogeneous

Sets whether all children have the same size for the opposite orientation.

Available since: 1.0

hdy_squeezer_set_interpolate_size

Sets whether self should interpolate its size on visible child change.

Available since: 1.0

hdy_squeezer_set_transition_duration

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

Available since: 1.0

hdy_squeezer_set_transition_type

Sets the animation type that will be used for transitions between children.

Available since: 1.0

hdy_squeezer_set_xalign

Sets the horizontal alignment.

Available since: 1.0

hdy_squeezer_set_yalign

Sets the vertical alignment.

Available since: 1.0

Properties

Handy.Squeezer:homogeneous

Whether all children have the same size for the opposite orientation.

Available since: 1.0

Handy.Squeezer:interpolate-size

Whether the squeezer interpolates its size when changing the visible child.

Available since: 1.0

Handy.Squeezer:transition-duration

The animation duration, in milliseconds.

Available since: 1.0

Handy.Squeezer:transition-running

Whether a transition is currently running.

Available since: 1.0

Handy.Squeezer:transition-type

The type of animation used for transitions between children.

Available since: 1.0

Handy.Squeezer:visible-child

The currently visible child.

Available since: 1.0

Handy.Squeezer:xalign

The horizontal alignment, from 0 (start) to 1 (end).

Available since: 1.0

Handy.Squeezer:yalign

The vertical alignment, from 0 (start) to 1 (end).

Available since: 1.0

Class structure

struct HandySqueezerClass {
  GtkContainerClass parent_class;
  
}
Class members
parent_class
GtkContainerClass
  No description available.