Handy.SwipeGroup

g GObject.GInterface GObject.GInterface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.Object GObject.Object Handy.SwipeGroup Handy.SwipeGroup GObject.Object->Handy.SwipeGroup Gtk.Buildable->Handy.SwipeGroup

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gtk.Buildable (10)

Structs:

GObject.ObjectClass (5)

class

new ()

add_swipeable (swipeable)

get_swipeables ()

remove_swipeable (swipeable)

Virtual Methods

Inherited:

GObject.Object (7), Gtk.Buildable (10)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Handy.SwipeGroup(**kwargs)
Bases:

GObject.Object, Gtk.Buildable

Abstract:

No

Structure:

Handy.SwipeGroupClass

An object for syncing swipeable widgets.

The HdySwipeGroup object can be used to sync multiple swipeable widgets that implement the [iface`Swipeable`] interface, such as [class`Carousel`], so that animating one of them also animates all the other widgets in the group.

This can be useful for syncing widgets between a window’s titlebar and content area.

Handy.SwipeGroup as Gtk.Buildable

HdySwipeGroup can be created in an UI definition. The list of swipeable widgets is specified with a <swipeables> element containing multiple <swipeable> elements with their ”name” attribute specifying the id of the widgets.

```xml

<swipeables>

</swipeables> </object> ```

`:obj:Handy.SwipeGroup` has been deprecated, [class`Window`] and [class`ApplicationWindow`] allow using a single leaflet for both content and header bar, without the need to sync them.

New in version 1.0.

Deprecated since version 1.4.

classmethod new()
Returns:

the newly created HdySwipeGroup

Return type:

Handy.SwipeGroup

Creates a new HdySwipeGroup.

New in version 1.0.

Deprecated since version 1.4.

add_swipeable(swipeable)
Parameters:

swipeable (Handy.Swipeable) – the [iface`Swipeable`] to add

Adds a swipeable to self.

When the widget is destroyed or no longer referenced elsewhere, it will be removed from the swipe group.

New in version 1.0.

Deprecated since version 1.4.

get_swipeables()
Returns:

a list of swipeables

Return type:

[Handy.Swipeable]

Gets the list of swipeables associated with self.

New in version 1.0.

Deprecated since version 1.4.

remove_swipeable(swipeable)
Parameters:

swipeable (Handy.Swipeable) – the [iface`Swipeable`] to remove

Removes a widget from a [class`SwipeGroup`].

New in version 1.0.

Deprecated since version 1.4.