Handy.SwipeGroup¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Handy.SwipeGroup(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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.
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:
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:
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.