Class: Handy::Leaflet
- Inherits:
-
Gtk::Container
- Object
- Gtk::Container
- Handy::Leaflet
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#can_swipe_back ⇒ Boolean
Gets whether swipe gestures switch to the previous navigatable child.
-
#can_swipe_back=(can_swipe_back) ⇒ Boolean
Whether swipe gestures allow switching to the previous navigatable child.
-
#can_swipe_back? ⇒ Boolean
Whether swipe gestures allow switching to the previous navigatable child.
-
#can_swipe_forward ⇒ Boolean
Gets whether swipe gestures switch to the next navigatable child.
-
#can_swipe_forward=(can_swipe_forward) ⇒ Boolean
Whether swipe gestures allow switching to the next navigatable child.
-
#can_swipe_forward? ⇒ Boolean
Whether swipe gestures allow switching to the next navigatable child.
-
#child_transition_duration ⇒ Integer
The child transition animation duration, in milliseconds.
-
#child_transition_duration=(child_transition_duration) ⇒ Integer
The child transition animation duration, in milliseconds.
-
#child_transition_running ⇒ Boolean
Returns whether self is currently in a transition from one page to another.
-
#child_transition_running=(child_transition_running) ⇒ Boolean
Whether a child transition is currently running.
-
#child_transition_running? ⇒ Boolean
Whether a child transition is currently running.
-
#folded ⇒ Boolean
Gets whether self is folded.
-
#folded=(folded) ⇒ Boolean
Whether the leaflet is folded.
-
#folded? ⇒ Boolean
Whether the leaflet is folded.
-
#get_adjacent_child(direction) ⇒ Gtk::Widget
Finds the previous or next navigatable child.
-
#get_child_by_name(name) ⇒ Gtk::Widget
Finds the child of self with the name given as the argument.
-
#get_homogeneous(folded, orientation) ⇒ Boolean
Gets whether self is homogeneous for the given fold and orientation.
-
#hhomogeneous_folded=(hhomogeneous_folded) ⇒ Boolean
Whether to allocate the same width for all children when folded.
-
#hhomogeneous_folded? ⇒ Boolean
Whether to allocate the same width for all children when folded.
-
#hhomogeneous_unfolded=(hhomogeneous_unfolded) ⇒ Boolean
Whether to allocate the same width for all children when unfolded.
-
#hhomogeneous_unfolded? ⇒ Boolean
Whether to allocate the same width for all children when unfolded.
-
#initialize ⇒ Gtk::Widget
constructor
Creates a new
HdyLeaflet. -
#insert_child_after(child, sibling) ⇒ nil
Inserts child in the position after sibling in the list of children.
-
#interpolate_size ⇒ Boolean
Gets whether to interpolate between the sizes of children on page switches.
-
#interpolate_size=(interpolate_size) ⇒ Boolean
Whether the size should smoothly change when changing between children.
-
#interpolate_size? ⇒ Boolean
Whether the size should smoothly change when changing between children.
-
#mode_transition_duration ⇒ Integer
The mode transition animation duration, in milliseconds.
-
#mode_transition_duration=(mode_transition_duration) ⇒ Integer
The mode transition animation duration, in milliseconds.
-
#navigate(direction) ⇒ Boolean
Navigates to the previous or next navigatable child.
-
#prepend(child) ⇒ nil
Inserts child at the first position in self.
-
#reorder_child_after(child, sibling) ⇒ nil
Moves child to the position after sibling in the list of children.
-
#set_homogeneous(folded, orientation, homogeneous) ⇒ nil
Sets whether to be homogeneous for the given fold and orientation.
-
#transition_type ⇒ Handy::LeafletTransitionType
The animation type used for transitions between modes and children.
-
#transition_type=(transition_type) ⇒ Handy::LeafletTransitionType
The animation type used for transitions between modes and children.
-
#vhomogeneous_folded=(vhomogeneous_folded) ⇒ Boolean
Whether to allocates the same height for all children when folded.
-
#vhomogeneous_folded? ⇒ Boolean
Whether to allocates the same height for all children when folded.
-
#vhomogeneous_unfolded=(vhomogeneous_unfolded) ⇒ Boolean
Whether to allocate the same height for all children when unfolded.
-
#vhomogeneous_unfolded? ⇒ Boolean
Whether to allocate the same height for all children when unfolded.
-
#visible_child ⇒ Gtk::Widget
The widget currently visible when the leaflet is folded.
-
#visible_child=(visible_child) ⇒ Gtk::Widget
The widget currently visible when the leaflet is folded.
-
#visible_child_name ⇒ String
The name of the widget currently visible when the leaflet is folded.
-
#visible_child_name=(visible_child_name) ⇒ String
The name of the widget currently visible when the leaflet is folded.
Constructor Details
#initialize ⇒ Gtk::Widget
Creates a new HdyLeaflet.
Instance Method Details
#can_swipe_back ⇒ Boolean
Gets whether swipe gestures switch to the previous navigatable child.
#can_swipe_back=(can_swipe_back) ⇒ Boolean
Whether swipe gestures allow switching to the previous navigatable child.
#can_swipe_back? ⇒ Boolean
Whether swipe gestures allow switching to the previous navigatable child.
#can_swipe_forward ⇒ Boolean
Gets whether swipe gestures switch to the next navigatable child.
#can_swipe_forward=(can_swipe_forward) ⇒ Boolean
Whether swipe gestures allow switching to the next navigatable child.
#can_swipe_forward? ⇒ Boolean
Whether swipe gestures allow switching to the next navigatable child.
#child_transition_duration ⇒ Integer
The child transition animation duration, in milliseconds.
#child_transition_duration=(child_transition_duration) ⇒ Integer
The child transition animation duration, in milliseconds.
#child_transition_running ⇒ Boolean
Returns whether self is currently in a transition from one page to another.
#child_transition_running=(child_transition_running) ⇒ Boolean
Whether a child transition is currently running.
#child_transition_running? ⇒ Boolean
Whether a child transition is currently running.
#folded ⇒ Boolean
Gets whether self is folded.
#folded=(folded) ⇒ Boolean
Whether the leaflet is folded.
The leaflet will be folded if the size allocated to it is smaller than the sum of the natural size of its children, it will be unfolded otherwise.
#folded? ⇒ Boolean
Whether the leaflet is folded.
The leaflet will be folded if the size allocated to it is smaller than the sum of the natural size of its children, it will be unfolded otherwise.
#get_adjacent_child(direction) ⇒ Gtk::Widget
Finds the previous or next navigatable child.
This will be the same widget [methodLeaflet.navigate] will navigate to.
If there's no child to navigate to, NULL will be returned instead.
#get_child_by_name(name) ⇒ Gtk::Widget
Finds the child of self with the name given as the argument.
Returns NULL if there is no child with this name.
#get_homogeneous(folded, orientation) ⇒ Boolean
Gets whether self is homogeneous for the given fold and orientation.
#hhomogeneous_folded=(hhomogeneous_folded) ⇒ Boolean
Whether to allocate the same width for all children when folded.
#hhomogeneous_folded? ⇒ Boolean
Whether to allocate the same width for all children when folded.
#hhomogeneous_unfolded=(hhomogeneous_unfolded) ⇒ Boolean
Whether to allocate the same width for all children when unfolded.
#hhomogeneous_unfolded? ⇒ Boolean
Whether to allocate the same width for all children when unfolded.
#insert_child_after(child, sibling) ⇒ nil
Inserts child in the position after sibling in the list of children.
If sibling is NULL, inserts child at the first position.
#interpolate_size ⇒ Boolean
Gets whether to interpolate between the sizes of children on page switches.
#interpolate_size=(interpolate_size) ⇒ Boolean
Whether the size should smoothly change when changing between children.
#interpolate_size? ⇒ Boolean
Whether the size should smoothly change when changing between children.
#mode_transition_duration ⇒ Integer
The mode transition animation duration, in milliseconds.
#mode_transition_duration=(mode_transition_duration) ⇒ Integer
The mode transition animation duration, in milliseconds.
#navigate(direction) ⇒ Boolean
Navigates to the previous or next navigatable child.
The switch is similar to performing a swipe gesture to go in direction.
#prepend(child) ⇒ nil
Inserts child at the first position in self.
#reorder_child_after(child, sibling) ⇒ nil
Moves child to the position after sibling in the list of children.
If sibling is NULL, move child to the first position.
#set_homogeneous(folded, orientation, homogeneous) ⇒ nil
Sets whether to be homogeneous for the given fold and orientation.
If it is homogeneous, the [classLeaflet] 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.
#transition_type ⇒ Handy::LeafletTransitionType
The animation type used for transitions between modes and children.
The transition type can be changed without problems at runtime, so it is possible to change the animation based on the mode or child that is about to become current.
#transition_type=(transition_type) ⇒ Handy::LeafletTransitionType
The animation type used for transitions between modes and children.
The transition type can be changed without problems at runtime, so it is possible to change the animation based on the mode or child that is about to become current.
#vhomogeneous_folded=(vhomogeneous_folded) ⇒ Boolean
Whether to allocates the same height for all children when folded.
#vhomogeneous_folded? ⇒ Boolean
Whether to allocates the same height for all children when folded.
#vhomogeneous_unfolded=(vhomogeneous_unfolded) ⇒ Boolean
Whether to allocate the same height for all children when unfolded.
#vhomogeneous_unfolded? ⇒ Boolean
Whether to allocate the same height for all children when unfolded.
#visible_child ⇒ Gtk::Widget
The widget currently visible when the leaflet is folded.
The transition is determined by [propertyLeaflet:transition-type] and [propertyLeaflet:child-transition-duration]. The transition can be cancelled by the user, in which case visible child will change back to the previously visible child.
#visible_child=(visible_child) ⇒ Gtk::Widget
The widget currently visible when the leaflet is folded.
The transition is determined by [propertyLeaflet:transition-type] and [propertyLeaflet:child-transition-duration]. The transition can be cancelled by the user, in which case visible child will change back to the previously visible child.
#visible_child_name ⇒ String
The name of the widget currently visible when the leaflet is folded.
See [propertyLeaflet:visible-child].
#visible_child_name=(visible_child_name) ⇒ String
The name of the widget currently visible when the leaflet is folded.
See [propertyLeaflet:visible-child].