gtkmm: New API in gtkmm 2.14

gtkmm 3.13.2

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

New API in gtkmm 2.14

Member Gdk::AppLaunchContext::set_desktop (int desktop)
  Parameters

    desktop | The number of a workspace, or -1.

Member Gdk::AppLaunchContext::set_icon (const Glib::RefPtr< Gio::Icon >& icon)
  Parameters

    icon | A Icon, or `0`.

Member Gdk::AppLaunchContext::set_icon_name (const Glib::ustring& icon_name)
  Parameters

    icon_name | An icon name, or `0`.

Member Gdk::AppLaunchContext::set_screen (const Glib::RefPtr< Gdk::Screen >& screen)
  Parameters

    screen | A Gdk::Screen.

Member Gdk::AppLaunchContext::set_timestamp (guint32 timestamp)
  Parameters

    timestamp | A timestamp.

Member Gdk::Color::to_string () const
Member Gdk::Pixbuf::create_from_stream (const Glib::RefPtr< Gio::InputStream >& stream, const Glib::RefPtr< Gio::Cancellable >& cancellable)
  Parameters

    stream | A InputStream to load the pixbuf from.
    cancellable | Optional Cancellable object, `0` to ignore.

  Returns
    A newly-created pixbuf, or `0` if any of several error conditions occurred: the file could not be opened, the image format is not supported, there was not enough memory to allocate the image buffer, the stream contained invalid data, or the operation was cancelled.
Member Gdk::Pixbuf::create_from_stream_at_scale (const Glib::RefPtr< Gio::InputStream >& stream, int width, int height, bool preserve_aspect_ratio, const Glib::RefPtr< Gio::Cancellable >& cancellable)
  Parameters

    stream | A InputStream to load the pixbuf from.
    width | The width the image should have or -1 to not constrain the width.
    height | The height the image should have or -1 to not constrain the height.
    preserve_aspect_ratio | `true` to preserve the image's aspect ratio.
    cancellable | Optional Cancellable object, `0` to ignore.

  Returns
    A newly-created pixbuf, or `0` if any of several error conditions occurred: the file could not be opened, the image format is not supported, there was not enough memory to allocate the image buffer, the stream contained invalid data, or the operation was cancelled.
Member Gdk::PixbufAnimationIter::advance (const Glib::TimeVal& current_time)
  Parameters

    current_time | Current time.

  Returns
    `true` if the image may need updating.
Member Gdk::PixbufAnimationIter::advance ()
Member Gdk::PixbufAnimationIter::get_delay_time () const
  Returns
    Delay time in milliseconds (thousandths of a second).
Member Gdk::PixbufAnimationIter::get_pixbuf ()
  Returns
    The pixbuf to be displayed.
Member Gdk::PixbufAnimationIter::get_pixbuf () const
  Returns
    The pixbuf to be displayed.
Member Gdk::PixbufAnimationIter::on_currently_loading_frame () const
  Returns
    `true` if the frame we're on is partially loaded, or the last frame.
Member Gdk::Screen::get_monitor_height_mm (int monitor_num) const
  Parameters

    monitor_num | Number of the monitor, between 0 and gdk_screen_get_n_monitors (screen).

  Returns
    The height of the monitor, or -1 if not available.
Member Gdk::Screen::get_monitor_plug_name (int monitor_num) const
  Parameters

    monitor_num | Number of the monitor, between 0 and gdk_screen_get_n_monitors (screen).

  Returns
    A newly-allocated string containing the name of the monitor, or `0` if the name cannot be determined.
Member Gdk::Screen::get_monitor_width_mm (int monitor_num) const
  Parameters

    monitor_num | Number of the monitor, between 0 and gdk_screen_get_n_monitors (screen).

  Returns
    The width of the monitor, or -1 if not available.
Member Gdk::Screen::signal_monitors_changed ()
Member Gtk::AccelGroup::get_is_locked () const
  Returns
    `true` if there are 1 or more locks on the accel_group, `false` otherwise.
Member Gtk::AccelGroup::get_modifier_mask () const
  Returns
    The modifier mask for this accel group.
