Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
An IBusProxy is the base of all proxy objects,
which communicate the corresponding IBusServices
on the other end of
IBusConnection.
For example, IBus clients (such as editors, web browsers) invoke the proxy
object,
IBusInputContext to communicate with the InputContext service of the
ibus-daemon.
Almost all services have corresponding proxies, except very simple services.
Synopsis
- newtype Proxy = Proxy (ManagedPtr Proxy)
- class (GObject o, IsDescendantOf Proxy o) => IsProxy o
- toProxy :: (MonadIO m, IsProxy o) => o -> m Proxy
- proxyDestroy :: (HasCallStack, MonadIO m, IsProxy a) => a -> m ()
- type C_ProxyDestroyCallback = Ptr () -> Ptr () -> IO ()
- type ProxyDestroyCallback = IO ()
- afterProxyDestroy :: (IsProxy a, MonadIO m) => a -> ProxyDestroyCallback -> m SignalHandlerId
- genClosure_ProxyDestroy :: MonadIO m => ProxyDestroyCallback -> m (GClosure C_ProxyDestroyCallback)
- mk_ProxyDestroyCallback :: C_ProxyDestroyCallback -> IO (FunPtr C_ProxyDestroyCallback)
- noProxyDestroyCallback :: Maybe ProxyDestroyCallback
- onProxyDestroy :: (IsProxy a, MonadIO m) => a -> ProxyDestroyCallback -> m SignalHandlerId
- wrap_ProxyDestroyCallback :: ProxyDestroyCallback -> C_ProxyDestroyCallback
Exported types
Memory-managed wrapper type.
Instances
Eq Proxy Source # | |
GObject Proxy Source # | |
Defined in GI.IBus.Objects.Proxy | |
ManagedPtrNewtype Proxy Source # | |
Defined in GI.IBus.Objects.Proxy toManagedPtr :: Proxy -> ManagedPtr Proxy | |
TypedObject Proxy Source # | |
Defined in GI.IBus.Objects.Proxy | |
HasParentTypes Proxy Source # | |
Defined in GI.IBus.Objects.Proxy | |
IsGValue (Maybe Proxy) Source # | Convert |
Defined in GI.IBus.Objects.Proxy gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Proxy -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Proxy) | |
type ParentTypes Proxy Source # | |
Defined in GI.IBus.Objects.Proxy |
class (GObject o, IsDescendantOf Proxy o) => IsProxy o Source #
Instances
(GObject o, IsDescendantOf Proxy o) => IsProxy o Source # | |
Defined in GI.IBus.Objects.Proxy |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, call, callFinish, callSync, callWithUnixFdList, callWithUnixFdListFinish, callWithUnixFdListSync, destroy, forceFloating, freezeNotify, getv, init, initAsync, initFinish, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCachedProperty, getCachedPropertyNames, getConnection, getData, getDefaultTimeout, getFlags, getInfo, getInterfaceInfo, getInterfaceName, getName, getNameOwner, getObject, getObjectPath, getProperty, getQdata.
Setters
setCachedProperty, setData, setDataFull, setDefaultTimeout, setInterfaceInfo, setObject, setProperty.
destroy
:: (HasCallStack, MonadIO m, IsProxy a) | |
=> a |
|
-> m () |
Dispose the proxy object. If the dbus connection is alive and the own variable above is TRUE (which is the default), org.freedesktop.IBus.Service.Destroy method will be called. Note that "destroy" signal might be emitted when ibus_proxy_destroy is called or the underlying dbus connection for the proxy is terminated. In the callback of the destroy signal, you might have to call something like 'g_object_unref(the_proxy);'.
Signals
destroy
type C_ProxyDestroyCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ProxyDestroyCallback = IO () Source #
Destroy and free an IBusProxy
See also: proxyDestroy
.
<note><para>Argument userData
is ignored in this function.</para></note>
afterProxyDestroy :: (IsProxy a, MonadIO m) => a -> ProxyDestroyCallback -> m SignalHandlerId Source #
Connect a signal handler for the destroy signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
proxy #destroy callback
genClosure_ProxyDestroy :: MonadIO m => ProxyDestroyCallback -> m (GClosure C_ProxyDestroyCallback) Source #
Wrap the callback into a GClosure
.
mk_ProxyDestroyCallback :: C_ProxyDestroyCallback -> IO (FunPtr C_ProxyDestroyCallback) Source #
Generate a function pointer callable from C code, from a C_ProxyDestroyCallback
.
noProxyDestroyCallback :: Maybe ProxyDestroyCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ProxyDestroyCallback
onProxyDestroy :: (IsProxy a, MonadIO m) => a -> ProxyDestroyCallback -> m SignalHandlerId Source #
Connect a signal handler for the destroy signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
proxy #destroy callback