gi-gtk-3.0.43: Gtk bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | None
Language | Haskell2010

GI.Gtk.Structs.FileFilterInfo

Contents

- Exported types
- Methods
- Properties
  - contains
  - displayName
  - filename
  - mimeType
  - uri

Description

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

Constructors

FileFilterInfo (ManagedPtr FileFilterInfo) |

#### Instances

Instances details

Eq FileFilterInfo Source # |
Instance details Defined in GI.Gtk.Structs.FileFilterInfo Methods (==) :: FileFilterInfo -> FileFilterInfo -> Bool Source # (/=) :: FileFilterInfo -> FileFilterInfo -> Bool Source #
BoxedPtr FileFilterInfo Source # |
Instance details Defined in GI.Gtk.Structs.FileFilterInfo Methods boxedPtrCopy :: FileFilterInfo -> IO FileFilterInfo Source # boxedPtrFree :: FileFilterInfo -> IO () Source #
CallocPtr FileFilterInfo Source # |
Instance details Defined in GI.Gtk.Structs.FileFilterInfo Methods boxedPtrCalloc :: IO (Ptr FileFilterInfo) Source #
ManagedPtrNewtype FileFilterInfo Source # |
Instance details Defined in GI.Gtk.Structs.FileFilterInfo Methods toManagedPtr :: FileFilterInfo -> ManagedPtr FileFilterInfo Source #
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 Source #

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 ]