Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A GtkRecentFilterInfo struct is used
to pass information about the tested file to recentFilterFilter
.
Synopsis
- newtype RecentFilterInfo = RecentFilterInfo (ManagedPtr RecentFilterInfo)
- newZeroRecentFilterInfo :: MonadIO m => m RecentFilterInfo
- getRecentFilterInfoAge :: MonadIO m => RecentFilterInfo -> m Int32
- setRecentFilterInfoAge :: MonadIO m => RecentFilterInfo -> Int32 -> m ()
- clearRecentFilterInfoApplications :: MonadIO m => RecentFilterInfo -> m ()
- getRecentFilterInfoApplications :: MonadIO m => RecentFilterInfo -> m (Maybe [Text])
- setRecentFilterInfoApplications :: MonadIO m => RecentFilterInfo -> Ptr CString -> m ()
- getRecentFilterInfoContains :: MonadIO m => RecentFilterInfo -> m [RecentFilterFlags]
- setRecentFilterInfoContains :: MonadIO m => RecentFilterInfo -> [RecentFilterFlags] -> m ()
- clearRecentFilterInfoDisplayName :: MonadIO m => RecentFilterInfo -> m ()
- getRecentFilterInfoDisplayName :: MonadIO m => RecentFilterInfo -> m (Maybe Text)
- setRecentFilterInfoDisplayName :: MonadIO m => RecentFilterInfo -> CString -> m ()
- clearRecentFilterInfoGroups :: MonadIO m => RecentFilterInfo -> m ()
- getRecentFilterInfoGroups :: MonadIO m => RecentFilterInfo -> m (Maybe [Text])
- setRecentFilterInfoGroups :: MonadIO m => RecentFilterInfo -> Ptr CString -> m ()
- clearRecentFilterInfoMimeType :: MonadIO m => RecentFilterInfo -> m ()
- getRecentFilterInfoMimeType :: MonadIO m => RecentFilterInfo -> m (Maybe Text)
- setRecentFilterInfoMimeType :: MonadIO m => RecentFilterInfo -> CString -> m ()
- clearRecentFilterInfoUri :: MonadIO m => RecentFilterInfo -> m ()
- getRecentFilterInfoUri :: MonadIO m => RecentFilterInfo -> m (Maybe Text)
- setRecentFilterInfoUri :: MonadIO m => RecentFilterInfo -> CString -> m ()
Exported types
newtype RecentFilterInfo Source #
Memory-managed wrapper type.
RecentFilterInfo (ManagedPtr RecentFilterInfo) |
Instances
Eq RecentFilterInfo Source # | |
Defined in GI.Gtk.Structs.RecentFilterInfo (==) :: RecentFilterInfo -> RecentFilterInfo -> Bool # (/=) :: RecentFilterInfo -> RecentFilterInfo -> Bool # | |
BoxedPtr RecentFilterInfo Source # | |
Defined in GI.Gtk.Structs.RecentFilterInfo boxedPtrCopy :: RecentFilterInfo -> IO RecentFilterInfo boxedPtrFree :: RecentFilterInfo -> IO () | |
CallocPtr RecentFilterInfo Source # | |
Defined in GI.Gtk.Structs.RecentFilterInfo | |
ManagedPtrNewtype RecentFilterInfo Source # | |
Defined in GI.Gtk.Structs.RecentFilterInfo toManagedPtr :: RecentFilterInfo -> ManagedPtr RecentFilterInfo | |
tag ~ 'AttrSet => Constructible RecentFilterInfo tag Source # | |
Defined in GI.Gtk.Structs.RecentFilterInfo new :: MonadIO m => (ManagedPtr RecentFilterInfo -> RecentFilterInfo) -> [AttrOp RecentFilterInfo tag] -> m RecentFilterInfo |
newZeroRecentFilterInfo :: MonadIO m => m RecentFilterInfo Source #
Construct a RecentFilterInfo
struct initialized to zero.
Methods
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 ]