Top |
The HdySwipeGroup object can be used to sync multiple swipeable widgets that implement the HdySwipeable interface, such as HdyCarousel, 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.
1 2 3 4 5 6 |
<object class="HdySwipeGroup"> <swipeables> <swipeable name="carousel1"/> <swipeable name="carousel2"/> </swipeables> </object> |
HdySwipeGroup *
hdy_swipe_group_new (void
);
Create a new HdySwipeGroup object.
Since: 0.0.12
void hdy_swipe_group_add_swipeable (HdySwipeGroup *self
,HdySwipeable *swipeable
);
When the widget is destroyed or no longer referenced elsewhere, it will be removed from the swipe group.
Since: 0.0.12
GSList *
hdy_swipe_group_get_swipeables (HdySwipeGroup *self
);
Returns the list of swipeables associated with self
.
a GSList of swipeables. The list is owned by libhandy and should not be modified.
[element-type HdySwipeable][transfer none]
Since: 0.0.12
void hdy_swipe_group_remove_swipeable (HdySwipeGroup *self
,HdySwipeable *swipeable
);
Removes a widget from a HdySwipeGroup.
Since: 0.0.12