Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
FileIcon
specifies an icon by pointing to an image file
to be used as icon.
Synopsis
- newtype FileIcon = FileIcon (ManagedPtr FileIcon)
- class (GObject o, IsDescendantOf FileIcon o) => IsFileIcon o
- toFileIcon :: (MonadIO m, IsFileIcon o) => o -> m FileIcon
- fileIconGetFile :: (HasCallStack, MonadIO m, IsFileIcon a) => a -> m File
- fileIconNew :: (HasCallStack, MonadIO m, IsFile a) => a -> m FileIcon
- constructFileIconFile :: (IsFileIcon o, MonadIO m, IsFile a) => a -> m (GValueConstruct o)
- getFileIconFile :: (MonadIO m, IsFileIcon o) => o -> m File
Exported types
Memory-managed wrapper type.
Instances
Eq FileIcon Source # | |
GObject FileIcon Source # | |
Defined in GI.Gio.Objects.FileIcon | |
ManagedPtrNewtype FileIcon Source # | |
Defined in GI.Gio.Objects.FileIcon toManagedPtr :: FileIcon -> ManagedPtr FileIcon # | |
TypedObject FileIcon Source # | |
Defined in GI.Gio.Objects.FileIcon | |
HasParentTypes FileIcon Source # | |
Defined in GI.Gio.Objects.FileIcon | |
IsGValue (Maybe FileIcon) Source # | Convert |
Defined in GI.Gio.Objects.FileIcon | |
type ParentTypes FileIcon Source # | |
Defined in GI.Gio.Objects.FileIcon |
class (GObject o, IsDescendantOf FileIcon o) => IsFileIcon o Source #
Type class for types which can be safely cast to FileIcon
, for instance with toFileIcon
.
Instances
(GObject o, IsDescendantOf FileIcon o) => IsFileIcon o Source # | |
Defined in GI.Gio.Objects.FileIcon |
toFileIcon :: (MonadIO m, IsFileIcon o) => o -> m FileIcon Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, equal, forceFloating, freezeNotify, getv, isFloating, load, loadAsync, loadFinish, notify, notifyByPspec, ref, refSink, runDispose, serialize, stealData, stealQdata, thawNotify, toString, unref, watchClosure.
Getters
getData, getFile, getProperty, getQdata.
Setters
getFile
:: (HasCallStack, MonadIO m, IsFileIcon a) | |
=> a |
|
-> m File | Returns: a |
Gets the File
associated with the given icon
.
new
:: (HasCallStack, MonadIO m, IsFile a) | |
=> a |
|
-> m FileIcon |
Creates a new icon for a file.
Properties
file
The file containing the icon.
constructFileIconFile :: (IsFileIcon o, MonadIO m, IsFile a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “file
” property. This is rarely needed directly, but it is used by new
.
getFileIconFile :: (MonadIO m, IsFileIcon o) => o -> m File Source #
Get the value of the “file
” property.
When overloading is enabled, this is equivalent to
get
fileIcon #file