Member Gtk::Adjustment::configure (double value, double lower, double upper, double step_increment, double page_increment, double page_size)
  Parameters

    value | The new value.
    lower | The new minimum value.
    upper | The new maximum value.
    step_increment | The new step increment.
    page_increment | The new page increment.
    page_size | The new page size.

Member Gtk::Adjustment::get_lower () const
  Returns
    The current minimum value of the adjustment.
Member Gtk::Adjustment::get_page_increment () const
  Returns
    The current page increment of the adjustment.
Member Gtk::Adjustment::get_page_size () const
  Returns
    The current page size of the adjustment.
Member Gtk::Adjustment::get_step_increment () const
  Returns
    The current step increment of the adjustment.
Member Gtk::Adjustment::get_upper () const
  Returns
    The current maximum value of the adjustment.
Member Gtk::Adjustment::set_lower (double lower)
  Parameters

    lower | The new minimum value.

Member Gtk::Adjustment::set_page_increment (double page_increment)
  Parameters

    page_increment | The new page increment.

Member Gtk::Adjustment::set_page_size (double page_size)
  Parameters

    page_size | The new page size.

Member Gtk::Adjustment::set_step_increment (double step_increment)
  Parameters

    step_increment | The new step increment.

Member Gtk::Adjustment::set_upper (double upper)
  Parameters

    upper | The new maximum value.

Member Gtk::Builder::add_from_file (const std::string& filename)
Member Gtk::Builder::add_from_file (const std::string& filename, const Glib::ustring& object_id)
Member Gtk::Builder::add_from_file (const std::string& filename, const std::vector< Glib::ustring >& object_ids)
  Parameters

    filename | The name of the file to parse.
    object_ids | Nul-terminated array of objects to build.

  Returns
    A positive value on success, 0 if an error occurred.
Member Gtk::Builder::add_from_string (const Glib::ustring& buffer, const Glib::ustring& object_id)
Member Gtk::Builder::add_from_string (const Glib::ustring& buffer, const std::vector< Glib::ustring >& object_ids)
Member Gtk::Builder::create_from_file (const std::string& filename, const Glib::ustring& object_id)
Member Gtk::Builder::create_from_file (const std::string& filename, const std::vector< Glib::ustring >& object_ids)
Member Gtk::Builder::create_from_string (const Glib::ustring& buffer, const Glib::ustring& object_id)
Member Gtk::Builder::create_from_string (const Glib::ustring& buffer, const std::vector< Glib::ustring >& object_ids)
Member Gtk::Calendar::get_detail_height_rows () const
  Returns
    The height of detail cells, in rows.
Member Gtk::Calendar::get_detail_width_chars () const
  Returns
    The width of detail cells, in characters.
Member Gtk::Calendar::set_detail_func (const SlotDetails& slot)
Member Gtk::Calendar::set_detail_height_rows (int rows)
  Parameters

    rows | Detail height in rows.

Member Gtk::Calendar::set_detail_width_chars (int chars)
  Parameters

    chars | Detail width in characters.

Member Gtk::Calendar::SlotDetails
Member Gtk::CellRendererCombo::signal_changed ()
  Parameters

    path_string | A string of the path identifying the edited cell (relative to the tree view model).
    new_iter | The new iter selected in the combo box (relative to the combo box model).

Member Gtk::Clipboard::request_uris (const SlotUrisReceived& slot)
Member Gtk::Clipboard::wait_for_uris () const
  Returns
    A newly-allocated `0`-terminated array of strings which must be freed with Glib::strfreev(), or `0` if retrieving the selection data failed. (This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into URI form.).
Member Gtk::Clipboard::wait_is_uris_available () const
  Returns
    `true` is there is an URI list available, `false` otherwise.
Member Gtk::ColorSelectionDialog::get_color_selection ()
  Returns
    The embedded Gtk::ColorSelection.
Member Gtk::ColorSelectionDialog::get_color_selection () const
  Returns
    The embedded Gtk::ColorSelection.
Member Gtk::ComboBox::get_button_sensitivity () const
  Returns
    Gtk::SENSITIVITY_ON if the dropdown button is sensitive when the model is empty, Gtk::SENSITIVITY_OFF if the button is always insensitive or Gtk::SENSITIVITY_AUTO if it is only sensitive as long as the model has one item to be selected.
