Class: Handy::Deck
- Inherits:
-
Gtk::Container
- Object
- Gtk::Container
- Handy::Deck
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#can_swipe_back ⇒ Boolean
Gets whether swipe gestures for navigating backward are enabled.
-
#can_swipe_back=(can_swipe_back) ⇒ Boolean
Whether swipe gestures allow switching to the previous child.
-
#can_swipe_back? ⇒ Boolean
Whether swipe gestures allow switching to the previous child.
-
#can_swipe_forward ⇒ Boolean
Gets whether swipe gestures for navigating forward enabled.
-
#can_swipe_forward=(can_swipe_forward) ⇒ Boolean
Whether swipe gestures allow switching to the next child.
-
#can_swipe_forward? ⇒ Boolean
Whether swipe gestures allow switching to the next child.
-
#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 name.
-
#get_homogeneous(orientation) ⇒ Boolean
Gets whether self is homogeneous for the given orientation.
-
#hhomogeneous=(hhomogeneous) ⇒ Boolean
Horizontally homogeneous sizing.
-
#hhomogeneous? ⇒ Boolean
Horizontally homogeneous sizing.
-
#initialize ⇒ Gtk::Widget
constructor
Creates a new
HdyDeck. -
#insert_child_after(child, sibling) ⇒ nil
Inserts child in the position after sibling in the list of children.
-
#interpolate_size ⇒ Boolean
Gets whether self will interpolate its size when changing the visible child.
-
#interpolate_size=(interpolate_size) ⇒ Boolean
Whether or not the size should smoothly change when changing between differently sized children.
-
#interpolate_size? ⇒ Boolean
Whether or not the size should smoothly change when changing between differently sized children.
-
#navigate(direction) ⇒ Boolean
Navigates to the previous or next 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(orientation, homogeneous) ⇒ nil
Sets whether self is homogeneous for a given orientation.
-
#transition_duration ⇒ Integer
The transition animation duration, in milliseconds.
-
#transition_duration=(transition_duration) ⇒ Integer
The transition animation duration, in milliseconds.
-
#transition_running ⇒ Boolean
Gets whether a transition is currently running for self.
-
#transition_running=(transition_running) ⇒ Boolean
Whether or not the transition is currently running.
-
#transition_running? ⇒ Boolean
Whether or not the transition is currently running.
-
#transition_type ⇒ Handy::DeckTransitionType
The type of animation that will be used for transitions between children.
-
#transition_type=(transition_type) ⇒ Handy::DeckTransitionType
The type of animation that will be used for transitions between children.
-
#vhomogeneous=(vhomogeneous) ⇒ Boolean
Vertically homogeneous sizing.
-
#vhomogeneous? ⇒ Boolean
Vertically homogeneous sizing.
-
#visible_child ⇒ Gtk::Widget
The widget currently visible.
-
#visible_child=(visible_child) ⇒ Gtk::Widget
The widget currently visible.
-
#visible_child_name ⇒ String
The name of the widget currently visible.
-
#visible_child_name=(visible_child_name) ⇒ String
The name of the widget currently visible.
Constructor Details
#initialize ⇒ Gtk::Widget
Creates a new HdyDeck.
Instance Method Details
#can_swipe_back ⇒ Boolean
Gets whether swipe gestures for navigating backward are enabled.
#can_swipe_back=(can_swipe_back) ⇒ Boolean
Whether swipe gestures allow switching to the previous child.
#can_swipe_back? ⇒ Boolean
Whether swipe gestures allow switching to the previous child.
#can_swipe_forward ⇒ Boolean
Gets whether swipe gestures for navigating forward enabled.
#can_swipe_forward=(can_swipe_forward) ⇒ Boolean
Whether swipe gestures allow switching to the next child.
#can_swipe_forward? ⇒ Boolean
Whether swipe gestures allow switching to the next child.
#get_adjacent_child(direction) ⇒ Gtk::Widget
Finds the previous or next navigatable child.
Gets the previous or next child. This will be the same widget [methodDeck.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 name.
Returns NULL if there is no child with this name.
#get_homogeneous(orientation) ⇒ Boolean
Gets whether self is homogeneous for the given orientation.
#hhomogeneous=(hhomogeneous) ⇒ Boolean
Horizontally homogeneous sizing.
#hhomogeneous? ⇒ Boolean
Horizontally homogeneous sizing.
#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 self will interpolate its size when changing the visible child.
#interpolate_size=(interpolate_size) ⇒ Boolean
Whether or not the size should smoothly change when changing between differently sized children.
#interpolate_size? ⇒ Boolean
Whether or not the size should smoothly change when changing between differently sized children.
#navigate(direction) ⇒ Boolean
Navigates to the previous or next 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(orientation, homogeneous) ⇒ nil
Sets whether self is homogeneous for a given orientation.
If set to FALSE, different children can have different size along the
opposite orientation.
#transition_duration ⇒ Integer
The transition animation duration, in milliseconds.
#transition_duration=(transition_duration) ⇒ Integer
The transition animation duration, in milliseconds.
#transition_running ⇒ Boolean
Gets whether a transition is currently running for self.
#transition_running=(transition_running) ⇒ Boolean
Whether or not the transition is currently running.
#transition_running? ⇒ Boolean
Whether or not the transition is currently running.
#transition_type ⇒ Handy::DeckTransitionType
The type of animation that will be used for transitions between children.
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::DeckTransitionType
The type of animation that will be used for transitions between children.
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.
#vhomogeneous=(vhomogeneous) ⇒ Boolean
Vertically homogeneous sizing.
#vhomogeneous? ⇒ Boolean
Vertically homogeneous sizing.
#visible_child ⇒ Gtk::Widget
The widget currently visible.
The transition is determined by [propertyDeck:transition-type] and [propertyDeck: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.
The transition is determined by [propertyDeck:transition-type] and [propertyDeck: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.
#visible_child_name=(visible_child_name) ⇒ String
The name of the widget currently visible.