Class: Handy::Squeezer
- Inherits:
-
Gtk::Container
- Object
- Gtk::Container
- Handy::Squeezer
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#get_child_enabled(child) ⇒ Boolean
Gets whether child is enabled.
-
#homogeneous ⇒ Boolean
Gets whether self is homogeneous.
-
#homogeneous=(homogeneous) ⇒ Boolean
Whether all children have the same size for the opposite orientation.
-
#homogeneous? ⇒ Boolean
Whether all children have the same size for the opposite orientation.
-
#initialize ⇒ Gtk::Widget
constructor
Creates a new
HdySqueezer. -
#interpolate_size ⇒ Boolean
Gets whether self should interpolate its size on visible child change.
-
#interpolate_size=(interpolate_size) ⇒ Boolean
Whether the squeezer interpolates its size when changing the visible child.
-
#interpolate_size? ⇒ Boolean
Whether the squeezer interpolates its size when changing the visible child.
-
#set_child_enabled(child, enabled) ⇒ nil
Sets whether child is enabled.
-
#transition_duration ⇒ Integer
The animation duration, in milliseconds.
-
#transition_duration=(transition_duration) ⇒ Integer
The animation duration, in milliseconds.
-
#transition_running ⇒ Boolean
Gets whether a transition is currently running for self.
-
#transition_running=(transition_running) ⇒ Boolean
Whether a transition is currently running.
-
#transition_running? ⇒ Boolean
Whether a transition is currently running.
-
#transition_type ⇒ Handy::SqueezerTransitionType
The type of animation used for transitions between children.
-
#transition_type=(transition_type) ⇒ Handy::SqueezerTransitionType
The type of animation used for transitions between children.
-
#visible_child ⇒ Gtk::Widget
The currently visible child.
-
#visible_child=(visible_child) ⇒ Gtk::Widget
The currently visible child.
-
#xalign ⇒ Handy::gfloat
The horizontal alignment, from 0 (start) to 1 (end).
-
#xalign=(xalign) ⇒ Handy::gfloat
The horizontal alignment, from 0 (start) to 1 (end).
-
#yalign ⇒ Handy::gfloat
The vertical alignment, from 0 (start) to 1 (end).
-
#yalign=(yalign) ⇒ Handy::gfloat
The vertical alignment, from 0 (start) to 1 (end).
Constructor Details
#initialize ⇒ Gtk::Widget
Creates a new HdySqueezer.
Instance Method Details
#get_child_enabled(child) ⇒ Boolean
Gets whether child is enabled.
See [methodSqueezer.set_child_enabled].
#homogeneous ⇒ Boolean
Gets whether self is homogeneous.
#homogeneous=(homogeneous) ⇒ Boolean
Whether all children have the same size for the opposite orientation.
For example, if a squeezer is horizontal and is homogeneous, it will request the same height for all its children. If it isn't, the squeezer may change size when a different child becomes visible.
#homogeneous? ⇒ Boolean
Whether all children have the same size for the opposite orientation.
For example, if a squeezer is horizontal and is homogeneous, it will request the same height for all its children. If it isn't, the squeezer may change size when a different child becomes visible.
#interpolate_size ⇒ Boolean
Gets whether self should interpolate its size on visible child change.
#interpolate_size=(interpolate_size) ⇒ Boolean
Whether the squeezer interpolates its size when changing the visible child.
If TRUE, the squeezer 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 the squeezer is
horizontal, it will interpolate the its height.
#interpolate_size? ⇒ Boolean
Whether the squeezer interpolates its size when changing the visible child.
If TRUE, the squeezer 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 the squeezer is
horizontal, it will interpolate the its height.
#set_child_enabled(child, enabled) ⇒ nil
Sets whether child is enabled.
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.
This can be used e.g. to ensure a certain child is hidden below a certain window width, or any other constraint you find suitable.
#transition_duration ⇒ Integer
The animation duration, in milliseconds.
#transition_duration=(transition_duration) ⇒ Integer
The animation duration, in milliseconds.
#transition_running ⇒ Boolean
Gets whether a transition is currently running for self.
#transition_running=(transition_running) ⇒ Boolean
Whether a transition is currently running.
#transition_running? ⇒ Boolean
Whether a transition is currently running.
#transition_type ⇒ Handy::SqueezerTransitionType
The type of animation used for transitions between children.
Available types include various kinds of fades and slides.
The transition type can be changed without problems at runtime, so it is possible to change the animation based on the child that is about to become current.
#transition_type=(transition_type) ⇒ Handy::SqueezerTransitionType
The type of animation used for transitions between children.
Available types include various kinds of fades and slides.
The transition type can be changed without problems at runtime, so it is possible to change the animation based on the child that is about to become current.
#visible_child ⇒ Gtk::Widget
The currently visible child.
#visible_child=(visible_child) ⇒ Gtk::Widget
The currently visible child.
#xalign ⇒ Handy::gfloat
The horizontal alignment, from 0 (start) to 1 (end).
The xalign property determines the horizontal alignment of the children inside the squeezer's size allocation. Compare this to [propertyGtk.Widget:halign], which determines how the squeezer's size allocation is positioned in the space available for the squeezer.
This will affect the position of children too wide to fit in the squeezer as they are fading out.
#xalign=(xalign) ⇒ Handy::gfloat
The horizontal alignment, from 0 (start) to 1 (end).
The xalign property determines the horizontal alignment of the children inside the squeezer's size allocation. Compare this to [propertyGtk.Widget:halign], which determines how the squeezer's size allocation is positioned in the space available for the squeezer.
This will affect the position of children too wide to fit in the squeezer as they are fading out.
#yalign ⇒ Handy::gfloat
The vertical alignment, from 0 (start) to 1 (end).
The yalign property determines the vertical alignment of the children inside the squeezer's size allocation. Compare this to [propertyGtk.Widget:valign], which determines how the squeezer's size allocation is positioned in the space available for the squeezer.
This will affect the position of children too tall to fit in the squeezer as they are fading out.
#yalign=(yalign) ⇒ Handy::gfloat
The vertical alignment, from 0 (start) to 1 (end).
The yalign property determines the vertical alignment of the children inside the squeezer's size allocation. Compare this to [propertyGtk.Widget:valign], which determines how the squeezer's size allocation is positioned in the space available for the squeezer.
This will affect the position of children too tall to fit in the squeezer as they are fading out.