Member Gtk::ComboBox::set_button_sensitivity (SensitivityType sensitivity)
  Parameters

    sensitivity | Specify the sensitivity of the dropdown button.

Member Gtk::Container::get_focus_child ()
  Returns
    The child widget which will receive the focus inside container when the conatiner is focussed, or `0` if none is set.
Member Gtk::Container::get_focus_child () const
  Returns
    The child widget which will receive the focus inside container when the conatiner is focussed, or `0` if none is set.
Member Gtk::Dialog::get_action_area ()
Member Gtk::Dialog::get_action_area () const
Member Gtk::Dialog::get_content_area ()
  Returns
    The content area Gtk::Box.
Member Gtk::Dialog::get_content_area () const
  Returns
    The content area Gtk::Box.
Member Gtk::Dialog::get_vbox ()
Member Gtk::Dialog::get_vbox () const
Member Gtk::Entry::get_overwrite_mode () const
  Returns
    Whether the text is overwritten when typing.
Member Gtk::Entry::get_text_length () const
  Returns
    The current number of characters in Gtk::Entry, or 0 if there are none.
Member Gtk::Entry::set_overwrite_mode (bool overwrite=true)
  Parameters

    overwrite | New value.

Member Gtk::FileChooser::get_current_folder_file ()
  Returns
    The File for the current folder.
Member Gtk::FileChooser::get_file ()
  Returns
    A selected File. You own the returned file; use Glib::object_unref() to release it.
Member Gtk::FileChooser::get_file () const
  Returns
    A selected File. You own the returned file; use Glib::object_unref() to release it.
Member Gtk::FileChooser::get_files ()
  Returns
    A SList containing a File for each selected file and subfolder in the current folder. Free the returned list with Glib::slist_free(), and the files with Glib::object_unref().
Member Gtk::FileChooser::get_preview_file ()
  Returns
    The File for the file to preview, or `0` if no file is selected. Free with Glib::object_unref().
Member Gtk::FileChooser::get_preview_file () const
  Returns
    The File for the file to preview, or `0` if no file is selected. Free with Glib::object_unref().
Member Gtk::FileChooser::select_file (const Glib::RefPtr< const Gio::File >& file)
  Parameters

    file | The file to select.

  Returns
    Not useful.
Member Gtk::FileChooser::set_current_folder_file (const Glib::RefPtr< const Gio::File >& file)
  Parameters

    file | The File for the new folder.

  Returns
    `true` if the folder could be changed successfully, `false` otherwise.
Member Gtk::FileChooser::set_file (const Glib::RefPtr< const Gio::File >& file)
  Parameters

    file | The File to set as current.

  Returns
    Not useful.
Member Gtk::FileChooser::unselect_file (const Glib::RefPtr< const Gio::File >& file)
  Parameters

    file | A File.

Member Gtk::FontSelection::get_face ()
Member Gtk::FontSelection::get_face () const
Member Gtk::FontSelection::get_face_list ()
Member Gtk::FontSelection::get_face_list () const
Member Gtk::FontSelection::get_family ()
Member Gtk::FontSelection::get_family () const
Member Gtk::FontSelection::get_family_list ()
Member Gtk::FontSelection::get_family_list () const
Member Gtk::FontSelection::get_preview_entry ()
Member Gtk::FontSelection::get_preview_entry () const
Member Gtk::FontSelection::get_size () const
Member Gtk::FontSelection::get_size_entry ()
Member Gtk::FontSelection::get_size_entry () const
Member Gtk::FontSelection::get_size_list () const
Member Gtk::FontSelection::get_size_list ()
Member Gtk::FontSelectionDialog::get_cancel_button ()
Member Gtk::FontSelectionDialog::get_cancel_button () const
Member Gtk::FontSelectionDialog::get_ok_button ()
Member Gtk::FontSelectionDialog::get_ok_button () const
Member Gtk::HandleBox::is_child_detached () const
Member Gtk::IconSize::lookup (IconSize size, int& width, int& height, const Glib::RefPtr< Gtk::Settings >& settings)
Member Gtk::IconTheme::lookup_icon (const Glib::RefPtr< const Gio::Icon >& icon, int size, IconLookupFlags flags) const
  Parameters

    icon | The Icon to look up.
    size | Desired icon size.
    flags | Flags modifying the behavior of the icon lookup.

  Returns
    A Gtk::IconInfo containing information about the icon, or `0` if the icon wasn’t found. Unref with Glib::object_unref().
