gi-handy-0.0.8: libhandy bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Handy.Objects.SwipeGroup

Description

The SwipeGroup object can be used to sync multiple swipeable widgets that implement the Swipeable interface, such as Paginator, 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.

# SwipeGroup as Buildable

SwipeGroup 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.

<object class="HdySwipeGroup">
  <swipeables>
    <swipeable name="paginator1"/>
    <swipeable name="paginator2"/>
  </swipeables>
</object>

Since: 0.0.12

Synopsis

Exported types

newtype SwipeGroup Source #

Memory-managed wrapper type.

Constructors

SwipeGroup (ManagedPtr SwipeGroup) 

Instances

Instances details
Eq SwipeGroup Source # 
Instance details

Defined in GI.Handy.Objects.SwipeGroup

GObject SwipeGroup Source # 
Instance details

Defined in GI.Handy.Objects.SwipeGroup

ManagedPtrNewtype SwipeGroup Source # 
Instance details

Defined in GI.Handy.Objects.SwipeGroup

Methods

toManagedPtr :: SwipeGroup -> ManagedPtr SwipeGroup

TypedObject SwipeGroup Source # 
Instance details

Defined in GI.Handy.Objects.SwipeGroup

Methods

glibType :: IO GType

HasParentTypes SwipeGroup Source # 
Instance details

Defined in GI.Handy.Objects.SwipeGroup

IsGValue (Maybe SwipeGroup) Source #

Convert SwipeGroup to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Handy.Objects.SwipeGroup

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe SwipeGroup -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe SwipeGroup)

type ParentTypes SwipeGroup Source # 
Instance details

Defined in GI.Handy.Objects.SwipeGroup

type ParentTypes SwipeGroup = '[Object, Buildable]

class (GObject o, IsDescendantOf SwipeGroup o) => IsSwipeGroup o Source #

Type class for types which can be safely cast to SwipeGroup, for instance with toSwipeGroup.

Instances

Instances details
(GObject o, IsDescendantOf SwipeGroup o) => IsSwipeGroup o Source # 
Instance details

Defined in GI.Handy.Objects.SwipeGroup

toSwipeGroup :: (MonadIO m, IsSwipeGroup o) => o -> m SwipeGroup Source #

Cast to SwipeGroup, for types for which this is known to be safe. For general casts, use castTo.

Methods

addSwipeable

swipeGroupAddSwipeable Source #

Arguments

:: (HasCallStack, MonadIO m, IsSwipeGroup a, IsSwipeable b) 
=> a

self: a SwipeGroup

-> b

swipeable: the Swipeable to add

-> m () 

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

Since: 0.0.12

getSwipeables

swipeGroupGetSwipeables Source #

Arguments

:: (HasCallStack, MonadIO m, IsSwipeGroup a) 
=> a

self: a SwipeGroup

-> m [Swipeable]

Returns: a SList of swipeables. The list is owned by libhandy and should not be modified.

Returns the list of swipeables associated with self.

Since: 0.0.12

new

swipeGroupNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SwipeGroup

Returns: The newly created SwipeGroup object

Create a new SwipeGroup object.

Since: 0.0.12

removeSwipeable

swipeGroupRemoveSwipeable Source #

Arguments

:: (HasCallStack, MonadIO m, IsSwipeGroup a, IsSwipeable b) 
=> a

self: a SwipeGroup

-> b

swipeable: the Swipeable to remove

-> m () 

Removes a widget from a SwipeGroup.

Since: 0.0.12