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.Objects.FileIcon
Description
GFileIcon
specifies an icon by pointing to an image file
to be used as icon.
It implements LoadableIcon
.
Synopsis
- newtype FileIcon = FileIcon (ManagedPtr FileIcon)
- class (GObject o, IsDescendantOf FileIcon o) => IsFileIcon o
- toFileIcon :: (MonadIO m, IsFileIcon o) => o -> m FileIcon
- type family ResolveFileIconMethod (t :: Symbol) o where ...
- data FileIconGetFileMethodInfo
- fileIconGetFile :: (HasCallStack, MonadIO m, IsFileIcon a) => a -> m File
- fileIconNew :: (HasCallStack, MonadIO m, IsFile a) => a -> m FileIcon
- data FileIconFilePropertyInfo
- constructFileIconFile :: (IsFileIcon o, MonadIO m, IsFile a) => a -> m (GValueConstruct o)
- fileIconFile :: AttrLabelProxy "file"
- getFileIconFile :: (MonadIO m, IsFileIcon o) => o -> m File
Exported types
Memory-managed wrapper type.
Constructors
FileIcon (ManagedPtr FileIcon) |
Instances
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, hash, isFloating, load, loadAsync, loadFinish, notify, notifyByPspec, ref, refSink, runDispose, serialize, stealData, stealQdata, thawNotify, toString, unref, watchClosure.
Getters
getData, getFile, getProperty, getQdata.
Setters
type family ResolveFileIconMethod (t :: Symbol) o where ... Source #
Equations
getFile
data FileIconGetFileMethodInfo Source #
Instances
(signature ~ m File, MonadIO m, IsFileIcon a) => OverloadedMethod FileIconGetFileMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.FileIcon Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo FileIconGetFileMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.FileIcon Methods |
Arguments
:: (HasCallStack, MonadIO m, IsFileIcon a) | |
=> a |
|
-> m File | Returns: a |
Gets the File
associated with the given icon
.
new
Arguments
:: (HasCallStack, MonadIO m, IsFile a) | |
=> a |
|
-> m FileIcon |
Creates a new icon for a file.
Properties
file
The file containing the icon.
data FileIconFilePropertyInfo Source #
Instances
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
.
fileIconFile :: AttrLabelProxy "file" Source #
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