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 |
A FileFilterInfo
-struct is used to pass information about the
tested file to fileFilterFilter
.
Synopsis
- newtype FileFilterInfo = FileFilterInfo (ManagedPtr FileFilterInfo)
- newZeroFileFilterInfo :: MonadIO m => m FileFilterInfo
- noFileFilterInfo :: Maybe FileFilterInfo
- getFileFilterInfoContains :: MonadIO m => FileFilterInfo -> m [FileFilterFlags]
- setFileFilterInfoContains :: MonadIO m => FileFilterInfo -> [FileFilterFlags] -> m ()
- clearFileFilterInfoDisplayName :: MonadIO m => FileFilterInfo -> m ()
- getFileFilterInfoDisplayName :: MonadIO m => FileFilterInfo -> m (Maybe Text)
- setFileFilterInfoDisplayName :: MonadIO m => FileFilterInfo -> CString -> m ()
- clearFileFilterInfoFilename :: MonadIO m => FileFilterInfo -> m ()
- getFileFilterInfoFilename :: MonadIO m => FileFilterInfo -> m (Maybe Text)
- setFileFilterInfoFilename :: MonadIO m => FileFilterInfo -> CString -> m ()
- clearFileFilterInfoMimeType :: MonadIO m => FileFilterInfo -> m ()
- getFileFilterInfoMimeType :: MonadIO m => FileFilterInfo -> m (Maybe Text)
- setFileFilterInfoMimeType :: MonadIO m => FileFilterInfo -> CString -> m ()
- clearFileFilterInfoUri :: MonadIO m => FileFilterInfo -> m ()
- getFileFilterInfoUri :: MonadIO m => FileFilterInfo -> m (Maybe Text)
- setFileFilterInfoUri :: MonadIO m => FileFilterInfo -> CString -> m ()
Exported types
newtype FileFilterInfo Source #
Memory-managed wrapper type.
Instances
WrappedPtr FileFilterInfo Source # | |
Defined in GI.Gtk.Structs.FileFilterInfo wrappedPtrCalloc :: IO (Ptr FileFilterInfo) # wrappedPtrCopy :: FileFilterInfo -> IO FileFilterInfo # wrappedPtrFree :: Maybe (FunPtr (Ptr FileFilterInfo -> IO ())) # | |
tag ~ AttrSet => Constructible FileFilterInfo tag Source # | |
Defined in GI.Gtk.Structs.FileFilterInfo new :: MonadIO m => (ManagedPtr FileFilterInfo -> FileFilterInfo) -> [AttrOp FileFilterInfo tag] -> m FileFilterInfo # |
newZeroFileFilterInfo :: MonadIO m => m FileFilterInfo Source #
Construct a FileFilterInfo
struct initialized to zero.
noFileFilterInfo :: Maybe FileFilterInfo Source #
A convenience alias for Nothing
:: Maybe
FileFilterInfo
.
Properties
contains
Flags indicating which of the following fields need are filled
getFileFilterInfoContains :: MonadIO m => FileFilterInfo -> m [FileFilterFlags] Source #
Get the value of the “contains
” field.
When overloading is enabled, this is equivalent to
get
fileFilterInfo #contains
setFileFilterInfoContains :: MonadIO m => FileFilterInfo -> [FileFilterFlags] -> m () Source #
Set the value of the “contains
” field.
When overloading is enabled, this is equivalent to
set
fileFilterInfo [ #contains:=
value ]
displayName
the string that will be used to display the file in the file chooser
clearFileFilterInfoDisplayName :: MonadIO m => FileFilterInfo -> m () Source #
Set the value of the “display_name
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#displayName
getFileFilterInfoDisplayName :: MonadIO m => FileFilterInfo -> m (Maybe Text) Source #
Get the value of the “display_name
” field.
When overloading is enabled, this is equivalent to
get
fileFilterInfo #displayName
setFileFilterInfoDisplayName :: MonadIO m => FileFilterInfo -> CString -> m () Source #
Set the value of the “display_name
” field.
When overloading is enabled, this is equivalent to
set
fileFilterInfo [ #displayName:=
value ]
filename
the filename of the file being tested
clearFileFilterInfoFilename :: MonadIO m => FileFilterInfo -> m () Source #
Set the value of the “filename
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#filename
getFileFilterInfoFilename :: MonadIO m => FileFilterInfo -> m (Maybe Text) Source #
Get the value of the “filename
” field.
When overloading is enabled, this is equivalent to
get
fileFilterInfo #filename
setFileFilterInfoFilename :: MonadIO m => FileFilterInfo -> CString -> m () Source #
Set the value of the “filename
” field.
When overloading is enabled, this is equivalent to
set
fileFilterInfo [ #filename:=
value ]
mimeType
the mime type of the file
clearFileFilterInfoMimeType :: MonadIO m => FileFilterInfo -> m () Source #
Set the value of the “mime_type
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#mimeType
getFileFilterInfoMimeType :: MonadIO m => FileFilterInfo -> m (Maybe Text) Source #
Get the value of the “mime_type
” field.
When overloading is enabled, this is equivalent to
get
fileFilterInfo #mimeType
setFileFilterInfoMimeType :: MonadIO m => FileFilterInfo -> CString -> m () Source #
Set the value of the “mime_type
” field.
When overloading is enabled, this is equivalent to
set
fileFilterInfo [ #mimeType:=
value ]
uri
the URI for the file being tested
clearFileFilterInfoUri :: MonadIO m => FileFilterInfo -> m () Source #
Set the value of the “uri
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#uri
getFileFilterInfoUri :: MonadIO m => FileFilterInfo -> m (Maybe Text) Source #
Get the value of the “uri
” field.
When overloading is enabled, this is equivalent to
get
fileFilterInfo #uri
setFileFilterInfoUri :: MonadIO m => FileFilterInfo -> CString -> m () Source #
Set the value of the “uri
” field.
When overloading is enabled, this is equivalent to
set
fileFilterInfo [ #uri:=
value ]