Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gio.Interfaces.LoadableIcon
Description
GLoadableIcon
extends the Icon
interface and adds the ability
to load icons from streams.
Synopsis
- newtype LoadableIcon = LoadableIcon (ManagedPtr LoadableIcon)
- class (GObject o, IsDescendantOf LoadableIcon o) => IsLoadableIcon o
- toLoadableIcon :: (MonadIO m, IsLoadableIcon o) => o -> m LoadableIcon
- type family ResolveLoadableIconMethod (t :: Symbol) o where ...
- data LoadableIconLoadMethodInfo
- loadableIconLoad :: (HasCallStack, MonadIO m, IsLoadableIcon a, IsCancellable b) => a -> Int32 -> Maybe b -> m (InputStream, Text)
- data LoadableIconLoadAsyncMethodInfo
- loadableIconLoadAsync :: (HasCallStack, MonadIO m, IsLoadableIcon a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data LoadableIconLoadFinishMethodInfo
- loadableIconLoadFinish :: (HasCallStack, MonadIO m, IsLoadableIcon a, IsAsyncResult b) => a -> b -> m (InputStream, Text)
Exported types
newtype LoadableIcon Source #
Memory-managed wrapper type.
Constructors
LoadableIcon (ManagedPtr LoadableIcon) |
Instances
class (GObject o, IsDescendantOf LoadableIcon o) => IsLoadableIcon o Source #
Type class for types which can be safely cast to LoadableIcon
, for instance with toLoadableIcon
.
Instances
(GObject o, IsDescendantOf LoadableIcon o) => IsLoadableIcon o Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon |
toLoadableIcon :: (MonadIO m, IsLoadableIcon o) => o -> m LoadableIcon Source #
Cast to LoadableIcon
, 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, equal, forceFloating, freezeNotify, getv, hash, isFloating, load, loadAsync, loadFinish, notify, notifyByPspec, ref, refSink, runDispose, serialize, stealData, stealQdata, thawNotify, toString, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
type family ResolveLoadableIconMethod (t :: Symbol) o where ... Source #
Equations
load
data LoadableIconLoadMethodInfo Source #
Instances
(signature ~ (Int32 -> Maybe b -> m (InputStream, Text)), MonadIO m, IsLoadableIcon a, IsCancellable b) => OverloadedMethod LoadableIconLoadMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo LoadableIconLoadMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon Methods |
Arguments
:: (HasCallStack, MonadIO m, IsLoadableIcon a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> m (InputStream, Text) | Returns: a |
Loads a loadable icon. For the asynchronous version of this function,
see loadableIconLoadAsync
.
loadAsync
data LoadableIconLoadAsyncMethodInfo Source #
Instances
(signature ~ (Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsLoadableIcon a, IsCancellable b) => OverloadedMethod LoadableIconLoadAsyncMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo LoadableIconLoadAsyncMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon Methods |
loadableIconLoadAsync Source #
Arguments
:: (HasCallStack, MonadIO m, IsLoadableIcon a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Loads an icon asynchronously. To finish this function, see
loadableIconLoadFinish
. For the synchronous, blocking
version of this function, see loadableIconLoad
.
loadFinish
data LoadableIconLoadFinishMethodInfo Source #
Instances
(signature ~ (b -> m (InputStream, Text)), MonadIO m, IsLoadableIcon a, IsAsyncResult b) => OverloadedMethod LoadableIconLoadFinishMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo LoadableIconLoadFinishMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon Methods |
loadableIconLoadFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsLoadableIcon a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (InputStream, Text) | Returns: a |
Finishes an asynchronous icon load started in loadableIconLoadAsync
.