gi-gtk-3.0.32: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Structs.FileFilterInfo

Description

A FileFilterInfo-struct is used to pass information about the tested file to fileFilterFilter.

Synopsis

Exported types

newZeroFileFilterInfo :: MonadIO m => m FileFilterInfo Source #

Construct a FileFilterInfo struct initialized to zero.

Methods

Overloaded methods

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 ]