Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
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
- loadableIconLoad :: (HasCallStack, MonadIO m, IsLoadableIcon a, IsCancellable b) => a -> Int32 -> Maybe b -> m (InputStream, Text)
- loadableIconLoadAsync :: (HasCallStack, MonadIO m, IsLoadableIcon a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- loadableIconLoadFinish :: (HasCallStack, MonadIO m, IsLoadableIcon a, IsAsyncResult b) => a -> b -> m (InputStream, Text)
Exported types
newtype LoadableIcon Source #
Memory-managed wrapper type.
Instances
Eq LoadableIcon Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon (==) :: LoadableIcon -> LoadableIcon -> Bool # (/=) :: LoadableIcon -> LoadableIcon -> Bool # | |
IsGValue LoadableIcon Source # | Convert |
Defined in GI.Gio.Interfaces.LoadableIcon toGValue :: LoadableIcon -> IO GValue # fromGValue :: GValue -> IO LoadableIcon # | |
ManagedPtrNewtype LoadableIcon Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon | |
TypedObject LoadableIcon Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon | |
GObject LoadableIcon Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon | |
HasParentTypes LoadableIcon Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon | |
type ParentTypes LoadableIcon Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon |
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
Overloaded methods
load
:: (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
loadableIconLoadAsync Source #
:: (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
loadableIconLoadFinish Source #
:: (HasCallStack, MonadIO m, IsLoadableIcon a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (InputStream, Text) | Returns: a |
Finishes an asynchronous icon load started in loadableIconLoadAsync
.