gi-gio-2.0.25: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.DBusMenuModel

Contents

Description

tDBusMenuModel is an implementation of tMenuModel that can be used as a proxy for a menu model that is exported over D-Bus with dBusConnectionExportMenuModel.

Synopsis

Exported types

newtype DBusMenuModel Source #

Memory-managed wrapper type.

Constructors

DBusMenuModel (ManagedPtr DBusMenuModel) 
Instances
Eq DBusMenuModel Source # 
Instance details

Defined in GI.Gio.Objects.DBusMenuModel

GObject DBusMenuModel Source # 
Instance details

Defined in GI.Gio.Objects.DBusMenuModel

Methods

gobjectType :: IO GType

IsGValue DBusMenuModel Source #

Convert DBusMenuModel to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gio.Objects.DBusMenuModel

Methods

toGValue :: DBusMenuModel -> IO GValue

fromGValue :: GValue -> IO DBusMenuModel

HasParentTypes DBusMenuModel Source # 
Instance details

Defined in GI.Gio.Objects.DBusMenuModel

type ParentTypes DBusMenuModel Source # 
Instance details

Defined in GI.Gio.Objects.DBusMenuModel

type ParentTypes DBusMenuModel = MenuModel ': (Object ': ([] :: [Type]))

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 # 
Instance details

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.

noDBusMenuModel :: Maybe DBusMenuModel Source #

A convenience alias for Nothing :: Maybe DBusMenuModel.

Methods

Overloaded methods

get

dBusMenuModelGet Source #

Arguments

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

connection: a tDBusConnection

-> Maybe Text

busName: the bus name which exports the menu model or Nothing if connection is not a message bus connection

-> Text

objectPath: the object path at which the menu model is exported

-> m DBusMenuModel

Returns: a tDBusMenuModel object. Free with objectUnref.

Obtains a tDBusMenuModel 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