Member Gtk::Image::get_gicon (Gtk::IconSize& icon_size)
Member Gtk::Image::get_gicon (Gtk::IconSize& icon_size) const
Member Gtk::Image::set (const Glib::RefPtr< const Gio::Icon >& icon, IconSize size)
  Parameters

    icon | An icon.
    size | An icon size.

Member Gtk::Layout::get_bin_window ()
  Returns
    A Gdk::Window.
Member Gtk::Layout::get_bin_window () const
  Returns
    A Gdk::Window.
Member Gtk::LinkButton::get_visited () const
  Returns
    `true` if the link has been visited, `false` otherwise.
Member Gtk::LinkButton::set_visited (bool visited=true)
  Parameters

    visited | The new “visited” state.

Member Gtk::Menu::get_accel_path () const
  Returns
    The accelerator path set on the menu.
Member Gtk::Menu::get_monitor () const
  Returns
    The number of the monitor on which the menu should be popped up or -1, if no monitor has been set.
Member Gtk::MenuItem::get_accel_path () const
  Returns
    The accelerator path corresponding to this menu item’s functionality, or `0` if not set.
Member Gtk::MessageDialog::get_image ()
  Deprecated: 3.12: Use Gtk::Dialog for dialogs with images
Member Gtk::MessageDialog::get_image () const
  Deprecated: 3.12: Use Gtk::Dialog for dialogs with images
  Returns
    The dialog’s image.
Member Gtk::PageSetup::create_from_file (const std::string& file_name)
Member Gtk::PageSetup::create_from_key_file (const Glib::KeyFile& key_file)
Member Gtk::PageSetup::create_from_key_file (const Glib::KeyFile& key_file, const Glib::ustring& group_name)
Member Gtk::PageSetup::load_from_file (const std::string& file_name)
  Parameters

    file_name | The filename to read the page setup from.

  Returns
    `true` on success.
Member Gtk::PageSetup::load_from_key_file (const Glib::KeyFile& key_file)
Member Gtk::PageSetup::load_from_key_file (const Glib::KeyFile& key_file, const Glib::ustring& group_name)
  Parameters

    key_file | The KeyFile to retrieve the page_setup from.
    group_name | The name of the group in the key_file to read, or `0` to use the default name “Page Setup”.

  Returns
    `true` on success.
Member Gtk::Plug::get_embedded () const
  Returns
    `true` if the plug is embedded in a socket.
Member Gtk::Plug::get_socket_window ()
  Returns
    The window of the socket, or `0`.
Member Gtk::Plug::get_socket_window () const
  Returns
    The window of the socket, or `0`.
Member Gtk::Printer::get_default_page_size () const
  Returns
    A newly allocated Gtk::PageSetup with default page size of the printer.
Member Gtk::Printer::is_accepting_jobs () const
  Returns
    `true` if printer is accepting jobs.
Member Gtk::Printer::is_paused () const
  Returns
    `true` if printer is paused.
Member Gtk::PrintSettings::create_from_file (const std::string& file_name)
Member Gtk::PrintSettings::create_from_key_file (const Glib::KeyFile& key_file, const Glib::ustring& group_name)
Member Gtk::PrintSettings::create_from_key_file (const Glib::KeyFile& key_file)
Member Gtk::PrintSettings::get_number_up_layout () const
  Returns
    Layout of page in number-up mode.
Member Gtk::PrintSettings::load_from_file (const std::string& file_name)
  Parameters

    file_name | The filename to read the settings from.

  Returns
    `true` on success.
Member Gtk::PrintSettings::load_from_key_file (const Glib::KeyFile& key_file)
Member Gtk::PrintSettings::load_from_key_file (const Glib::KeyFile& key_file, const Glib::ustring& group_name)
  Parameters

    key_file | The KeyFile to retrieve the settings from.
    group_name | The name of the group to use, or `0` to use the default “Print Settings”.

  Returns
    `true` on success.
