| 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.FileLoader
Contents
Description
- newtype FileLoader = FileLoader (ManagedPtr FileLoader)
- class GObject o => IsFileLoader o
- toFileLoader :: IsFileLoader o => o -> IO FileLoader
- noFileLoader :: Maybe FileLoader
- data FileLoaderGetBufferMethodInfo
- fileLoaderGetBuffer :: (MonadIO m, IsFileLoader a) => a -> m Buffer
- data FileLoaderGetCompressionTypeMethodInfo
- fileLoaderGetCompressionType :: (MonadIO m, IsFileLoader a) => a -> m CompressionType
- data FileLoaderGetEncodingMethodInfo
- fileLoaderGetEncoding :: (MonadIO m, IsFileLoader a) => a -> m Encoding
- data FileLoaderGetFileMethodInfo
- fileLoaderGetFile :: (MonadIO m, IsFileLoader a) => a -> m File
- data FileLoaderGetInputStreamMethodInfo
- fileLoaderGetInputStream :: (MonadIO m, IsFileLoader a) => a -> m (Maybe InputStream)
- data FileLoaderGetLocationMethodInfo
- fileLoaderGetLocation :: (MonadIO m, IsFileLoader a) => a -> m (Maybe File)
- data FileLoaderGetNewlineTypeMethodInfo
- fileLoaderGetNewlineType :: (MonadIO m, IsFileLoader a) => a -> m NewlineType
- data FileLoaderLoadAsyncMethodInfo
- fileLoaderLoadAsync :: (MonadIO m, IsFileLoader a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe FileProgressCallback -> Maybe AsyncReadyCallback -> m ()
- data FileLoaderLoadFinishMethodInfo
- fileLoaderLoadFinish :: (MonadIO m, IsFileLoader a, IsAsyncResult b) => a -> b -> m ()
- fileLoaderNew :: (MonadIO m, IsBuffer a, IsFile b) => a -> b -> m FileLoader
- fileLoaderNewFromStream :: (MonadIO m, IsBuffer a, IsFile b, IsInputStream c) => a -> b -> c -> m FileLoader
- data FileLoaderSetCandidateEncodingsMethodInfo
- fileLoaderSetCandidateEncodings :: (MonadIO m, IsFileLoader a) => a -> [Encoding] -> m ()
- data FileLoaderBufferPropertyInfo
- constructFileLoaderBuffer :: (IsFileLoader o, IsBuffer a) => a -> IO (GValueConstruct o)
- fileLoaderBuffer :: AttrLabelProxy "buffer"
- getFileLoaderBuffer :: (MonadIO m, IsFileLoader o) => o -> m Buffer
- data FileLoaderFilePropertyInfo
- constructFileLoaderFile :: (IsFileLoader o, IsFile a) => a -> IO (GValueConstruct o)
- fileLoaderFile :: AttrLabelProxy "file"
- getFileLoaderFile :: (MonadIO m, IsFileLoader o) => o -> m File
- data FileLoaderInputStreamPropertyInfo
- constructFileLoaderInputStream :: (IsFileLoader o, IsInputStream a) => a -> IO (GValueConstruct o)
- fileLoaderInputStream :: AttrLabelProxy "inputStream"
- getFileLoaderInputStream :: (MonadIO m, IsFileLoader o) => o -> m (Maybe InputStream)
- data FileLoaderLocationPropertyInfo
- constructFileLoaderLocation :: (IsFileLoader o, IsFile a) => a -> IO (GValueConstruct o)
- fileLoaderLocation :: AttrLabelProxy "location"
- getFileLoaderLocation :: (MonadIO m, IsFileLoader o) => o -> m (Maybe File)
Exported types
newtype FileLoader Source #
Constructors
| FileLoader (ManagedPtr FileLoader) |
Instances
| GObject FileLoader Source # | |
| IsObject FileLoader Source # | |
| IsFileLoader FileLoader Source # | |
| ((~) * info (ResolveFileLoaderMethod t FileLoader), MethodInfo * info FileLoader p) => IsLabel t (FileLoader -> p) Source # | |
| ((~) * info (ResolveFileLoaderMethod t FileLoader), MethodInfo * info FileLoader p) => IsLabelProxy t (FileLoader -> p) Source # | |
| HasAttributeList * FileLoader Source # | |
| type AttributeList FileLoader Source # | |
| type SignalList FileLoader Source # | |
class GObject o => IsFileLoader o Source #
Instances
toFileLoader :: IsFileLoader o => o -> IO FileLoader Source #
Methods
getBuffer
data FileLoaderGetBufferMethodInfo Source #
Instances
| ((~) * signature (m Buffer), MonadIO m, IsFileLoader a) => MethodInfo * FileLoaderGetBufferMethodInfo a signature Source # | |
Arguments
| :: (MonadIO m, IsFileLoader a) | |
| => a |
|
| -> m Buffer | Returns: the |
No description available in the introspection data.
Since: 3.14
getCompressionType
data FileLoaderGetCompressionTypeMethodInfo Source #
Instances
| ((~) * signature (m CompressionType), MonadIO m, IsFileLoader a) => MethodInfo * FileLoaderGetCompressionTypeMethodInfo a signature Source # | |
fileLoaderGetCompressionType Source #
Arguments
| :: (MonadIO m, IsFileLoader a) | |
| => a |
|
| -> m CompressionType | Returns: the detected compression type. |
No description available in the introspection data.
Since: 3.14
getEncoding
data FileLoaderGetEncodingMethodInfo Source #
Instances
| ((~) * signature (m Encoding), MonadIO m, IsFileLoader a) => MethodInfo * FileLoaderGetEncodingMethodInfo a signature Source # | |
fileLoaderGetEncoding Source #
Arguments
| :: (MonadIO m, IsFileLoader a) | |
| => a |
|
| -> m Encoding | Returns: the detected file encoding. |
No description available in the introspection data.
Since: 3.14
getFile
data FileLoaderGetFileMethodInfo Source #
Instances
| ((~) * signature (m File), MonadIO m, IsFileLoader a) => MethodInfo * FileLoaderGetFileMethodInfo a signature Source # | |
Arguments
| :: (MonadIO m, IsFileLoader a) | |
| => a |
|
| -> m File | Returns: the |
No description available in the introspection data.
Since: 3.14
getInputStream
data FileLoaderGetInputStreamMethodInfo Source #
Instances
| ((~) * signature (m (Maybe InputStream)), MonadIO m, IsFileLoader a) => MethodInfo * FileLoaderGetInputStreamMethodInfo a signature Source # | |
fileLoaderGetInputStream Source #
Arguments
| :: (MonadIO m, IsFileLoader a) | |
| => a |
|
| -> m (Maybe InputStream) | Returns: the |
No description available in the introspection data.
Since: 3.14
getLocation
data FileLoaderGetLocationMethodInfo Source #
Instances
| ((~) * signature (m (Maybe File)), MonadIO m, IsFileLoader a) => MethodInfo * FileLoaderGetLocationMethodInfo a signature Source # | |
fileLoaderGetLocation Source #
Arguments
| :: (MonadIO m, IsFileLoader a) | |
| => a |
|
| -> m (Maybe File) | Returns: the |
No description available in the introspection data.
Since: 3.14
getNewlineType
data FileLoaderGetNewlineTypeMethodInfo Source #
Instances
| ((~) * signature (m NewlineType), MonadIO m, IsFileLoader a) => MethodInfo * FileLoaderGetNewlineTypeMethodInfo a signature Source # | |
fileLoaderGetNewlineType Source #
Arguments
| :: (MonadIO m, IsFileLoader a) | |
| => a |
|
| -> m NewlineType | Returns: the detected newline type. |
No description available in the introspection data.
Since: 3.14
loadAsync
data FileLoaderLoadAsyncMethodInfo Source #
Instances
| ((~) * signature (Int32 -> Maybe b -> Maybe FileProgressCallback -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsFileLoader a, IsCancellable b) => MethodInfo * FileLoaderLoadAsyncMethodInfo a signature Source # | |
Arguments
| :: (MonadIO m, IsFileLoader a, IsCancellable b) | |
| => a |
|
| -> Int32 |
|
| -> Maybe b |
|
| -> Maybe FileProgressCallback |
|
| -> Maybe AsyncReadyCallback |
|
| -> m () |
Loads asynchronously the file or input stream contents into the
Buffer. See the AsyncResult documentation to know how to use this
function.
Since: 3.14
loadFinish
data FileLoaderLoadFinishMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsFileLoader a, IsAsyncResult b) => MethodInfo * FileLoaderLoadFinishMethodInfo a signature Source # | |
Arguments
| :: (MonadIO m, IsFileLoader a, IsAsyncResult b) | |
| => a |
|
| -> b |
|
| -> m () | (Can throw |
Finishes a file loading started with fileLoaderLoadAsync.
If the contents has been loaded, the following File properties will
be updated: the location, the encoding, the newline type and the compression
type.
Since: 3.14
new
Arguments
| :: (MonadIO m, IsBuffer a, IsFile b) | |
| => a |
|
| -> b |
|
| -> m FileLoader | Returns: a new |
Creates a new FileLoader object. The contents is read from the
'GI.GtkSource.Objects.File.File'\'s location. If not already done, call
fileSetLocation before calling this constructor. The previous
location is anyway not needed, because as soon as the file loading begins,
the buffer is emptied.
Since: 3.14
newFromStream
fileLoaderNewFromStream Source #
Arguments
| :: (MonadIO m, IsBuffer a, IsFile b, IsInputStream c) | |
| => a |
|
| -> b |
|
| -> c |
|
| -> m FileLoader | Returns: a new |
Creates a new FileLoader object. The contents is read from stream.
Since: 3.14
setCandidateEncodings
data FileLoaderSetCandidateEncodingsMethodInfo Source #
Instances
| ((~) * signature ([Encoding] -> m ()), MonadIO m, IsFileLoader a) => MethodInfo * FileLoaderSetCandidateEncodingsMethodInfo a signature Source # | |
fileLoaderSetCandidateEncodings Source #
Arguments
| :: (MonadIO m, IsFileLoader a) | |
| => a |
|
| -> [Encoding] |
|
| -> m () |
Sets the candidate encodings for the file loading. The encodings are tried in the same order as the list.
For convenience, candidateEncodings can contain duplicates. Only the first
occurrence of a duplicated encoding is kept in the list.
By default the candidate encodings are (in that order in the list):
1. If set, the 'GI.GtkSource.Objects.File.File'\'s encoding as returned by
fileGetEncoding.
2. The default candidates as returned by
encodingGetDefaultCandidates.
Since: 3.14
Properties
buffer
data FileLoaderBufferPropertyInfo Source #
Instances
constructFileLoaderBuffer :: (IsFileLoader o, IsBuffer a) => a -> IO (GValueConstruct o) Source #
fileLoaderBuffer :: AttrLabelProxy "buffer" Source #
getFileLoaderBuffer :: (MonadIO m, IsFileLoader o) => o -> m Buffer Source #
file
data FileLoaderFilePropertyInfo Source #
Instances
constructFileLoaderFile :: (IsFileLoader o, IsFile a) => a -> IO (GValueConstruct o) Source #
fileLoaderFile :: AttrLabelProxy "file" Source #
getFileLoaderFile :: (MonadIO m, IsFileLoader o) => o -> m File Source #
inputStream
data FileLoaderInputStreamPropertyInfo Source #
Instances
constructFileLoaderInputStream :: (IsFileLoader o, IsInputStream a) => a -> IO (GValueConstruct o) Source #
fileLoaderInputStream :: AttrLabelProxy "inputStream" Source #
getFileLoaderInputStream :: (MonadIO m, IsFileLoader o) => o -> m (Maybe InputStream) Source #
location
data FileLoaderLocationPropertyInfo Source #
Instances
constructFileLoaderLocation :: (IsFileLoader o, IsFile a) => a -> IO (GValueConstruct o) Source #
fileLoaderLocation :: AttrLabelProxy "location" Source #
getFileLoaderLocation :: (MonadIO m, IsFileLoader o) => o -> m (Maybe File) Source #