gi-gtksource-3.0.13: GtkSource bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GtkSource.Objects.File

Contents

Description

 

Synopsis

Exported types

newtype File Source #

Constructors

File (ManagedPtr File) 

Instances

GObject File Source # 

Methods

gobjectType :: File -> IO GType #

IsObject File Source # 
IsFile File Source # 
((~) * info (ResolveFileMethod t File), MethodInfo * info File p) => IsLabel t (File -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> File -> p #

((~) * info (ResolveFileMethod t File), MethodInfo * info File p) => IsLabelProxy t (File -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> File -> p #

HasAttributeList * File Source # 
type AttributeList File Source # 
type SignalList File Source # 

toFile :: IsFile o => o -> IO File Source #

Methods

checkFileOnDisk

data FileCheckFileOnDiskMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsFile a) => MethodInfo * FileCheckFileOnDiskMethodInfo a signature Source # 

fileCheckFileOnDisk Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> a

file: a File.

-> 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

fileGetCompressionType Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> a

file: a File.

-> 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 # 

fileGetEncoding Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> a

file: a File.

-> m Encoding

Returns: the character encoding.

The encoding is initially Nothing. After a successful file loading or saving operation, the encoding is non-Nothing.

Since: 3.14

getLocation

data FileGetLocationMethodInfo Source #

Instances

((~) * signature (m File), MonadIO m, IsFile a) => MethodInfo * FileGetLocationMethodInfo a signature Source # 

fileGetLocation Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> a

file: a File.

-> m File

Returns: the File.

No description available in the introspection data.

Since: 3.14

getNewlineType

fileGetNewlineType Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> a

file: a File.

-> 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 # 

fileIsDeleted Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> a

file: a File.

-> 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

fileIsExternallyModified Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> a

file: a File.

-> 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 # 

Methods

overloadedMethod :: MethodProxy FileIsLocalMethodInfo a -> signature -> s #

fileIsLocal Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> a

file: a File.

-> m Bool

Returns: whether the file is local.

Returns whether the file is local. If the File:location is Nothing, returns False.

Since: 3.18

isReadonly

data FileIsReadonlyMethodInfo Source #

Instances

((~) * signature (m Bool), MonadIO m, IsFile a) => MethodInfo * FileIsReadonlyMethodInfo a signature Source # 

fileIsReadonly Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> a

file: a File.

-> 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

fileNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m File

Returns: a new File object.

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 # 

fileSetLocation Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a, IsFile b) 
=> a

file: a File.

-> Maybe b

location: the new File, or Nothing.

-> m () 

Sets the location.

Since: 3.14

Properties

compressionType

data FileCompressionTypePropertyInfo Source #

Instances

AttrInfo FileCompressionTypePropertyInfo Source # 
type AttrOrigin FileCompressionTypePropertyInfo Source # 
type AttrLabel FileCompressionTypePropertyInfo Source # 
type AttrLabel FileCompressionTypePropertyInfo = "compression-type"
type AttrGetType FileCompressionTypePropertyInfo Source # 
type AttrBaseTypeConstraint FileCompressionTypePropertyInfo Source # 
type AttrSetTypeConstraint FileCompressionTypePropertyInfo Source # 
type AttrAllowedOps FileCompressionTypePropertyInfo Source # 

encoding

data FileEncodingPropertyInfo Source #

Instances

AttrInfo FileEncodingPropertyInfo Source # 
type AttrOrigin FileEncodingPropertyInfo Source # 
type AttrLabel FileEncodingPropertyInfo Source # 
type AttrGetType FileEncodingPropertyInfo Source # 
type AttrBaseTypeConstraint FileEncodingPropertyInfo Source # 
type AttrSetTypeConstraint FileEncodingPropertyInfo Source # 
type AttrAllowedOps FileEncodingPropertyInfo Source # 

location

data FileLocationPropertyInfo Source #

Instances

AttrInfo FileLocationPropertyInfo Source # 
type AttrOrigin FileLocationPropertyInfo Source # 
type AttrLabel FileLocationPropertyInfo Source # 
type AttrGetType FileLocationPropertyInfo Source # 
type AttrBaseTypeConstraint FileLocationPropertyInfo Source # 
type AttrSetTypeConstraint FileLocationPropertyInfo Source # 
type AttrAllowedOps FileLocationPropertyInfo Source # 

clearFileLocation :: (MonadIO m, IsFile o) => o -> m () Source #

setFileLocation :: (MonadIO m, IsFile o, IsFile a) => o -> a -> m () Source #

newlineType

data FileNewlineTypePropertyInfo Source #

Instances

AttrInfo FileNewlineTypePropertyInfo Source # 
type AttrOrigin FileNewlineTypePropertyInfo Source # 
type AttrLabel FileNewlineTypePropertyInfo Source # 
type AttrGetType FileNewlineTypePropertyInfo Source # 
type AttrBaseTypeConstraint FileNewlineTypePropertyInfo Source # 
type AttrSetTypeConstraint FileNewlineTypePropertyInfo Source # 
type AttrAllowedOps FileNewlineTypePropertyInfo Source # 

readOnly

data FileReadOnlyPropertyInfo Source #

Instances

AttrInfo FileReadOnlyPropertyInfo Source # 
type AttrOrigin FileReadOnlyPropertyInfo Source # 
type AttrLabel FileReadOnlyPropertyInfo Source # 
type AttrGetType FileReadOnlyPropertyInfo Source # 
type AttrBaseTypeConstraint FileReadOnlyPropertyInfo Source # 
type AttrSetTypeConstraint FileReadOnlyPropertyInfo Source # 
type AttrAllowedOps FileReadOnlyPropertyInfo Source #