Class: Handy::Carousel
- Inherits:
-
Gtk::EventBox
- Object
- Gtk::EventBox
- Handy::Carousel
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#allow_long_swipes ⇒ Boolean
Gets whether to allow swiping for more than one page at a time.
-
#allow_long_swipes=(allow_long_swipes) ⇒ Boolean
Whether to allow swiping for more than one page at a time.
-
#allow_long_swipes? ⇒ Boolean
Whether to allow swiping for more than one page at a time.
-
#allow_mouse_drag ⇒ Boolean
Sets whether self can be dragged with mouse pointer.
-
#allow_mouse_drag=(allow_mouse_drag) ⇒ Boolean
Sets whether the [classCarousel] can be dragged with mouse pointer.
-
#allow_mouse_drag? ⇒ Boolean
Sets whether the [classCarousel] can be dragged with mouse pointer.
-
#allow_scroll_wheel ⇒ Boolean
Gets whether self will respond to scroll wheel events.
-
#allow_scroll_wheel=(allow_scroll_wheel) ⇒ Boolean
Whether the widget will respond to scroll wheel events.
-
#allow_scroll_wheel? ⇒ Boolean
Whether the widget will respond to scroll wheel events.
-
#animation_duration ⇒ Integer
Animation duration used by [methodCarousel.scroll_to], in milliseconds.
-
#animation_duration=(animation_duration) ⇒ Integer
Animation duration used by [methodCarousel.scroll_to], in milliseconds.
-
#initialize ⇒ Gtk::Widget
constructor
Creates a new
HdyCarousel. -
#insert(child, position) ⇒ nil
Inserts child into self at position position.
-
#interactive ⇒ Boolean
Gets whether self can be navigated.
-
#interactive=(interactive) ⇒ Boolean
Whether the carousel can be navigated.
-
#interactive? ⇒ Boolean
Whether the carousel can be navigated.
-
#n_pages ⇒ Integer
The number of pages in a [classCarousel].
-
#n_pages=(n_pages) ⇒ Integer
The number of pages in a [classCarousel].
-
#position ⇒ Float
Current scrolling position, unitless.
-
#position=(position) ⇒ Float
Current scrolling position, unitless.
-
#prepend(child) ⇒ nil
Prepends child to self.
-
#reorder(child, position) ⇒ nil
Moves child into position position.
-
#reveal_duration ⇒ Integer
Page reveal duration, in milliseconds.
-
#reveal_duration=(reveal_duration) ⇒ Integer
Page reveal duration, in milliseconds.
-
#scroll_to(widget) ⇒ nil
Scrolls to widget position with an animation.
-
#scroll_to_full(widget, duration) ⇒ nil
Scrolls to widget position with an animation.
-
#spacing ⇒ Integer
Spacing between pages in pixels.
-
#spacing=(spacing) ⇒ Integer
Spacing between pages in pixels.
Constructor Details
#initialize ⇒ Gtk::Widget
Creates a new HdyCarousel.
Instance Method Details
#allow_long_swipes ⇒ Boolean
Gets whether to allow swiping for more than one page at a time.
#allow_long_swipes=(allow_long_swipes) ⇒ Boolean
Whether to allow swiping for more than one page at a time.
If the value is FALSE, each swipe can only move to the adjacent pages.
#allow_long_swipes? ⇒ Boolean
Whether to allow swiping for more than one page at a time.
If the value is FALSE, each swipe can only move to the adjacent pages.
#allow_mouse_drag ⇒ Boolean
Sets whether self can be dragged with mouse pointer.
#allow_mouse_drag=(allow_mouse_drag) ⇒ Boolean
Sets whether the [classCarousel] can be dragged with mouse pointer.
If the value is FALSE, dragging is only available on touch.
#allow_mouse_drag? ⇒ Boolean
Sets whether the [classCarousel] can be dragged with mouse pointer.
If the value is FALSE, dragging is only available on touch.
#allow_scroll_wheel ⇒ Boolean
Gets whether self will respond to scroll wheel events.
#allow_scroll_wheel=(allow_scroll_wheel) ⇒ Boolean
Whether the widget will respond to scroll wheel events.
If the value is FALSE, wheel events will be ignored.
#allow_scroll_wheel? ⇒ Boolean
Whether the widget will respond to scroll wheel events.
If the value is FALSE, wheel events will be ignored.
#animation_duration ⇒ Integer
Animation duration used by [methodCarousel.scroll_to], in milliseconds.
#animation_duration=(animation_duration) ⇒ Integer
Animation duration used by [methodCarousel.scroll_to], in milliseconds.
#insert(child, position) ⇒ nil
Inserts child into self at position position.
If position is -1, or larger than the number of pages, child will be appended to the end.
#interactive ⇒ Boolean
Gets whether self can be navigated.
#interactive=(interactive) ⇒ Boolean
Whether the carousel can be navigated.
This can be used to temporarily disable a HdyCarousel to only allow
navigating it in a certain state.
#interactive? ⇒ Boolean
Whether the carousel can be navigated.
This can be used to temporarily disable a HdyCarousel to only allow
navigating it in a certain state.
#n_pages ⇒ Integer
The number of pages in a [classCarousel].
#n_pages=(n_pages) ⇒ Integer
The number of pages in a [classCarousel].
#position ⇒ Float
Current scrolling position, unitless.
1 matches 1 page. Use [methodCarousel.scroll_to] for changing it.
#position=(position) ⇒ Float
Current scrolling position, unitless.
1 matches 1 page. Use [methodCarousel.scroll_to] for changing it.
#prepend(child) ⇒ nil
Prepends child to self.
#reorder(child, position) ⇒ nil
Moves child into position position.
If position is -1, or larger than the number of pages, child will be moved to the end.
#reveal_duration ⇒ Integer
Page reveal duration, in milliseconds.
#reveal_duration=(reveal_duration) ⇒ Integer
Page reveal duration, in milliseconds.
#scroll_to(widget) ⇒ nil
Scrolls to widget position with an animation.
[propertyCarousel:animation-duration] property can be used for controlling the duration.
#scroll_to_full(widget, duration) ⇒ nil
Scrolls to widget position with an animation.
#spacing ⇒ Integer
Spacing between pages in pixels.
#spacing=(spacing) ⇒ Integer
Spacing between pages in pixels.