Gio::FilenameCompleter Class Reference
Completes partial file and directory names given a partial string by looking in the file system for clues. More...
Inherits Glib::Object.
List of all members.
Detailed Description
Completes partial file and directory names given a partial string by looking in the file system for clues.
Can return a list of possible completion strings for widget implementation.
- Since glibmm 2.16:
Constructor & Destructor Documentation
virtual Gio::FilenameCompleter::~FilenameCompleter |
( |
|
) |
[virtual] |
Gio::FilenameCompleter::FilenameCompleter |
( |
|
) |
[protected] |
Member Function Documentation
Obtains a completion for initial_text from completer.
- Parameters:
-
| initial_text | Text to be completed. |
- Returns:
- A completed string, or
0
if no completion exists. This string is not owned by GIO, so remember to Glib::free() it when finished.
Gets an array of completion strings for a given initial text.
- Parameters:
-
| initial_text | Text to be completed. |
- Returns:
- Array of strings with possible completions for initial_text. This array must be freed by Glib::strfreev() when finished.
const GFilenameCompleter* Gio::FilenameCompleter::gobj |
( |
|
) |
const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
GFilenameCompleter* Gio::FilenameCompleter::gobj |
( |
|
) |
[inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
GFilenameCompleter* Gio::FilenameCompleter::gobj_copy |
( |
|
) |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
virtual void Gio::FilenameCompleter::on_got_completion_data |
( |
|
) |
[protected, virtual] |
void Gio::FilenameCompleter::set_dirs_only |
( |
bool |
dirs_only = true |
) |
|
If dirs_only is true
, completer will only complete directory names, and not file names.
- Parameters:
-
- Prototype:
void on_my_got_completion_data()
Friends And Related Function Documentation
A Glib::wrap() method for this object.
- Parameters:
-
| object | The C instance. |
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
- Returns:
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file:
- giomm/filenamecompleter.h