<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>gtkmm: Gtk::RecentFilter Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">gtkmm <span id="projectnumber">2.24.4</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a> </li> <li class="navelem"><a class="el" href="classGtk_1_1RecentFilter.html">RecentFilter</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> | <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <h1>Gtk::RecentFilter Class Reference<div class="ingroups"><a class="el" href="group__RecentFiles.html">RecentFiles</a></div></h1> </div> </div> <div class="contents"> <!-- doxytag: class="Gtk::RecentFilter" --><!-- doxytag: inherits="Gtk::Object" --> <p><a class="el" href="classGtk_1_1RecentFilter.html" title="RecentFilter can be used to restrict the files being shown in a RecentChooser.">RecentFilter</a> can be used to restrict the files being shown in a <a class="el" href="classGtk_1_1RecentChooser.html" title="RecentChooser is an interface that can be implemented by widgets displaying the list of recently used...">RecentChooser</a>. <a href="#_details">More...</a></p> <div class="dynheader"> Inheritance diagram for Gtk::RecentFilter:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1RecentFilter__inherit__graph.png" border="0" usemap="#Gtk_1_1RecentFilter_inherit__map" alt="Inheritance graph"/></div> <map name="Gtk_1_1RecentFilter_inherit__map" id="Gtk_1_1RecentFilter_inherit__map"> <area shape="rect" id="node2" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="21,237,115,267"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node6" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node8" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for Gtk::RecentFilter:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1RecentFilter__coll__graph.png" border="0" usemap="#Gtk_1_1RecentFilter_coll__map" alt="Collaboration graph"/></div> <map name="Gtk_1_1RecentFilter_coll__map" id="Gtk_1_1RecentFilter_coll__map"> <area shape="rect" id="node2" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="21,237,115,267"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node6" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node8" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGtk_1_1RecentFilter-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="nested-classes"></a> Classes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter_1_1Info.html">Info</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="classGtk_1_1RecentFilter_1_1Info.html" title="A RecentFilter::Info class is used to pass information about the tested file to filter().">RecentFilter::Info</a> class is used to pass information about the tested file to filter(). <a href="classGtk_1_1RecentFilter_1_1Info.html#_details">More...</a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>< bool, <br class="typebreak"/> const <a class="el" href="classGtk_1_1RecentFilter_1_1Info.html">Info</a>& > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a2a46b4c386c3dbd4eca55197c51195ac">SlotCustom</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">For instance, bool on_custom(const Gtk::RecentFilter::Info& filter_info);. <a href="#a2a46b4c386c3dbd4eca55197c51195ac"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#abdfdd0772778b3a99110bb26ab00b7e3">~RecentFilter</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GtkRecentFilter* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#aee1b9930e4348748d8de7c3143c5878b">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#aee1b9930e4348748d8de7c3143c5878b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GtkRecentFilter* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a6bcd5dd239067d571651c0a71305e0fd">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a6bcd5dd239067d571651c0a71305e0fd"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a73339136367c38602f7871ba5517d3d5">RecentFilter</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a57c6905667c9881376891e4d4cb2ff38">set_name</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the human-readable name of the filter; this is the string that will be displayed in the recently used resources selector user interface if there is a selectable list of filters. <a href="#a57c6905667c9881376891e4d4cb2ff38"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a01831ed5541ef3d4a975cd832926cdd0">get_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the human-readable name for the filter. <a href="#a01831ed5541ef3d4a975cd832926cdd0"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a230612101528ddfa56c9a9edcb5a39ca">add_mime_type</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& mime_type)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a rule that allows resources based on their registered MIME type. <a href="#a230612101528ddfa56c9a9edcb5a39ca"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#ae1097e7d1f101a8c432840a415a77c75">add_pattern</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& pattern)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a rule that allows resources based on a pattern matching their display name. <a href="#ae1097e7d1f101a8c432840a415a77c75"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a8fd8c80a98a20d1fdf49e1f4f701df59">add_pixbuf_formats</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a rule allowing image files in the formats supported by GdkPixbuf. <a href="#a8fd8c80a98a20d1fdf49e1f4f701df59"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a79c9a997495c5972b77149b9696a3a0a">add_application</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& application)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a rule that allows resources based on the name of the application that has registered them. <a href="#a79c9a997495c5972b77149b9696a3a0a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a1f6013b83391b2e23e6bce1d3ea7ca38">add_group</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& group)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a rule that allows resources based on the name of the group to which they belong. <a href="#a1f6013b83391b2e23e6bce1d3ea7ca38"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a410af2c9fa2270ffa6f67e08625e6fb6">add_age</a> (int days)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a rule that allows resources based on their age - that is, the number of days elapsed since they were last modified. <a href="#a410af2c9fa2270ffa6f67e08625e6fb6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a0baa74334e0b4297e5b1381198c12791">add_custom</a> (<a class="el" href="group__gtkmmEnums.html#ga367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a> needed, const <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">SlotCustom</a>& slot)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gtkmmEnums.html#ga367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#aa4b001cae9f6a2821040e5cb1d8350de">get_needed</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the fields that need to be filled in for the structure passed to filter() <a href="#aa4b001cae9f6a2821040e5cb1d8350de"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="related"></a> Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1RecentFilter.html">Gtk::RecentFilter</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a7c4b917934a0ad8a5ba82790bbf580ba">wrap</a> (GtkRecentFilter* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a7c4b917934a0ad8a5ba82790bbf580ba"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p><a class="el" href="classGtk_1_1RecentFilter.html" title="RecentFilter can be used to restrict the files being shown in a RecentChooser.">RecentFilter</a> can be used to restrict the files being shown in a <a class="el" href="classGtk_1_1RecentChooser.html" title="RecentChooser is an interface that can be implemented by widgets displaying the list of recently used...">RecentChooser</a>. </p> <p>Files can be filtered based on their name (with <a class="el" href="classGtk_1_1RecentFilter.html#ae1097e7d1f101a8c432840a415a77c75" title="Adds a rule that allows resources based on a pattern matching their display name.">add_pattern()</a>), on their mime type (with <a class="el" href="classGtk_1_1RecentFilter.html#a230612101528ddfa56c9a9edcb5a39ca" title="Adds a rule that allows resources based on their registered MIME type.">add_mime_type()</a>), on the application that has registered them (with <a class="el" href="classGtk_1_1RecentFilter.html#a79c9a997495c5972b77149b9696a3a0a" title="Adds a rule that allows resources based on the name of the application that has registered them...">add_application()</a>), or by a custom filter function (with <a class="el" href="classGtk_1_1RecentFilter.html#a0baa74334e0b4297e5b1381198c12791">add_custom()</a>).</p> <p>Filtering by mime type handles aliasing and subclassing of mime types; e.g. a filter for text/plain also matches a file with mime type application/rtf, since application/rtf is a subclass of text/plain. Note that <a class="el" href="classGtk_1_1RecentFilter.html" title="RecentFilter can be used to restrict the files being shown in a RecentChooser.">RecentFilter</a> allows wildcards for the subtype of a mime type, so you can e.g. filter for image/*.</p> <p>Normally, filters are used by adding them to a <a class="el" href="classGtk_1_1RecentChooser.html" title="RecentChooser is an interface that can be implemented by widgets displaying the list of recently used...">RecentChooser</a>, see <a class="el" href="classGtk_1_1RecentChooser.html#a827e5cf870766ca4f2c66cb22b0d4d83" title="Adds filter to the list of Gtk::RecentFilter objects held by chooser.">RecentChooser::add_filter()</a>, but it is also possible to manually use a filter on a file with filter().</p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000248">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> </div><hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="a2a46b4c386c3dbd4eca55197c51195ac"></a><!-- doxytag: member="Gtk::RecentFilter::SlotCustom" ref="a2a46b4c386c3dbd4eca55197c51195ac" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a><bool, const <a class="el" href="classGtk_1_1RecentFilter_1_1Info.html">Info</a>&> <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">Gtk::RecentFilter::SlotCustom</a></td> </tr> </table> </div> <div class="memdoc"> <p>For instance, bool on_custom(const Gtk::RecentFilter::Info& filter_info);. </p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="abdfdd0772778b3a99110bb26ab00b7e3"></a><!-- doxytag: member="Gtk::RecentFilter::~RecentFilter" ref="abdfdd0772778b3a99110bb26ab00b7e3" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gtk::RecentFilter::~RecentFilter </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a73339136367c38602f7871ba5517d3d5"></a><!-- doxytag: member="Gtk::RecentFilter::RecentFilter" ref="a73339136367c38602f7871ba5517d3d5" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::RecentFilter::RecentFilter </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a410af2c9fa2270ffa6f67e08625e6fb6"></a><!-- doxytag: member="Gtk::RecentFilter::add_age" ref="a410af2c9fa2270ffa6f67e08625e6fb6" args="(int days)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::RecentFilter::add_age </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>days</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a rule that allows resources based on their age - that is, the number of days elapsed since they were last modified. </p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000256">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">days</td><td>Number of days. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a79c9a997495c5972b77149b9696a3a0a"></a><!-- doxytag: member="Gtk::RecentFilter::add_application" ref="a79c9a997495c5972b77149b9696a3a0a" args="(const Glib::ustring &application)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::RecentFilter::add_application </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>application</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a rule that allows resources based on the name of the application that has registered them. </p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000254">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">application</td><td>An application name. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a0baa74334e0b4297e5b1381198c12791"></a><!-- doxytag: member="Gtk::RecentFilter::add_custom" ref="a0baa74334e0b4297e5b1381198c12791" args="(RecentFilterFlags needed, const SlotCustom &slot)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::RecentFilter::add_custom </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a> </td> <td class="paramname"><em>needed</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">SlotCustom</a> & </td> <td class="paramname"><em>slot</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a1f6013b83391b2e23e6bce1d3ea7ca38"></a><!-- doxytag: member="Gtk::RecentFilter::add_group" ref="a1f6013b83391b2e23e6bce1d3ea7ca38" args="(const Glib::ustring &group)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::RecentFilter::add_group </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>group</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a rule that allows resources based on the name of the group to which they belong. </p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000255">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">group</td><td>A group name. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a230612101528ddfa56c9a9edcb5a39ca"></a><!-- doxytag: member="Gtk::RecentFilter::add_mime_type" ref="a230612101528ddfa56c9a9edcb5a39ca" args="(const Glib::ustring &mime_type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::RecentFilter::add_mime_type </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>mime_type</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a rule that allows resources based on their registered MIME type. </p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000251">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">mime_type</td><td>A MIME type. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ae1097e7d1f101a8c432840a415a77c75"></a><!-- doxytag: member="Gtk::RecentFilter::add_pattern" ref="ae1097e7d1f101a8c432840a415a77c75" args="(const Glib::ustring &pattern)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::RecentFilter::add_pattern </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>pattern</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a rule that allows resources based on a pattern matching their display name. </p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000252">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pattern</td><td>A file pattern. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a8fd8c80a98a20d1fdf49e1f4f701df59"></a><!-- doxytag: member="Gtk::RecentFilter::add_pixbuf_formats" ref="a8fd8c80a98a20d1fdf49e1f4f701df59" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::RecentFilter::add_pixbuf_formats </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a rule allowing image files in the formats supported by GdkPixbuf. </p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000253">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a01831ed5541ef3d4a975cd832926cdd0"></a><!-- doxytag: member="Gtk::RecentFilter::get_name" ref="a01831ed5541ef3d4a975cd832926cdd0" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::RecentFilter::get_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the human-readable name for the filter. </p> <p>See <a class="el" href="classGtk_1_1RecentFilter.html#a57c6905667c9881376891e4d4cb2ff38" title="Sets the human-readable name of the filter; this is the string that will be displayed in the recently...">set_name()</a>.</p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000250">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The name of the filter, or <code>0</code>. The returned string is owned by the filter object and should not be freed. </dd></dl> </div> </div> <a class="anchor" id="aa4b001cae9f6a2821040e5cb1d8350de"></a><!-- doxytag: member="Gtk::RecentFilter::get_needed" ref="aa4b001cae9f6a2821040e5cb1d8350de" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__gtkmmEnums.html#ga367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a> Gtk::RecentFilter::get_needed </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the fields that need to be filled in for the structure passed to filter() </p> <p>This function will not typically be used by applications; it is intended principally for use in the implementation of <a class="el" href="classGtk_1_1RecentChooser.html" title="RecentChooser is an interface that can be implemented by widgets displaying the list of recently used...">Gtk::RecentChooser</a>.</p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000257">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Bitfield of flags indicating needed fields when calling filter(). </dd></dl> </div> </div> <a class="anchor" id="a6bcd5dd239067d571651c0a71305e0fd"></a><!-- doxytag: member="Gtk::RecentFilter::gobj" ref="a6bcd5dd239067d571651c0a71305e0fd" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GtkRecentFilter* Gtk::RecentFilter::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GtkObject. </p> <p>Reimplemented from <a class="el" href="classGtk_1_1Object.html#a5a0e5941619df9ec0cc52feccad99005">Gtk::Object</a>.</p> </div> </div> <a class="anchor" id="aee1b9930e4348748d8de7c3143c5878b"></a><!-- doxytag: member="Gtk::RecentFilter::gobj" ref="aee1b9930e4348748d8de7c3143c5878b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GtkRecentFilter* Gtk::RecentFilter::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GtkObject. </p> <p>Reimplemented from <a class="el" href="classGtk_1_1Object.html#ae3541ec02d1b7cd56cfabe7295f8948f">Gtk::Object</a>.</p> </div> </div> <a class="anchor" id="a57c6905667c9881376891e4d4cb2ff38"></a><!-- doxytag: member="Gtk::RecentFilter::set_name" ref="a57c6905667c9881376891e4d4cb2ff38" args="(const Glib::ustring &name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::RecentFilter::set_name </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>name</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the human-readable name of the filter; this is the string that will be displayed in the recently used resources selector user interface if there is a selectable list of filters. </p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000249">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>Then human readable name of <em>filter</em>. </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="a7c4b917934a0ad8a5ba82790bbf580ba"></a><!-- doxytag: member="Gtk::RecentFilter::wrap" ref="a7c4b917934a0ad8a5ba82790bbf580ba" args="(GtkRecentFilter *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGtk_1_1RecentFilter.html">Gtk::RecentFilter</a>* wrap </td> <td>(</td> <td class="paramtype">GtkRecentFilter * </td> <td class="paramname"><em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>take_copy</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">object</td><td>The C instance. </td></tr> <tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>gtkmm/recentfilter.h</li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Jun 25 2013 for gtkmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>