| 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 |
GI.WebKit2.Objects.Notification
Contents
Description
- newtype Notification = Notification (ManagedPtr Notification)
- class GObject o => IsNotification o
- toNotification :: IsNotification o => o -> IO Notification
- noNotification :: Maybe Notification
- data NotificationClickedMethodInfo
- notificationClicked :: (MonadIO m, IsNotification a) => a -> m ()
- data NotificationCloseMethodInfo
- notificationClose :: (MonadIO m, IsNotification a) => a -> m ()
- data NotificationGetBodyMethodInfo
- notificationGetBody :: (MonadIO m, IsNotification a) => a -> m Text
- data NotificationGetIdMethodInfo
- notificationGetId :: (MonadIO m, IsNotification a) => a -> m Word64
- data NotificationGetTitleMethodInfo
- notificationGetTitle :: (MonadIO m, IsNotification a) => a -> m Text
- data NotificationBodyPropertyInfo
- getNotificationBody :: (MonadIO m, IsNotification o) => o -> m Text
- notificationBody :: AttrLabelProxy "body"
- data NotificationIdPropertyInfo
- getNotificationId :: (MonadIO m, IsNotification o) => o -> m Word64
- notificationId :: AttrLabelProxy "id"
- data NotificationTitlePropertyInfo
- getNotificationTitle :: (MonadIO m, IsNotification o) => o -> m Text
- notificationTitle :: AttrLabelProxy "title"
- type C_NotificationClickedCallback = Ptr () -> Ptr () -> IO ()
- type NotificationClickedCallback = IO ()
- data NotificationClickedSignalInfo
- afterNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId
- genClosure_NotificationClicked :: NotificationClickedCallback -> IO Closure
- mk_NotificationClickedCallback :: C_NotificationClickedCallback -> IO (FunPtr C_NotificationClickedCallback)
- noNotificationClickedCallback :: Maybe NotificationClickedCallback
- onNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId
- wrap_NotificationClickedCallback :: NotificationClickedCallback -> Ptr () -> Ptr () -> IO ()
- type C_NotificationClosedCallback = Ptr () -> Ptr () -> IO ()
- type NotificationClosedCallback = IO ()
- data NotificationClosedSignalInfo
- afterNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
- genClosure_NotificationClosed :: NotificationClosedCallback -> IO Closure
- mk_NotificationClosedCallback :: C_NotificationClosedCallback -> IO (FunPtr C_NotificationClosedCallback)
- noNotificationClosedCallback :: Maybe NotificationClosedCallback
- onNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
- wrap_NotificationClosedCallback :: NotificationClosedCallback -> Ptr () -> Ptr () -> IO ()
Exported types
newtype Notification Source #
Constructors
| Notification (ManagedPtr Notification) |
Instances
| GObject Notification Source # | |
| IsObject Notification Source # | |
| IsNotification Notification Source # | |
| ((~) * info (ResolveNotificationMethod t Notification), MethodInfo * info Notification p) => IsLabel t (Notification -> p) Source # | |
| ((~) * info (ResolveNotificationMethod t Notification), MethodInfo * info Notification p) => IsLabelProxy t (Notification -> p) Source # | |
| HasAttributeList * Notification Source # | |
| type SignalList Notification Source # | |
| type AttributeList Notification Source # | |
class GObject o => IsNotification o Source #
Instances
| (GObject a, UnknownAncestorError Constraint Notification a) => IsNotification a Source # | |
| IsNotification Notification Source # | |
toNotification :: IsNotification o => o -> IO Notification Source #
Methods
clicked
data NotificationClickedMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsNotification a) => MethodInfo * NotificationClickedMethodInfo a signature Source # | |
notificationClicked :: (MonadIO m, IsNotification a) => a -> m () Source #
close
data NotificationCloseMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsNotification a) => MethodInfo * NotificationCloseMethodInfo a signature Source # | |
notificationClose :: (MonadIO m, IsNotification a) => a -> m () Source #
getBody
data NotificationGetBodyMethodInfo Source #
Instances
| ((~) * signature (m Text), MonadIO m, IsNotification a) => MethodInfo * NotificationGetBodyMethodInfo a signature Source # | |
notificationGetBody :: (MonadIO m, IsNotification a) => a -> m Text Source #
getId
data NotificationGetIdMethodInfo Source #
Instances
| ((~) * signature (m Word64), MonadIO m, IsNotification a) => MethodInfo * NotificationGetIdMethodInfo a signature Source # | |
notificationGetId :: (MonadIO m, IsNotification a) => a -> m Word64 Source #
getTitle
data NotificationGetTitleMethodInfo Source #
Instances
| ((~) * signature (m Text), MonadIO m, IsNotification a) => MethodInfo * NotificationGetTitleMethodInfo a signature Source # | |
notificationGetTitle :: (MonadIO m, IsNotification a) => a -> m Text Source #
Properties
body
data NotificationBodyPropertyInfo Source #
Instances
| AttrInfo NotificationBodyPropertyInfo Source # | |
| type AttrSetTypeConstraint NotificationBodyPropertyInfo Source # | |
| type AttrOrigin NotificationBodyPropertyInfo Source # | |
| type AttrLabel NotificationBodyPropertyInfo Source # | |
| type AttrGetType NotificationBodyPropertyInfo Source # | |
| type AttrBaseTypeConstraint NotificationBodyPropertyInfo Source # | |
| type AttrAllowedOps NotificationBodyPropertyInfo Source # | |
getNotificationBody :: (MonadIO m, IsNotification o) => o -> m Text Source #
notificationBody :: AttrLabelProxy "body" Source #
id
data NotificationIdPropertyInfo Source #
Instances
| AttrInfo NotificationIdPropertyInfo Source # | |
| type AttrSetTypeConstraint NotificationIdPropertyInfo Source # | |
| type AttrOrigin NotificationIdPropertyInfo Source # | |
| type AttrLabel NotificationIdPropertyInfo Source # | |
| type AttrGetType NotificationIdPropertyInfo Source # | |
| type AttrBaseTypeConstraint NotificationIdPropertyInfo Source # | |
| type AttrAllowedOps NotificationIdPropertyInfo Source # | |
getNotificationId :: (MonadIO m, IsNotification o) => o -> m Word64 Source #
notificationId :: AttrLabelProxy "id" Source #
title
data NotificationTitlePropertyInfo Source #
Instances
| AttrInfo NotificationTitlePropertyInfo Source # | |
| type AttrSetTypeConstraint NotificationTitlePropertyInfo Source # | |
| type AttrOrigin NotificationTitlePropertyInfo Source # | |
| type AttrLabel NotificationTitlePropertyInfo Source # | |
| type AttrGetType NotificationTitlePropertyInfo Source # | |
| type AttrBaseTypeConstraint NotificationTitlePropertyInfo Source # | |
| type AttrAllowedOps NotificationTitlePropertyInfo Source # | |
getNotificationTitle :: (MonadIO m, IsNotification o) => o -> m Text Source #
notificationTitle :: AttrLabelProxy "title" Source #
Signals
clicked
type NotificationClickedCallback = IO () Source #
data NotificationClickedSignalInfo Source #
Instances
| SignalInfo NotificationClickedSignalInfo Source # | |
| type HaskellCallbackType NotificationClickedSignalInfo Source # | |
afterNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId Source #
genClosure_NotificationClicked :: NotificationClickedCallback -> IO Closure Source #
mk_NotificationClickedCallback :: C_NotificationClickedCallback -> IO (FunPtr C_NotificationClickedCallback) Source #
onNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId Source #
wrap_NotificationClickedCallback :: NotificationClickedCallback -> Ptr () -> Ptr () -> IO () Source #
closed
type NotificationClosedCallback = IO () Source #
data NotificationClosedSignalInfo Source #
Instances
| SignalInfo NotificationClosedSignalInfo Source # | |
| type HaskellCallbackType NotificationClosedSignalInfo Source # | |
afterNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId Source #
genClosure_NotificationClosed :: NotificationClosedCallback -> IO Closure Source #
mk_NotificationClosedCallback :: C_NotificationClosedCallback -> IO (FunPtr C_NotificationClosedCallback) Source #
onNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId Source #
wrap_NotificationClosedCallback :: NotificationClosedCallback -> Ptr () -> Ptr () -> IO () Source #