Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype Notification = Notification (ForeignPtr Notification)
- class GObject o => NotificationK o
- toNotification :: NotificationK o => o -> IO Notification
- noNotification :: Maybe Notification
- data NotificationClickedMethodInfo
- notificationClicked :: (MonadIO m, NotificationK a) => a -> m ()
- data NotificationCloseMethodInfo
- notificationClose :: (MonadIO m, NotificationK a) => a -> m ()
- data NotificationGetBodyMethodInfo
- notificationGetBody :: (MonadIO m, NotificationK a) => a -> m Text
- data NotificationGetIdMethodInfo
- notificationGetId :: (MonadIO m, NotificationK a) => a -> m Word64
- data NotificationGetTitleMethodInfo
- notificationGetTitle :: (MonadIO m, NotificationK a) => a -> m Text
- data NotificationBodyPropertyInfo
- getNotificationBody :: (MonadIO m, NotificationK o) => o -> m Text
- notificationBody :: AttrLabelProxy "body"
- data NotificationIdPropertyInfo
- getNotificationId :: (MonadIO m, NotificationK o) => o -> m Word64
- notificationId :: AttrLabelProxy "id"
- data NotificationTitlePropertyInfo
- getNotificationTitle :: (MonadIO m, NotificationK o) => o -> m Text
- notificationTitle :: AttrLabelProxy "title"
- type NotificationClickedCallback = IO ()
- type NotificationClickedCallbackC = Ptr () -> Ptr () -> IO ()
- data NotificationClickedSignalInfo
- afterNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId
- mkNotificationClickedCallback :: NotificationClickedCallbackC -> IO (FunPtr NotificationClickedCallbackC)
- noNotificationClickedCallback :: Maybe NotificationClickedCallback
- notificationClickedCallbackWrapper :: NotificationClickedCallback -> Ptr () -> Ptr () -> IO ()
- notificationClickedClosure :: NotificationClickedCallback -> IO Closure
- onNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId
- type NotificationClosedCallback = IO ()
- type NotificationClosedCallbackC = Ptr () -> Ptr () -> IO ()
- data NotificationClosedSignalInfo
- afterNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
- mkNotificationClosedCallback :: NotificationClosedCallbackC -> IO (FunPtr NotificationClosedCallbackC)
- noNotificationClosedCallback :: Maybe NotificationClosedCallback
- notificationClosedCallbackWrapper :: NotificationClosedCallback -> Ptr () -> Ptr () -> IO ()
- notificationClosedClosure :: NotificationClosedCallback -> IO Closure
- onNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
Exported types
newtype Notification Source
GObject Notification | |
((~) * info (ResolveNotificationMethod t Notification), MethodInfo * info Notification p) => IsLabelProxy t (Notification -> p) | |
type ParentTypes Notification | |
type AttributeList Notification | |
type SignalList Notification |
class GObject o => NotificationK o Source
(GObject o, IsDescendantOf Notification o) => NotificationK o |
toNotification :: NotificationK o => o -> IO Notification Source
Methods
notificationClicked
data NotificationClickedMethodInfo Source
((~) * signature (m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationClickedMethodInfo a signature |
notificationClicked :: (MonadIO m, NotificationK a) => a -> m () Source
notificationClose
data NotificationCloseMethodInfo Source
((~) * signature (m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationCloseMethodInfo a signature |
notificationClose :: (MonadIO m, NotificationK a) => a -> m () Source
notificationGetBody
data NotificationGetBodyMethodInfo Source
((~) * signature (m Text), MonadIO m, NotificationK a) => MethodInfo * NotificationGetBodyMethodInfo a signature |
notificationGetBody :: (MonadIO m, NotificationK a) => a -> m Text Source
notificationGetId
data NotificationGetIdMethodInfo Source
((~) * signature (m Word64), MonadIO m, NotificationK a) => MethodInfo * NotificationGetIdMethodInfo a signature |
notificationGetId :: (MonadIO m, NotificationK a) => a -> m Word64 Source
notificationGetTitle
data NotificationGetTitleMethodInfo Source
((~) * signature (m Text), MonadIO m, NotificationK a) => MethodInfo * NotificationGetTitleMethodInfo a signature |
notificationGetTitle :: (MonadIO m, NotificationK a) => a -> m Text Source
Properties
Body
data NotificationBodyPropertyInfo Source
AttrInfo NotificationBodyPropertyInfo | |
type AttrLabel NotificationBodyPropertyInfo = "body" | |
type AttrGetType NotificationBodyPropertyInfo = Text | |
type AttrBaseTypeConstraint NotificationBodyPropertyInfo = NotificationK | |
type AttrSetTypeConstraint NotificationBodyPropertyInfo = * ~ () | |
type AttrAllowedOps NotificationBodyPropertyInfo = (:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)) |
getNotificationBody :: (MonadIO m, NotificationK o) => o -> m Text Source
notificationBody :: AttrLabelProxy "body" Source
Id
data NotificationIdPropertyInfo Source
AttrInfo NotificationIdPropertyInfo | |
type AttrLabel NotificationIdPropertyInfo = "id" | |
type AttrGetType NotificationIdPropertyInfo = Word64 | |
type AttrBaseTypeConstraint NotificationIdPropertyInfo = NotificationK | |
type AttrSetTypeConstraint NotificationIdPropertyInfo = * ~ () | |
type AttrAllowedOps NotificationIdPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getNotificationId :: (MonadIO m, NotificationK o) => o -> m Word64 Source
notificationId :: AttrLabelProxy "id" Source
Title
data NotificationTitlePropertyInfo Source
AttrInfo NotificationTitlePropertyInfo | |
type AttrLabel NotificationTitlePropertyInfo = "title" | |
type AttrGetType NotificationTitlePropertyInfo = Text | |
type AttrBaseTypeConstraint NotificationTitlePropertyInfo = NotificationK | |
type AttrSetTypeConstraint NotificationTitlePropertyInfo = * ~ () | |
type AttrAllowedOps NotificationTitlePropertyInfo = (:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)) |
getNotificationTitle :: (MonadIO m, NotificationK o) => o -> m Text Source
notificationTitle :: AttrLabelProxy "title" Source
Signals
Clicked
type NotificationClickedCallback = IO () Source
type NotificationClickedCallbackC = Ptr () -> Ptr () -> IO () Source
afterNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId Source
mkNotificationClickedCallback :: NotificationClickedCallbackC -> IO (FunPtr NotificationClickedCallbackC) Source
notificationClickedCallbackWrapper :: NotificationClickedCallback -> Ptr () -> Ptr () -> IO () Source
onNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId Source
Closed
type NotificationClosedCallback = IO () Source
type NotificationClosedCallbackC = Ptr () -> Ptr () -> IO () Source
afterNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId Source
mkNotificationClosedCallback :: NotificationClosedCallbackC -> IO (FunPtr NotificationClosedCallbackC) Source
notificationClosedCallbackWrapper :: NotificationClosedCallback -> Ptr () -> Ptr () -> IO () Source
onNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId Source