Member Gtk::PrintSettings::set_number_up (NumberUpLayout number_up_layout)
  Parameters

    number_up_layout | A Gtk::NumberUpLayout value.

Member Gtk::ScaleButton::get_minus_button ()
  Returns
    The minus button of the Gtk::ScaleButton.
Member Gtk::ScaleButton::get_minus_button () const
  Returns
    The minus button of the Gtk::ScaleButton.
Member Gtk::ScaleButton::get_plus_button ()
  Returns
    The plus button of the Gtk::ScaleButton.
Member Gtk::ScaleButton::get_plus_button () const
  Returns
    The plus button of the Gtk::ScaleButton.
Member Gtk::ScaleButton::get_popup ()
  Returns
    The popup of the Gtk::ScaleButton.
Member Gtk::ScaleButton::get_popup () const
  Returns
    The popup of the Gtk::ScaleButton.
Member Gtk::SelectionData::get_data () const
  Returns
    The raw data of the selection.
Member Gtk::SelectionData::get_display ()
  Returns
    The display of the selection.
Member Gtk::SelectionData::get_display () const
  Returns
    The display of the selection.
Member Gtk::SelectionData::get_format () const
  Returns
    The format of the selection.
Member Gtk::SelectionData::get_length () const
  Returns
    The length of the data of the selection.
Member Gtk::SelectionData::get_target () const
Member Gtk::Socket::get_plug_window ()
  Returns
    The window of the plug if available, or `0`.
Member Gtk::Socket::get_plug_window () const
  Returns
    The window of the plug if available, or `0`.
Member Gtk::StatusIcon::get_icon ()
  Returns
    The displayed icon, or `0` if the image is empty.
Member Gtk::StatusIcon::get_icon () const
  Returns
    The displayed icon, or `0` if the image is empty.
Member Gtk::StatusIcon::get_x11_window_id () const
  Returns
    An 32 bit unsigned integer identifier for the underlying X11 Window.
Member Gtk::StatusIcon::set (const Glib::RefPtr< const Gio::Icon >& icon)
  Parameters

    icon | A GIcon.

Member Gtk::StatusIcon::signal_button_press_event ()
  Parameters

    event | The Gdk::EventButton which triggered this signal.

  Returns
    `true` to stop other handlers from being invoked for the event. `false` to propagate the event further.
Member Gtk::StatusIcon::signal_button_release_event ()
  Parameters

    event | The Gdk::EventButton which triggered this signal.

  Returns
    `true` to stop other handlers from being invoked for the event. `false` to propagate the event further.
Member Gtk::ToolItem::toolbar_reconfigured ()
Class Gtk::ToolShell
Member Gtk::ToolShell::get_icon_size () const
  Returns
    The current size for icons of shell.
Member Gtk::ToolShell::get_orientation () const
  Returns
    The current orientation of shell.
Member Gtk::ToolShell::get_relief_style () const
  Returns
    The relief style of buttons on shell.
Member Gtk::ToolShell::get_style () const
  Returns
    The current style of shell.
Member Gtk::ToolShell::rebuild_menu ()
Member Gtk::Tooltip::set_icon_from_icon_name (const Glib::ustring& icon_name, IconSize size)
  Parameters

    icon_name | An icon name, or `0`.
    size | A stock icon size.

Member Gtk::Widget::get_window ()
  Returns
    widget’s window.
Member Gtk::Widget::get_window () const
  Returns
    widget’s window.
Member Gtk::Widget::signal_damage_event ()
  Parameters

    event | The Gdk::EventExpose event.

  Returns
    `true` to stop other handlers from being invoked for the event. `false` to propagate the event further.
Member Gtk::Window::get_default_widget () const
  Returns
    The default widget, or `0` if there is none.
Member Gtk::Window::get_default_widget ()
  Returns
    The default widget, or `0` if there is none.
Member Gtk::WindowGroup::list_windows ()
  Returns
    A newly-allocated list of windows inside the group.
Member Gtk::WindowGroup::list_windows () const
  Returns
    A newly-allocated list of windows inside the group.