|
template<class T_CppObject > |
RefPtr< T_CppObject > | make_refptr_for_instance (T_CppObject* object) |
| Create a RefPtr<> to an instance of any class that has reference() and unreference() methods, and whose destructor is noexcept (the default for destructors). More...
|
|
sigc::connection | add_exception_handler (const sigc::slot< void()>& slot) |
| Specify a slot to be called when an exception is thrown by a signal handler. More...
|
|
void | init () |
| Initialize glibmm. More...
|
|
void | set_init_to_users_preferred_locale (bool state=true) |
| Instruct Glib::init() which global locale to set. More...
|
|
bool | get_init_to_users_preferred_locale () |
| Get the state, set with set_init_to_users_preferred_locale(). More...
|
|
RefPtr< ObjectBase > | wrap_interface (GObject* object, bool take_copy=false) |
|
SignalTimeout | signal_timeout () |
| Convenience timeout signal. More...
|
|
SignalIdle | signal_idle () |
| Convenience idle signal. More...
|
|
SignalIO | signal_io () |
| Convenience I/O signal. More...
|
|
SignalChildWatch | signal_child_watch () |
| Convenience child watch signal. More...
|
|
bool | str_has_prefix (const std::string& str, const std::string& prefix) |
| Looks whether the string str begins with prefix. More...
|
|
bool | str_has_suffix (const std::string& str, const std::string& suffix) |
| Looks whether the string str ends with suffix. More...
|
|
std::string | strescape (const std::string& source) |
| Escapes all special characters in the string. More...
|
|
std::string | strescape (const std::string& source, const std::string& exceptions) |
| Escapes all special characters in the string. More...
|
|
std::string | strcompress (const std::string& source) |
| Replaces all escaped characters with their one byte equivalent. More...
|
|
Glib::ustring | strerror (int errnum) |
| Returns a string corresponding to the given error code, e.g. "no such process" . More...
|
|
Glib::ustring | strsignal (int signum) |
| Returns a string describing the given signal, e.g. "Segmentation fault" . More...
|
|
void | usleep (unsigned long microseconds) |
|
gunichar | get_unichar_from_std_iterator (std::string::const_iterator pos) |
| Extract a UCS-4 character from UTF-8 data. More...
|
|
template<class T > |
T::BaseObjectType* | unwrap (T* ptr) |
| Get the underlying C instance from the C++ instance. More...
|
|
template<class T > |
const T::BaseObjectType* | unwrap (const T* ptr) |
| Get the underlying C instance from the C++ instance. More...
|
|
template<class T > |
T::BaseObjectType* | unwrap (const Glib::RefPtr< T >& ptr) |
| Get the underlying C instance from the C++ instance. More...
|
|
template<class T > |
const T::BaseObjectType* | unwrap (const Glib::RefPtr< const T >& ptr) |
| Get the underlying C instance from the C++ instance. More...
|
|
template<class T > |
T::BaseObjectType* | unwrap_copy (const T& obj) |
| Get the underlying C instance from the C++ instance and acquire a reference or copy. More...
|
|
template<class T > |
T::BaseObjectType* | unwrap_copy (const Glib::RefPtr< T >& ptr) |
| Get the underlying C instance from the C++ instance and acquire a reference. More...
|
|
template<class T > |
const T::BaseObjectType* | unwrap_copy (const Glib::RefPtr< const T >& ptr) |
| Get the underlying C instance from the C++ instance and acquire a reference. More...
|
|
Binding::Flags | operator| (Binding::Flags lhs, Binding::Flags rhs) |
|
Binding::Flags | operator& (Binding::Flags lhs, Binding::Flags rhs) |
|
Binding::Flags | operator^ (Binding::Flags lhs, Binding::Flags rhs) |
|
Binding::Flags | operator~ (Binding::Flags flags) |
|
Binding::Flags& | operator|= (Binding::Flags& lhs, Binding::Flags rhs) |
|
Binding::Flags& | operator&= (Binding::Flags& lhs, Binding::Flags rhs) |
|
Binding::Flags& | operator^= (Binding::Flags& lhs, Binding::Flags rhs) |
|
bool | get_charset () |
| Get the charset used by the current locale. More...
|
|
bool | get_charset (std::string& charset) |
| Get the charset used by the current locale. More...
|
|
std::string | convert (const std::string& str, const std::string& to_codeset, const std::string& from_codeset) |
| Convert from one encoding to another. More...
|
|
std::string | convert_with_fallback (const std::string& str, const std::string& to_codeset, const std::string& from_codeset) |
| Converts a string from one character set to another, possibly including fallback sequences for characters not representable in the output. More...
|
|
std::string | convert_with_fallback (const std::string& str, const std::string& to_codeset, const std::string& from_codeset, const Glib::ustring& fallback) |
| Converts a string from one character set to another, possibly including fallback sequences for characters not representable in the output. More...
|
|
Glib::ustring | locale_to_utf8 (const std::string& opsys_string) |
| Convert from the current locale's encoding to UTF-8. More...
|
|
std::string | locale_from_utf8 (const Glib::ustring& utf8_string) |
| Convert from UTF-8 to the current locale's encoding. More...
|
|
Glib::ustring | filename_to_utf8 (const std::string& opsys_string) |
| Converts a string which is in the encoding used for filenames into a UTF-8 string. More...
|
|
std::string | filename_from_utf8 (const Glib::ustring& utf8_string) |
| Converts a string from UTF-8 to the encoding used for filenames. More...
|
|
std::string | filename_from_uri (const Glib::ustring& uri, Glib::ustring& hostname) |
| Converts an escaped UTF-8 encoded URI to a local filename in the encoding used for filenames. More...
|
|
std::string | filename_from_uri (const Glib::ustring& uri) |
| Converts an escaped UTF-8 encoded URI to a local filename in the encoding used for filenames. More...
|
|
Glib::ustring | filename_to_uri (const std::string& filename, const Glib::ustring& hostname) |
| Converts an absolute filename to an escaped UTF-8 encoded URI. More...
|
|
Glib::ustring | filename_to_uri (const std::string& filename) |
| Converts an absolute filename to an escaped UTF-8 encoded URI. More...
|
|
Glib::ustring | filename_display_basename (const std::string& filename) |
| Returns the display basename for the particular filename, guaranteed to be valid UTF-8. More...
|
|
Glib::ustring | filename_display_name (const std::string& filename) |
| Converts a filename into a valid UTF-8 string. More...
|
|
ParamFlags | operator| (ParamFlags lhs, ParamFlags rhs) |
|
ParamFlags | operator& (ParamFlags lhs, ParamFlags rhs) |
|
ParamFlags | operator^ (ParamFlags lhs, ParamFlags rhs) |
|
ParamFlags | operator~ (ParamFlags flags) |
|
ParamFlags& | operator|= (ParamFlags& lhs, ParamFlags rhs) |
|
ParamFlags& | operator&= (ParamFlags& lhs, ParamFlags rhs) |
|
ParamFlags& | operator^= (ParamFlags& lhs, ParamFlags rhs) |
|
FileTest | operator| (FileTest lhs, FileTest rhs) |
|
FileTest | operator& (FileTest lhs, FileTest rhs) |
|
FileTest | operator^ (FileTest lhs, FileTest rhs) |
|
FileTest | operator~ (FileTest flags) |
|
FileTest& | operator|= (FileTest& lhs, FileTest rhs) |
|
FileTest& | operator&= (FileTest& lhs, FileTest rhs) |
|
FileTest& | operator^= (FileTest& lhs, FileTest rhs) |
|
bool | file_test (const std::string& filename, FileTest test) |
| Returns true if any of the tests in the bitfield test are true. More...
|
|
int | mkstemp (std::string& filename_template) |
| Opens a temporary file. More...
|
|
int | file_open_tmp (std::string& name_used, const std::string& prefix) |
| Opens a file for writing in the preferred directory for temporary files (as returned by Glib::get_tmp_dir()). More...
|
|
int | file_open_tmp (std::string& name_used) |
| Opens a file for writing in the preferred directory for temporary files (as returned by Glib::get_tmp_dir()). More...
|
|
std::string | file_get_contents (const std::string& filename) |
| Reads an entire file into a string, with good error checking. More...
|
|
void | file_set_contents (const std::string& filename, const gchar* contents, gssize length) |
| Writes all of contents to a file named filename, with good error checking. More...
|
|
void | file_set_contents (const std::string& filename, const std::string& contents) |
| A variant of file_set_contents which accepts a standard C++ string. More...
|
|
IOFlags | operator| (IOFlags lhs, IOFlags rhs) |
|
IOFlags | operator& (IOFlags lhs, IOFlags rhs) |
|
IOFlags | operator^ (IOFlags lhs, IOFlags rhs) |
|
IOFlags | operator~ (IOFlags flags) |
|
IOFlags& | operator|= (IOFlags& lhs, IOFlags rhs) |
|
IOFlags& | operator&= (IOFlags& lhs, IOFlags rhs) |
|
IOFlags& | operator^= (IOFlags& lhs, IOFlags rhs) |
|
IOCondition | operator| (IOCondition lhs, IOCondition rhs) |
|
IOCondition | operator& (IOCondition lhs, IOCondition rhs) |
|
IOCondition | operator^ (IOCondition lhs, IOCondition rhs) |
|
IOCondition | operator~ (IOCondition flags) |
|
IOCondition& | operator|= (IOCondition& lhs, IOCondition rhs) |
|
IOCondition& | operator&= (IOCondition& lhs, IOCondition rhs) |
|
IOCondition& | operator^= (IOCondition& lhs, IOCondition rhs) |
|
Glib::RefPtr< IOChannel > | wrap (GIOChannel* gobject, bool take_copy=false) |
|
KeyFile::Flags | operator| (KeyFile::Flags lhs, KeyFile::Flags rhs) |
|
KeyFile::Flags | operator& (KeyFile::Flags lhs, KeyFile::Flags rhs) |
|
KeyFile::Flags | operator^ (KeyFile::Flags lhs, KeyFile::Flags rhs) |
|
KeyFile::Flags | operator~ (KeyFile::Flags flags) |
|
KeyFile::Flags& | operator|= (KeyFile::Flags& lhs, KeyFile::Flags rhs) |
|
KeyFile::Flags& | operator&= (KeyFile::Flags& lhs, KeyFile::Flags rhs) |
|
KeyFile::Flags& | operator^= (KeyFile::Flags& lhs, KeyFile::Flags rhs) |
|
FormatSizeFlags | operator| (FormatSizeFlags lhs, FormatSizeFlags rhs) |
|
FormatSizeFlags | operator& (FormatSizeFlags lhs, FormatSizeFlags rhs) |
|
FormatSizeFlags | operator^ (FormatSizeFlags lhs, FormatSizeFlags rhs) |
|
FormatSizeFlags | operator~ (FormatSizeFlags flags) |
|
FormatSizeFlags& | operator|= (FormatSizeFlags& lhs, FormatSizeFlags rhs) |
|
FormatSizeFlags& | operator&= (FormatSizeFlags& lhs, FormatSizeFlags rhs) |
|
FormatSizeFlags& | operator^= (FormatSizeFlags& lhs, FormatSizeFlags rhs) |
|
Glib::ustring | get_application_name () |
| Gets a human-readable name for the application, as set by Glib::set_application_name(). More...
|
|
void | set_application_name (UStringView application_name) |
| Sets a human-readable name for the application. More...
|
|
std::string | get_prgname () |
| Gets the name of the program. More...
|
|
void | set_prgname (StdStringView prgname) |
| Sets the name of the program. More...
|
|
std::string | getenv (StdStringView variable, bool& found) |
| Returns the value of an environment variable. More...
|
|
std::string | getenv (StdStringView variable) |
| Returns the value of an environment variable. More...
|
|
bool | setenv (StdStringView variable, StdStringView value, bool overwrite=true) |
| Sets an environment variable. More...
|
|
void | unsetenv (StdStringView variable) |
| Removes an environment variable from the environment. More...
|
|
std::vector< std::string > | listenv () |
| Gets the names of all variables set in the environment. More...
|
|
std::string | get_user_name () |
| Gets the user name of the current user. More...
|
|
std::string | get_real_name () |
| Gets the real name of the current user. More...
|
|
Glib::ustring | get_host_name () |
| Return a name for the machine. More...
|
|
std::string | get_home_dir () |
| Gets the current user's home directory. More...
|
|
std::string | get_tmp_dir () |
| Gets the directory to use for temporary files. More...
|
|
std::string | get_current_dir () |
| Gets the current directory. More...
|
|
std::string | get_user_special_dir (UserDirectory directory) |
| Returns the full path of a special directory using its logical id. More...
|
|
std::string | get_user_data_dir () |
| Returns a base directory in which to access application data such as icons that is customized for a particular user. More...
|
|
std::string | get_user_config_dir () |
| Returns a base directory in which to store user-specific application configuration information such as user preferences and settings. More...
|
|
std::vector< std::string > | get_system_data_dirs () |
| Returns an ordered list of base directories in which to access system-wide application data. More...
|
|
std::vector< std::string > | get_system_config_dirs () |
| Returns an ordered list of base directories in which to access system-wide configuration information. More...
|
|
std::string | get_user_cache_dir () |
| Returns a base directory in which to store non-essential, cached data specific to particular user. More...
|
|
std::string | get_user_runtime_dir () |
| Returns a directory that is unique to the current user on the local system. More...
|
|
bool | path_is_absolute (StdStringView filename) |
| Returns true if the given filename is an absolute file name, i.e. it contains a full path from the root directory such as "/usr/local" on UNIX or "C:\\windows" on Windows systems. More...
|
|
std::string | path_skip_root (StdStringView filename) |
| Returns the remaining part of filename after the root component, i.e. after the "/" on UNIX or "C:\\" on Windows. More...
|
|
std::string | path_get_basename (StdStringView filename) |
| Gets the name of the file without any leading directory components. More...
|
|
std::string | path_get_dirname (StdStringView filename) |
| Gets the directory components of a file name. More...
|
|
std::string | canonicalize_filename (StdStringView filename, StdStringView relative_to=nullptr) |
| Gets the canonical file name from filename. More...
|
|
std::string | build_filename (const std::vector< std::string >& elements) |
| Creates a filename from a series of elements using the correct separator for filenames. More...
|
|
template<typename... Strings> |
std::string | build_filename (const Strings&...strings) |
| Creates a filename from one or more elements using the correct separator for filenames. More...
|
|
std::string | build_path (const std::string& separator, const std::vector< std::string >& elements) |
| Creates a path from a series of elements using separator as the separator between elements. More...
|
|
std::string | find_program_in_path (StdStringView program) |
| Locates the first executable named program in the user's path, in the same way that execvp() would locate it. More...
|
|
Glib::ustring | format_size (guint64 size, FormatSizeFlags flags=FormatSizeFlags::DEFAULT) |
| Formats a size (for example the size of a file) into a human readable string. More...
|
|
Module::Flags | operator| (Module::Flags lhs, Module::Flags rhs) |
|
Module::Flags | operator& (Module::Flags lhs, Module::Flags rhs) |
|
Module::Flags | operator^ (Module::Flags lhs, Module::Flags rhs) |
|
Module::Flags | operator~ (Module::Flags flags) |
|
Module::Flags& | operator|= (Module::Flags& lhs, Module::Flags rhs) |
|
Module::Flags& | operator&= (Module::Flags& lhs, Module::Flags rhs) |
|
Module::Flags& | operator^= (Module::Flags& lhs, Module::Flags rhs) |
|
OptionEntry::Flags | operator| (OptionEntry::Flags lhs, OptionEntry::Flags rhs) |
|
OptionEntry::Flags | operator& (OptionEntry::Flags lhs, OptionEntry::Flags rhs) |
|
OptionEntry::Flags | operator^ (OptionEntry::Flags lhs, OptionEntry::Flags rhs) |
|
OptionEntry::Flags | operator~ (OptionEntry::Flags flags) |
|
OptionEntry::Flags& | operator|= (OptionEntry::Flags& lhs, OptionEntry::Flags rhs) |
|
OptionEntry::Flags& | operator&= (OptionEntry::Flags& lhs, OptionEntry::Flags rhs) |
|
OptionEntry::Flags& | operator^= (OptionEntry::Flags& lhs, OptionEntry::Flags rhs) |
|
Regex::CompileFlags | operator| (Regex::CompileFlags lhs, Regex::CompileFlags rhs) |
|
Regex::CompileFlags | operator& (Regex::CompileFlags lhs, Regex::CompileFlags rhs) |
|
Regex::CompileFlags | operator^ (Regex::CompileFlags lhs, Regex::CompileFlags rhs) |
|
Regex::CompileFlags | operator~ (Regex::CompileFlags flags) |
|
Regex::CompileFlags& | operator|= (Regex::CompileFlags& lhs, Regex::CompileFlags rhs) |
|
Regex::CompileFlags& | operator&= (Regex::CompileFlags& lhs, Regex::CompileFlags rhs) |
|
Regex::CompileFlags& | operator^= (Regex::CompileFlags& lhs, Regex::CompileFlags rhs) |
|
Regex::MatchFlags | operator| (Regex::MatchFlags lhs, Regex::MatchFlags rhs) |
|
Regex::MatchFlags | operator& (Regex::MatchFlags lhs, Regex::MatchFlags rhs) |
|
Regex::MatchFlags | operator^ (Regex::MatchFlags lhs, Regex::MatchFlags rhs) |
|
Regex::MatchFlags | operator~ (Regex::MatchFlags flags) |
|
Regex::MatchFlags& | operator|= (Regex::MatchFlags& lhs, Regex::MatchFlags rhs) |
|
Regex::MatchFlags& | operator&= (Regex::MatchFlags& lhs, Regex::MatchFlags rhs) |
|
Regex::MatchFlags& | operator^= (Regex::MatchFlags& lhs, Regex::MatchFlags rhs) |
|
std::vector< std::string > | shell_parse_argv (const std::string& command_line) |
| Parses a command line into an argument vector, in much the same way the shell would, but without many of the expansions the shell would perform (variable expansion, globs, operators, filename expansion, etc. are not supported). More...
|
|
std::string | shell_quote (const std::string& unquoted_string) |
| Quotes a string so that the shell (/bin/sh) will interpret the quoted string to mean unquoted_string. More...
|
|
std::string | shell_unquote (const std::string& quoted_string) |
| Unquotes a string as the shell (/bin/sh) would. More...
|
|
SpawnFlags | operator| (SpawnFlags lhs, SpawnFlags rhs) |
|
SpawnFlags | operator& (SpawnFlags lhs, SpawnFlags rhs) |
|
SpawnFlags | operator^ (SpawnFlags lhs, SpawnFlags rhs) |
|
SpawnFlags | operator~ (SpawnFlags flags) |
|
SpawnFlags& | operator|= (SpawnFlags& lhs, SpawnFlags rhs) |
|
SpawnFlags& | operator&= (SpawnFlags& lhs, SpawnFlags rhs) |
|
SpawnFlags& | operator^= (SpawnFlags& lhs, SpawnFlags rhs) |
|
void | spawn_async_with_pipes (const std::string& working_directory, const std::vector< std::string >& argv, const std::vector< std::string >& envp, SpawnFlags flags=SpawnFlags::DEFAULT, const SlotSpawnChildSetup& child_setup={}, Pid* child_pid=nullptr, int* standard_input=nullptr, int* standard_output=nullptr, int* standard_error=nullptr) |
| Executes a child program asynchronously (your program will not block waiting for the child to exit). More...
|
|
void | spawn_async_with_pipes (const std::string& working_directory, const std::vector< std::string >& argv, SpawnFlags flags=SpawnFlags::DEFAULT, const SlotSpawnChildSetup& child_setup={}, Pid* child_pid=nullptr, int* standard_input=nullptr, int* standard_output=nullptr, int* standard_error=nullptr) |
| Like the main spawn_async_with_pipes() method, but inheriting the parent's environment. More...
|
|
void | spawn_async (const std::string& working_directory, const std::vector< std::string >& argv, const std::vector< std::string >& envp, SpawnFlags flags=SpawnFlags::DEFAULT, const SlotSpawnChildSetup& child_setup={}, Pid* child_pid=nullptr) |
| See spawn_async_with_pipes() for a full description. More...
|
|
void | spawn_async (const std::string& working_directory, const std::vector< std::string >& argv, SpawnFlags flags=SpawnFlags::DEFAULT, const SlotSpawnChildSetup& child_setup={}, Pid* child_pid=nullptr) |
| Like the main spawn_async() method, but inheriting the parent's environment. More...
|
|
void | spawn_sync (const std::string& working_directory, const std::vector< std::string >& argv, const std::vector< std::string >& envp, SpawnFlags flags=SpawnFlags::DEFAULT, const SlotSpawnChildSetup& child_setup={}, std::string* standard_output=nullptr, std::string* standard_error=nullptr, int* exit_status=nullptr) |
| Executes a child synchronously (waits for the child to exit before returning). More...
|
|
void | spawn_sync (const std::string& working_directory, const std::vector< std::string >& argv, SpawnFlags flags=SpawnFlags::DEFAULT, const SlotSpawnChildSetup& child_setup={}, std::string* standard_output=nullptr, std::string* standard_error=nullptr, int* exit_status=nullptr) |
| Like the main spawn_sync() method, but inheriting the parent's environment. More...
|
|
void | spawn_command_line_async (const std::string& command_line) |
| A simple version of spawn_async() that parses a command line with shell_parse_argv() and passes it to spawn_async(). More...
|
|
void | spawn_command_line_sync (const std::string& command_line, std::string* standard_output=nullptr, std::string* standard_error=nullptr, int* exit_status=nullptr) |
| A simple version of spawn_sync() with little-used parameters removed, taking a command line instead of an argument vector. More...
|
|
void | spawn_close_pid (Pid pid) |
| On some platforms, notably WIN32, the Pid type represents a resource which must be closed to prevent resource leaking. More...
|
|
AsciiType | operator| (AsciiType lhs, AsciiType rhs) |
|
AsciiType | operator& (AsciiType lhs, AsciiType rhs) |
|
AsciiType | operator^ (AsciiType lhs, AsciiType rhs) |
|
AsciiType | operator~ (AsciiType flags) |
|
AsciiType& | operator|= (AsciiType& lhs, AsciiType rhs) |
|
AsciiType& | operator&= (AsciiType& lhs, AsciiType rhs) |
|
AsciiType& | operator^= (AsciiType& lhs, AsciiType rhs) |
|
std::string | uri_unescape_string (const std::string& escaped_string, const std::string& illegal_characters={}) |
| Unescapes a whole escaped string. More...
|
|
std::string | uri_parse_scheme (const std::string& uri) |
| Gets the scheme portion of a URI. More...
|
|
std::string | uri_escape_string (const std::string& unescaped, const std::string& reserved_chars_allowed={}, bool allow_utf8=true) |
| Escapes a string for use in a URI. More...
|
|
Glib::RefPtr< Gio::Drive > | wrap (GDrive* object, bool take_copy) |
|
Glib::RefPtr< Gio::File > | wrap (GFile* object, bool take_copy) |
|
Glib::RefPtr< Gio::Mount > | wrap (GMount* object, bool take_copy) |
|
Glib::RefPtr< Gio::Volume > | wrap (GVolume* object, bool take_copy) |
|