Class: Handy::SwipeTracker
- Inherits:
-
Object
- Object
- Handy::SwipeTracker
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#allow_long_swipes ⇒ Boolean
Whether to allow swiping for more than one snap point at a time.
-
#allow_long_swipes=(allow_long_swipes) ⇒ Boolean
Whether to allow swiping for more than one snap point at a time.
-
#allow_long_swipes? ⇒ Boolean
Whether to allow swiping for more than one snap point at a time.
-
#allow_mouse_drag ⇒ Boolean
Get whether self can be dragged with mouse pointer.
-
#allow_mouse_drag=(allow_mouse_drag) ⇒ Boolean
Whether to allow dragging with mouse pointer.
-
#allow_mouse_drag? ⇒ Boolean
Whether to allow dragging with mouse pointer.
-
#enabled ⇒ Boolean
Get whether self is enabled.
-
#enabled=(enabled) ⇒ Boolean
Whether the swipe tracker is enabled.
-
#enabled? ⇒ Boolean
Whether the swipe tracker is enabled.
-
#initialize(swipeable) ⇒ Handy::SwipeTracker
constructor
Creates a new
HdySwipeTrackerobject on widget. -
#reversed ⇒ Boolean
Get whether self is reversing the swipe direction.
-
#reversed=(reversed) ⇒ Boolean
Whether to reverse the swipe direction.
-
#reversed? ⇒ Boolean
Whether to reverse the swipe direction.
-
#shift_position(delta) ⇒ nil
Move the current progress value by delta.
-
#swipeable ⇒ Handy::Swipeable
The widget the swipe tracker is attached to.
-
#swipeable=(swipeable) ⇒ Handy::Swipeable
The widget the swipe tracker is attached to.
Constructor Details
#initialize(swipeable) ⇒ Handy::SwipeTracker
Creates a new HdySwipeTracker object on widget.
Instance Method Details
#allow_long_swipes ⇒ Boolean
Whether to allow swiping for more than one snap point at a time.
If the value is FALSE, each swipe can only move to the adjacent snap
points.
#allow_long_swipes=(allow_long_swipes) ⇒ Boolean
Whether to allow swiping for more than one snap point at a time.
If the value is FALSE, each swipe can only move to the adjacent snap
points.
#allow_long_swipes? ⇒ Boolean
Whether to allow swiping for more than one snap point at a time.
If the value is FALSE, each swipe can only move to the adjacent snap
points.
#allow_mouse_drag ⇒ Boolean
Get whether self can be dragged with mouse pointer.
#allow_mouse_drag=(allow_mouse_drag) ⇒ Boolean
Whether to allow dragging with mouse pointer.
This should usually be FALSE.
#allow_mouse_drag? ⇒ Boolean
Whether to allow dragging with mouse pointer.
This should usually be FALSE.
#enabled ⇒ Boolean
Get whether self is enabled.
#enabled=(enabled) ⇒ Boolean
Whether the swipe tracker is enabled.
When it's not enabled, no events will be processed. Usually widgets will want to expose this via a property.
#enabled? ⇒ Boolean
Whether the swipe tracker is enabled.
When it's not enabled, no events will be processed. Usually widgets will want to expose this via a property.
#reversed ⇒ Boolean
Get whether self is reversing the swipe direction.
#reversed=(reversed) ⇒ Boolean
Whether to reverse the swipe direction.
If the swipe tracker is horizontal, it can be used for supporting RTL text direction.
#reversed? ⇒ Boolean
Whether to reverse the swipe direction.
If the swipe tracker is horizontal, it can be used for supporting RTL text direction.
#shift_position(delta) ⇒ nil
Move the current progress value by delta.
This can be used to adjust the current position if snap points move during the gesture.
#swipeable ⇒ Handy::Swipeable
The widget the swipe tracker is attached to. Must not be NULL.
#swipeable=(swipeable) ⇒ Handy::Swipeable
The widget the swipe tracker is attached to. Must not be NULL.