HdySwipeGroup

HdySwipeGroup — An object for syncing swipeable widgets.

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── HdySwipeGroup

Implemented Interfaces

HdySwipeGroup implements GtkBuildable.

Description

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 as GtkBuildable

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 has been deprecated, HdyWindow and HdyApplicationWindow allow using a single leaflet for both content and header bar, without the need to sync them.

Functions

hdy_swipe_group_new ()

HdySwipeGroup *
hdy_swipe_group_new (void);

hdy_swipe_group_new has been deprecated since version 1.4 and should not be used in newly-written code.

Create a new HdySwipeGroup object.

Returns

The newly created HdySwipeGroup object

Since: 0.0.12


hdy_swipe_group_add_swipeable ()

void
hdy_swipe_group_add_swipeable (HdySwipeGroup *self,
                               HdySwipeable *swipeable);

hdy_swipe_group_add_swipeable has been deprecated since version 1.4 and should not be used in newly-written code.

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

Parameters

self

a HdySwipeGroup

 

swipeable

the HdySwipeable to add

 

Since: 0.0.12


hdy_swipe_group_get_swipeables ()

GSList *
hdy_swipe_group_get_swipeables (HdySwipeGroup *self);

hdy_swipe_group_get_swipeables has been deprecated since version 1.4 and should not be used in newly-written code.

Returns the list of swipeables associated with self .

Parameters

self

a HdySwipeGroup

 

Returns

a GSList of swipeables. The list is owned by libhandy and should not be modified.

[element-type HdySwipeable][transfer none]

Since: 0.0.12


hdy_swipe_group_remove_swipeable ()

void
hdy_swipe_group_remove_swipeable (HdySwipeGroup *self,
                                  HdySwipeable *swipeable);

hdy_swipe_group_remove_swipeable has been deprecated since version 1.4 and should not be used in newly-written code.

Removes a widget from a HdySwipeGroup.

Parameters

self

a HdySwipeGroup

 

swipeable

the HdySwipeable to remove

 

Since: 0.0.12

Types and Values

HDY_TYPE_SWIPE_GROUP

#define HDY_TYPE_SWIPE_GROUP (hdy_swipe_group_get_type())

HdySwipeGroup

typedef struct _HdySwipeGroup HdySwipeGroup;

See Also

HdyCarousel, HdyDeck, HdyLeaflet, HdySwipeable