| 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 |
GI.GtkSource.Objects.File
Contents
Description
- newtype File = File (ManagedPtr File)
- class GObject o => IsFile o
- toFile :: IsFile o => o -> IO File
- noFile :: Maybe File
- data FileCheckFileOnDiskMethodInfo
- fileCheckFileOnDisk :: (HasCallStack, MonadIO m, IsFile a) => a -> m ()
- data FileGetCompressionTypeMethodInfo
- fileGetCompressionType :: (HasCallStack, MonadIO m, IsFile a) => a -> m CompressionType
- data FileGetEncodingMethodInfo
- fileGetEncoding :: (HasCallStack, MonadIO m, IsFile a) => a -> m Encoding
- data FileGetLocationMethodInfo
- fileGetLocation :: (HasCallStack, MonadIO m, IsFile a) => a -> m File
- data FileGetNewlineTypeMethodInfo
- fileGetNewlineType :: (HasCallStack, MonadIO m, IsFile a) => a -> m NewlineType
- data FileIsDeletedMethodInfo
- fileIsDeleted :: (HasCallStack, MonadIO m, IsFile a) => a -> m Bool
- data FileIsExternallyModifiedMethodInfo
- fileIsExternallyModified :: (HasCallStack, MonadIO m, IsFile a) => a -> m Bool
- data FileIsLocalMethodInfo
- fileIsLocal :: (HasCallStack, MonadIO m, IsFile a) => a -> m Bool
- data FileIsReadonlyMethodInfo
- fileIsReadonly :: (HasCallStack, MonadIO m, IsFile a) => a -> m Bool
- fileNew :: (HasCallStack, MonadIO m) => m File
- data FileSetLocationMethodInfo
- fileSetLocation :: (HasCallStack, MonadIO m, IsFile a, IsFile b) => a -> Maybe b -> m ()
- data FileCompressionTypePropertyInfo
- fileCompressionType :: AttrLabelProxy "compressionType"
- getFileCompressionType :: (MonadIO m, IsFile o) => o -> m CompressionType
- data FileEncodingPropertyInfo
- fileEncoding :: AttrLabelProxy "encoding"
- getFileEncoding :: (MonadIO m, IsFile o) => o -> m Encoding
- data FileLocationPropertyInfo
- clearFileLocation :: (MonadIO m, IsFile o) => o -> m ()
- constructFileLocation :: (IsFile o, IsFile a) => a -> IO (GValueConstruct o)
- fileLocation :: AttrLabelProxy "location"
- getFileLocation :: (MonadIO m, IsFile o) => o -> m File
- setFileLocation :: (MonadIO m, IsFile o, IsFile a) => o -> a -> m ()
- data FileNewlineTypePropertyInfo
- fileNewlineType :: AttrLabelProxy "newlineType"
- getFileNewlineType :: (MonadIO m, IsFile o) => o -> m NewlineType
- data FileReadOnlyPropertyInfo
- fileReadOnly :: AttrLabelProxy "readOnly"
- getFileReadOnly :: (MonadIO m, IsFile o) => o -> m Bool
Exported types
Constructors
| File (ManagedPtr File) |
Instances
| GObject File Source # | |
| IsObject File Source # | |
| IsFile File Source # | |
| ((~) * info (ResolveFileMethod t File), MethodInfo * info File p) => IsLabel t (File -> p) Source # | |
| ((~) * info (ResolveFileMethod t File), MethodInfo * info File p) => IsLabelProxy t (File -> p) Source # | |
| HasAttributeList * File Source # | |
| type AttributeList File Source # | |
| type SignalList File Source # | |
Methods
checkFileOnDisk
data FileCheckFileOnDiskMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsFile a) => MethodInfo * FileCheckFileOnDiskMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsFile a) | |
| => a |
|
| -> m () |
Checks synchronously the file on disk, to know whether the file is externally modified, or has been deleted, and whether the file is read-only.
File doesn't create a FileMonitor to track those properties, so
this function needs to be called instead. Creating lots of 'GI.Gio.Objects.FileMonitor.FileMonitor'\'s
would take lots of resources.
Since this function is synchronous, it is advised to call it only on local
files. See fileIsLocal.
Since: 3.18
getCompressionType
data FileGetCompressionTypeMethodInfo Source #
Instances
| ((~) * signature (m CompressionType), MonadIO m, IsFile a) => MethodInfo * FileGetCompressionTypeMethodInfo a signature Source # | |
fileGetCompressionType Source #
Arguments
| :: (HasCallStack, MonadIO m, IsFile a) | |
| => a |
|
| -> m CompressionType | Returns: the compression type. |
No description available in the introspection data.
Since: 3.14
getEncoding
data FileGetEncodingMethodInfo Source #
Instances
| ((~) * signature (m Encoding), MonadIO m, IsFile a) => MethodInfo * FileGetEncodingMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsFile a) | |
| => a |
|
| -> m Encoding | Returns: the character encoding. |
getLocation
data FileGetLocationMethodInfo Source #
Instances
| ((~) * signature (m File), MonadIO m, IsFile a) => MethodInfo * FileGetLocationMethodInfo a signature Source # | |
No description available in the introspection data.
Since: 3.14
getNewlineType
data FileGetNewlineTypeMethodInfo Source #
Instances
| ((~) * signature (m NewlineType), MonadIO m, IsFile a) => MethodInfo * FileGetNewlineTypeMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsFile a) | |
| => a |
|
| -> m NewlineType | Returns: the newline type. |
No description available in the introspection data.
Since: 3.14
isDeleted
data FileIsDeletedMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsFile a) => MethodInfo * FileIsDeletedMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsFile a) | |
| => a |
|
| -> m Bool | Returns: whether the file has been deleted. |
Returns whether the file has been deleted. If the
File:location is Nothing, returns False.
To have an up-to-date value, you must first call
fileCheckFileOnDisk.
Since: 3.18
isExternallyModified
data FileIsExternallyModifiedMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsFile a) => MethodInfo * FileIsExternallyModifiedMethodInfo a signature Source # | |
fileIsExternallyModified Source #
Arguments
| :: (HasCallStack, MonadIO m, IsFile a) | |
| => a |
|
| -> m Bool | Returns: whether the file is externally modified. |
Returns whether the file is externally modified. If the
File:location is Nothing, returns False.
To have an up-to-date value, you must first call
fileCheckFileOnDisk.
Since: 3.18
isLocal
data FileIsLocalMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsFile a) => MethodInfo * FileIsLocalMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsFile a) | |
| => a |
|
| -> m Bool | Returns: whether the file is local. |
isReadonly
data FileIsReadonlyMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsFile a) => MethodInfo * FileIsReadonlyMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsFile a) | |
| => a |
|
| -> m Bool | Returns: whether the file is read-only. |
Returns whether the file is read-only. If the
File:location is Nothing, returns False.
To have an up-to-date value, you must first call
fileCheckFileOnDisk.
Since: 3.18
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m File | Returns: a new |
No description available in the introspection data.
Since: 3.14
setLocation
data FileSetLocationMethodInfo Source #
Instances
| ((~) * signature (Maybe b -> m ()), MonadIO m, IsFile a, IsFile b) => MethodInfo * FileSetLocationMethodInfo a signature Source # | |
Sets the location.
Since: 3.14
Properties
compressionType
data FileCompressionTypePropertyInfo Source #
Instances
fileCompressionType :: AttrLabelProxy "compressionType" Source #
getFileCompressionType :: (MonadIO m, IsFile o) => o -> m CompressionType Source #
encoding
data FileEncodingPropertyInfo Source #
Instances
fileEncoding :: AttrLabelProxy "encoding" Source #
location
data FileLocationPropertyInfo Source #
Instances
clearFileLocation :: (MonadIO m, IsFile o) => o -> m () Source #
constructFileLocation :: (IsFile o, IsFile a) => a -> IO (GValueConstruct o) Source #
fileLocation :: AttrLabelProxy "location" Source #
newlineType
data FileNewlineTypePropertyInfo Source #
Instances
fileNewlineType :: AttrLabelProxy "newlineType" Source #
getFileNewlineType :: (MonadIO m, IsFile o) => o -> m NewlineType Source #
readOnly
data FileReadOnlyPropertyInfo Source #
Instances
fileReadOnly :: AttrLabelProxy "readOnly" Source #