Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
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
- 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 # | |
GObject LoadableIcon Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon | |
ManagedPtrNewtype LoadableIcon Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon | |
TypedObject LoadableIcon Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon | |
HasParentTypes LoadableIcon Source # | |
Defined in GI.Gio.Interfaces.LoadableIcon | |
IsGValue (Maybe LoadableIcon) Source # | Convert |
Defined in GI.Gio.Interfaces.LoadableIcon gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe LoadableIcon -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe 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
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
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
.