glibmm: New API in glibmm 2.6

glibmm 2.41.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Examples

New API in glibmm 2.6

Member Glib::KeyFile::get_boolean (const Glib::ustring& key) const
Member Glib::KeyFile::get_boolean (const Glib::ustring& group_name, const Glib::ustring& key) const
Member Glib::KeyFile::get_comment (const Glib::ustring& group_name, const Glib::ustring& key) const
Member Glib::KeyFile::get_integer (const Glib::ustring& key) const
Member Glib::KeyFile::get_integer (const Glib::ustring& group_name, const Glib::ustring& key) const
Member Glib::KeyFile::get_locale_string (const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& locale) const
Member Glib::KeyFile::get_start_group () const
  Returns
    The start group of the key file.
Member Glib::KeyFile::get_string (const Glib::ustring& group_name, const Glib::ustring& key) const
Member Glib::KeyFile::get_value (const Glib::ustring& group_name, const Glib::ustring& key) const
Member Glib::KeyFile::has_group (const Glib::ustring& group_name) const
  Parameters

    group_name | A group name.

  Returns
    `true` if group_name is a part of key_file, `false` otherwise.
Member Glib::KeyFile::has_key (const Glib::ustring& group_name, const Glib::ustring& key) const
Member Glib::KeyFile::load_from_file (const std::string& file, KeyFileFlags flags=Glib::KEY_FILE_NONE)
  Exceptions

    Glib::FileError |
    Glib::KeyFileError |

  Parameters

    file | The path of a filename to load, in the GLib filename encoding.
    flags | Flags from KeyFileFlags.

  Returns
    `true` if a key file could be loaded, `false` otherwise.
Member Glib::KeyFile::set_boolean (const Glib::ustring& group_name, const Glib::ustring& key, bool value)
  Parameters

    group_name | A group name.
    key | A key.
    value | `true` or `false`.

Member Glib::KeyFile::set_integer (const Glib::ustring& group_name, const Glib::ustring& key, int value)
  Parameters

    group_name | A group name.
    key | A key.
    value | An integer value.

Member Glib::KeyFile::set_list_separator (gchar separator)
  Parameters

    separator | The separator.

Member Glib::KeyFile::set_locale_string (const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& locale, const Glib::ustring& string)
  Parameters

    group_name | A group name.
    key | A key.
    locale | A locale identifier.
    string | A string.

Member Glib::KeyFile::set_string (const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& string)
  Parameters

    group_name | A group name.
    key | A key.
    string | A string.

Member Glib::KeyFile::set_value (const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& value)
  Parameters

    group_name | A group name.
    key | A key.
    value | A string.

Member Glib::OptionContext::get_help_enabled () const
  Returns
    `true` if automatic help generation is turned on.
Member Glib::OptionContext::get_ignore_unknown_options () const
  Returns
    `true` if unknown options are ignored.
Member Glib::OptionContext::parse (int& argc, char**& argv)
  Parameters

    argc | A pointer to the number of command line arguments.
    argv | A pointer to the array of command line arguments.

  Returns
    `true` if the parsing was successful, `false` if an error occurred.
Member Glib::OptionContext::set_help_enabled (bool help_enabled=true)
  Parameters

    help_enabled | `true` to enable `--help`, `false` to disable it.

Member Glib::OptionContext::set_ignore_unknown_options (bool ignore_unknown=true)
  Parameters

    ignore_unknown | `true` to ignore unknown options, `false` to produce an error when unknown options are met.

Member Glib::OptionGroup::set_translation_domain (const Glib::ustring& domain)
  Parameters

    domain | The domain to use.