gi-gtk-3.0.24: Gtk 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.Gtk.Structs.RecentFilterInfo

Contents

Description

A GtkRecentFilterInfo struct is used to pass information about the tested file to recentFilterFilter.

Synopsis

Exported types

newZeroRecentFilterInfo :: MonadIO m => m RecentFilterInfo Source #

Construct a RecentFilterInfo struct initialized to zero.

Properties

age

The number of days elapsed since the file has been registered.

getRecentFilterInfoAge :: MonadIO m => RecentFilterInfo -> m Int32 Source #

Get the value of the “age” field. When overloading is enabled, this is equivalent to

get recentFilterInfo #age

setRecentFilterInfoAge :: MonadIO m => RecentFilterInfo -> Int32 -> m () Source #

Set the value of the “age” field. When overloading is enabled, this is equivalent to

set recentFilterInfo [ #age := value ]

applications

The list of applications that have registered the file.

clearRecentFilterInfoApplications :: MonadIO m => RecentFilterInfo -> m () Source #

Set the value of the “applications” field to Nothing. When overloading is enabled, this is equivalent to

clear #applications

getRecentFilterInfoApplications :: MonadIO m => RecentFilterInfo -> m (Maybe [Text]) Source #

Get the value of the “applications” field. When overloading is enabled, this is equivalent to

get recentFilterInfo #applications

setRecentFilterInfoApplications :: MonadIO m => RecentFilterInfo -> Ptr CString -> m () Source #

Set the value of the “applications” field. When overloading is enabled, this is equivalent to

set recentFilterInfo [ #applications := value ]

contains

RecentFilterFlags to indicate which fields are set.

getRecentFilterInfoContains :: MonadIO m => RecentFilterInfo -> m [RecentFilterFlags] Source #

Get the value of the “contains” field. When overloading is enabled, this is equivalent to

get recentFilterInfo #contains

setRecentFilterInfoContains :: MonadIO m => RecentFilterInfo -> [RecentFilterFlags] -> m () Source #

Set the value of the “contains” field. When overloading is enabled, this is equivalent to

set recentFilterInfo [ #contains := value ]

displayName

The string that will be used to display the file in the recent chooser.

clearRecentFilterInfoDisplayName :: MonadIO m => RecentFilterInfo -> m () Source #

Set the value of the “display_name” field to Nothing. When overloading is enabled, this is equivalent to

clear #displayName

getRecentFilterInfoDisplayName :: MonadIO m => RecentFilterInfo -> m (Maybe Text) Source #

Get the value of the “display_name” field. When overloading is enabled, this is equivalent to

get recentFilterInfo #displayName

setRecentFilterInfoDisplayName :: MonadIO m => RecentFilterInfo -> CString -> m () Source #

Set the value of the “display_name” field. When overloading is enabled, this is equivalent to

set recentFilterInfo [ #displayName := value ]

groups

The groups to which the file belongs to.

clearRecentFilterInfoGroups :: MonadIO m => RecentFilterInfo -> m () Source #

Set the value of the “groups” field to Nothing. When overloading is enabled, this is equivalent to

clear #groups

getRecentFilterInfoGroups :: MonadIO m => RecentFilterInfo -> m (Maybe [Text]) Source #

Get the value of the “groups” field. When overloading is enabled, this is equivalent to

get recentFilterInfo #groups

setRecentFilterInfoGroups :: MonadIO m => RecentFilterInfo -> Ptr CString -> m () Source #

Set the value of the “groups” field. When overloading is enabled, this is equivalent to

set recentFilterInfo [ #groups := value ]

mimeType

MIME type of the file.

clearRecentFilterInfoMimeType :: MonadIO m => RecentFilterInfo -> m () Source #

Set the value of the “mime_type” field to Nothing. When overloading is enabled, this is equivalent to

clear #mimeType

getRecentFilterInfoMimeType :: MonadIO m => RecentFilterInfo -> m (Maybe Text) Source #

Get the value of the “mime_type” field. When overloading is enabled, this is equivalent to

get recentFilterInfo #mimeType

setRecentFilterInfoMimeType :: MonadIO m => RecentFilterInfo -> CString -> m () Source #

Set the value of the “mime_type” field. When overloading is enabled, this is equivalent to

set recentFilterInfo [ #mimeType := value ]

uri

The URI of the file being tested.

clearRecentFilterInfoUri :: MonadIO m => RecentFilterInfo -> m () Source #

Set the value of the “uri” field to Nothing. When overloading is enabled, this is equivalent to

clear #uri

getRecentFilterInfoUri :: MonadIO m => RecentFilterInfo -> m (Maybe Text) Source #

Get the value of the “uri” field. When overloading is enabled, this is equivalent to

get recentFilterInfo #uri

setRecentFilterInfoUri :: MonadIO m => RecentFilterInfo -> CString -> m () Source #

Set the value of the “uri” field. When overloading is enabled, this is equivalent to

set recentFilterInfo [ #uri := value ]