ruby-****@sourc*****
ruby-****@sourc*****
2014年 6月 16日 (月) 07:46:19 JST
------------------------- REMOTE_ADDR = 106.188.103.9 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gtk%3A%3AFileFilter ------------------------- @@ -1,25 +1,25 @@ -= class Gtk::FileFilter += Gtk::FileFilter クラス A Gtk::FileFilter can be used to restrict the files being shown in a Gtk::FileChooser. Files can be filtered based on their name (with Gtk::FileFilter#add_pattern), on their mime type (with Gtk::FileFilter#add_mime_type), or by a custom filter proc (with Gtk::FileFilter#add_custom). Filtering by mime types 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 Gtk::FileFilter allows wildcards for the subtype of a mime type, so you can e.g. filter for image/*. Normally, filters are used by adding them to a Gtk::FileChooser, see Gtk::FileChooser#add_filter, but it is also possible to manually use a filter on a file with Gtk::FileFilter#filter. -== Object Hierarchy +== オブジェクト階層 * Object * GLib::Instantiatable * GLib::Object * Gtk::Object * Gtk::FileFilter -== Class Methods +== クラスメソッド --- Gtk::FileFilter.new Creates a new Gtk::FileFilter with no rules added to it. Such a filter doesn't accept any files, so is not particularly useful until you add rules with Gtk::FileFilter#add_mime_type, Gtk::FileFilter#add_pattern, or Gtk::FileFilter#add_custom. To create a filter that accepts any file, use: filter = Gtk::FileFilter.new filter.add_pattern("*") * Returns: a new Gtk::FileFilter -== Instance Methods +== インスタンスメソッド --- name Gets the human-readable name for the filter. See Gtk::FileFilter#name=. ((* Since 2.4 *)) * Returns: The human-readable name of the filter, or nil. @@ -68,7 +68,7 @@ This method will not typically be used by applications; it is intended principally for use in the implementation of Gtk::FileChooser. ((* Since 2.4 *)) * Returns: true if the file should be displayed -== Constants +== 定数 === GtkFileFilterFlags These flags indicate what parts are filled or need to be filled. ((* Since 2.4 *)) --- FILENAME @@ -80,8 +80,8 @@ --- MIME_TYPE 1 << 3, the mime type of the file -== See Also +== 関連ページ Gtk::FileChooser -== ChangeLog -* 2005-1-27 Added. - Masao \ No newline at end of file +== 更新履歴 +* 2005-1-27 Added. - Masao