Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
BytesIcon
specifies an image held in memory in a common format (usually
png) to be used as icon.
Synopsis
- newtype BytesIcon = BytesIcon (ManagedPtr BytesIcon)
- class GObject o => IsBytesIcon o
- toBytesIcon :: (MonadIO m, IsBytesIcon o) => o -> m BytesIcon
- noBytesIcon :: Maybe BytesIcon
- bytesIconGetBytes :: (HasCallStack, MonadIO m, IsBytesIcon a) => a -> m Bytes
- bytesIconNew :: (HasCallStack, MonadIO m) => Bytes -> m BytesIcon
- constructBytesIconBytes :: IsBytesIcon o => Bytes -> IO (GValueConstruct o)
- getBytesIconBytes :: (MonadIO m, IsBytesIcon o) => o -> m Bytes
Exported types
Memory-managed wrapper type.
Instances
GObject BytesIcon Source # | |
Defined in GI.Gio.Objects.BytesIcon gobjectType :: BytesIcon -> IO GType # | |
IsObject BytesIcon Source # | |
Defined in GI.Gio.Objects.BytesIcon | |
IsIcon BytesIcon Source # | |
Defined in GI.Gio.Objects.BytesIcon | |
IsLoadableIcon BytesIcon Source # | |
Defined in GI.Gio.Objects.BytesIcon | |
IsBytesIcon BytesIcon Source # | |
Defined in GI.Gio.Objects.BytesIcon |
class GObject o => IsBytesIcon o Source #
Type class for types which can be safely cast to BytesIcon
, for instance with toBytesIcon
.
Instances
(GObject a, (UnknownAncestorError BytesIcon a :: Constraint)) => IsBytesIcon a Source # | |
Defined in GI.Gio.Objects.BytesIcon | |
IsBytesIcon BytesIcon Source # | |
Defined in GI.Gio.Objects.BytesIcon |
toBytesIcon :: (MonadIO m, IsBytesIcon o) => o -> m BytesIcon Source #
Methods
getBytes
:: (HasCallStack, MonadIO m, IsBytesIcon a) | |
=> a |
|
-> m Bytes |
Gets the Bytes
associated with the given icon
.
Since: 2.38
new
:: (HasCallStack, MonadIO m) | |
=> Bytes |
|
-> m BytesIcon |
Creates a new icon for a bytes.
Since: 2.38
Properties
bytes
The bytes containing the icon.
constructBytesIconBytes :: IsBytesIcon o => Bytes -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “bytes
” property. This is rarely needed directly, but it is used by new
.
getBytesIconBytes :: (MonadIO m, IsBytesIcon o) => o -> m Bytes Source #
Get the value of the “bytes
” property.
When overloading is enabled, this is equivalent to
get
bytesIcon #bytes