gi-gtk-3.0.41: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Structs.FileFilterInfo

Description

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

Synopsis

Exported types

newtype FileFilterInfo Source #

Memory-managed wrapper type.

Constructors

FileFilterInfo (ManagedPtr FileFilterInfo) 

Instances

Instances details
Eq FileFilterInfo Source # 
Instance details

Defined in GI.Gtk.Structs.FileFilterInfo

BoxedPtr FileFilterInfo Source # 
Instance details

Defined in GI.Gtk.Structs.FileFilterInfo

CallocPtr FileFilterInfo Source # 
Instance details

Defined in GI.Gtk.Structs.FileFilterInfo

ManagedPtrNewtype FileFilterInfo Source # 
Instance details

Defined in GI.Gtk.Structs.FileFilterInfo

tag ~ 'AttrSet => Constructible FileFilterInfo tag Source # 
Instance details

Defined in GI.Gtk.Structs.FileFilterInfo

Methods

new :: MonadIO m => (ManagedPtr FileFilterInfo -> FileFilterInfo) -> [AttrOp FileFilterInfo tag] -> m FileFilterInfo

newZeroFileFilterInfo :: MonadIO m => m FileFilterInfo Source #

Construct a FileFilterInfo struct initialized to zero.

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 ]