Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GDBusMenuModel
is an implementation of MenuModel
that can be
used as a proxy for a menu model that is exported over D-Bus with
dBusConnectionExportMenuModel
.
Synopsis
- newtype DBusMenuModel = DBusMenuModel (ManagedPtr DBusMenuModel)
- class (GObject o, IsDescendantOf DBusMenuModel o) => IsDBusMenuModel o
- toDBusMenuModel :: (MonadIO m, IsDBusMenuModel o) => o -> m DBusMenuModel
- dBusMenuModelGet :: (HasCallStack, MonadIO m, IsDBusConnection a) => a -> Maybe Text -> Text -> m DBusMenuModel
Exported types
newtype DBusMenuModel Source #
Memory-managed wrapper type.
Instances
Eq DBusMenuModel Source # | |
Defined in GI.Gio.Objects.DBusMenuModel (==) :: DBusMenuModel -> DBusMenuModel -> Bool # (/=) :: DBusMenuModel -> DBusMenuModel -> Bool # | |
GObject DBusMenuModel Source # | |
Defined in GI.Gio.Objects.DBusMenuModel | |
ManagedPtrNewtype DBusMenuModel Source # | |
Defined in GI.Gio.Objects.DBusMenuModel | |
TypedObject DBusMenuModel Source # | |
Defined in GI.Gio.Objects.DBusMenuModel | |
HasParentTypes DBusMenuModel Source # | |
Defined in GI.Gio.Objects.DBusMenuModel | |
IsGValue (Maybe DBusMenuModel) Source # | Convert |
Defined in GI.Gio.Objects.DBusMenuModel gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe DBusMenuModel -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe DBusMenuModel) # | |
type ParentTypes DBusMenuModel Source # | |
Defined in GI.Gio.Objects.DBusMenuModel |
class (GObject o, IsDescendantOf DBusMenuModel o) => IsDBusMenuModel o Source #
Type class for types which can be safely cast to DBusMenuModel
, for instance with toDBusMenuModel
.
Instances
(GObject o, IsDescendantOf DBusMenuModel o) => IsDBusMenuModel o Source # | |
Defined in GI.Gio.Objects.DBusMenuModel |
toDBusMenuModel :: (MonadIO m, IsDBusMenuModel o) => o -> m DBusMenuModel Source #
Cast to DBusMenuModel
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, isMutable, itemsChanged, iterateItemAttributes, iterateItemLinks, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getItemAttributeValue, getItemLink, getNItems, getProperty, getQdata.
Setters
get
:: (HasCallStack, MonadIO m, IsDBusConnection a) | |
=> a |
|
-> Maybe Text |
|
-> Text |
|
-> m DBusMenuModel | Returns: a |
Obtains a DBusMenuModel
for the menu model which is exported
at the given busName
and objectPath
.
The thread default main context is taken at the time of this call. All signals on the menu model (and any linked models) are reported with respect to this context. All calls on the returned menu model (and linked models) must also originate from this same context, with the thread default main context unchanged.
Since: 2.32