Swipeable
Object Hierarchy:
Description:
[ CCode ( type_cname = "HdySwipeableInterface" , type_id = "hdy_swipeable_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public interface Swipeable : Widget
An interface for swipeable widgets.
The `HdySwipeable` interface is implemented by all swipeable widgets. They can be synced using [class@SwipeGroup].
See [class@SwipeTracker] for details about implementing it.
All known implementing classes:
Content:
Methods:
- public void emit_child_switched (uint index, int64 duration)
Emits [signal@Swipeable:HdySwipeable:child-switched
]
signal.
- public abstract double get_cancel_progress ()
Gets the progress this will snap
back to after the gesture is canceled.
- public abstract double get_distance ()
Gets the swipe distance of this.
- public abstract double get_progress ()
Gets the current progress of this.
- public abstract double[] get_snap_points ()
Gets the snap points of this.
- public abstract Rectangle get_swipe_area (NavigationDirection navigation_direction, bool is_drag)
Gets the area this can start a swipe
from for the given direction and gesture type.
- public abstract unowned SwipeTracker get_swipe_tracker ()
Gets the [class@SwipeTracker] used by this swipeable widget.
- public abstract void switch_child (uint index, int64 duration)
Switches to child with index index
.
Signals:
Inherited Members:
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Buildable
- add_child
- construct_child
- custom_finished
- custom_tag_end
- custom_tag_start
- get_internal_child
- get_name
- parser_finished
- set_buildable_property
- set_name