gtkmm: New API in gtkmm 3.4

gtkmm 3.13.2

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

New API in gtkmm 3.4

Class Gdk::AppLaunchContext
Member Gdk::Device::list_axes () const
Member Gdk::Window::begin_move_drag (const Glib::RefPtr< Device >& device, int button, int root_x, int root_y, guint32 timestamp)
  Parameters

    device | The device used for the operation.
    button | The button being used to drag, or 0 for a keyboard-initiated drag.
    root_x | Root window X coordinate of mouse click that began the drag.
    root_y | Root window Y coordinate of mouse click that began the drag.
    timestamp | Timestamp of mouse click that began the drag.

Member Gdk::Window::resize_drag (WindowEdge edge, const Glib::RefPtr< Device >& device, int button, int root_x, int root_y, guint32 timestamp)
  Parameters

    edge | The edge or corner from which the drag is started.
    device | The device used for the operation.
    button | The button being used to drag, or 0 for a keyboard-initiated drag.
    root_x | Root window X coordinate of mouse click that began the drag.
    root_y | Root window Y coordinate of mouse click that began the drag.
    timestamp | Timestamp of mouse click that began the drag (use Gdk::Event::get_time()).

Member Gtk::AboutDialog::add_credit_section (const Glib::ustring& section_name, const std::vector< Glib::ustring >& people)
  Parameters

    section_name | The name of the section.
    people | The people who belong to that section.

Member Gtk::AboutDialog::set_logo_default ()
Member Gtk::AboutDialog::unset_license ()
Class Gtk::Actionable
Member Gtk::Actionable::get_action_name () const
  Returns
    The action name, or `0` if none is set.
Member Gtk::Actionable::get_action_target_value ()
  Returns
    The current target value.
Member Gtk::Actionable::get_action_target_value () const
  Returns
    The current target value.
Member Gtk::Actionable::set_action_name (const Glib::ustring& action_name)
  Parameters

    action_name | An action name, or `0`.

Member Gtk::Actionable::set_action_target_value (const Glib::VariantBase& target_value)
  Parameters

    target_value | A Variant to set as the target value, or `0`.

Member Gtk::Actionable::set_detailed_action_name (const Glib::ustring& detailed_action_name)
  Parameters

    detailed_action_name | The detailed action name.

Class Gtk::Application
Member Gtk::Application::add_accelerator (const Glib::ustring& accelerator, const Glib::ustring& action_name, GVariant* parameter)
Member Gtk::Application::add_window (Window& window)
  Parameters

    window | A toplevel window to add to the application.

Member Gtk::Application::Application (const Glib::ustring& application_id=Glib::ustring(), Gio::ApplicationFlags flags=Gio::APPLICATION_FLAGS_NONE)
Member Gtk::Application::Application (int& argc, char**& argv, const Glib::ustring& application_id=Glib::ustring(), Gio::ApplicationFlags flags=Gio::APPLICATION_FLAGS_NONE)
Member Gtk::Application::create (const Glib::ustring& application_id=Glib::ustring(), Gio::ApplicationFlags flags=Gio::APPLICATION_FLAGS_NONE)
Member Gtk::Application::create (int& argc, char**& argv, const Glib::ustring& application_id=Glib::ustring(), Gio::ApplicationFlags flags=Gio::APPLICATION_FLAGS_NONE)
Member Gtk::Application::get_app_menu ()
  Returns
    The application menu of application.
Member Gtk::Application::get_app_menu () const
  Returns
    The application menu of application.
Member Gtk::Application::get_menubar ()
  Returns
    The menubar for windows of application.
Member Gtk::Application::get_menubar () const
  Returns
    The menubar for windows of application.
Member Gtk::Application::inhibit (Window& window, ApplicationInhibitFlags flags, const Glib::ustring& reason)
  Parameters

    window | A Gtk::Window, or `0`.
    flags | What types of actions should be inhibited.
    reason | A short, human-readable string that explains why these operations are inhibited.

  Returns
    A non-zero cookie that is used to uniquely identify this request. It should be used as an argument to uninhibit() in order to remove the request. If the platform does not support inhibiting or the request failed for some reason, 0 is returned.
Member Gtk::Application::is_inhibited (ApplicationInhibitFlags flags) const
  Parameters

    flags | What types of actions should be queried.

  Returns
    `true` if any of the actions specified in flags are inhibited.
Member Gtk::Application::remove_accelerator (const Glib::ustring& action_name, GVariant* parameter)
Member Gtk::Application::run (int argc, char** argv)
Member Gtk::Application::run (Window& window, int argc, char** argv)
Member Gtk::Application::run (Window& window)
Member Gtk::Application::run ()
Member Gtk::Application::set_app_menu (const Glib::RefPtr< Gio::MenuModel >& app_menu)
  Parameters

    app_menu | A MenuModel, or `0`.

Member Gtk::Application::set_menubar (const Glib::RefPtr< Gio::MenuModel >& menubar)
  Parameters

    menubar | A MenuModel, or `0`.

Member Gtk::Application::uninhibit (guint cookie)
  Parameters

    cookie | A cookie that was returned by inhibit().

Member Gtk::ApplicationWindow::get_show_menubar () const
  Returns
    `true` if window will display a menubar when needed.
Member Gtk::ApplicationWindow::set_show_menubar (bool show_menubar=true)
  Parameters

    show_menubar | Whether to show a menubar when needed.

Member Gtk::Builder::add_from_resource (const std::string& resource_path, const std::vector< Glib::ustring >& object_ids)
  Parameters

    resource_path | The path of the resource 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::CellArea::foreach (const SlotForeach& slot)
Member Gtk::CellArea::foreach (const Glib::RefPtr< CellAreaContext >& context, Widget* widget, const Gdk::Rectangle& cell_area, const Gdk::Rectangle& background_area, const SlotForeachAlloc& slot)
Member Gtk::CellArea::SlotForeach
Member Gtk::CellArea::SlotForeachAlloc
Class Gtk::ColorChooser
Member Gtk::ColorChooser::add_palette (Orientation orientation, int colors_per_line, const std::vector< Gdk::RGBA >& colors)
Member Gtk::ColorChooser::get_rgba () const
Member Gtk::ColorChooser::get_use_alpha () const
  Returns
    `true` if the color chooser uses the alpha channel, `false` if not.
Member Gtk::ColorChooser::set_rgba (const Gdk::RGBA& color)
  Parameters

    color | The new color.

Member Gtk::ColorChooser::set_use_alpha (bool use_alpha=true)
  Parameters

    use_alpha | `true` if color chooser should use alpha channel, `false` if not.

Member Gtk::ColorChooser::signal_color_activated ()
  Parameters

    color | The color.

Member Gtk::ComboBox::signal_format_entry_text ()
  Parameters

    path | The GtkTreePath string from the combo box's current model to format text for.

  Returns
    A newly allocated string representing path for the current GtkComboBox model.
Member Gtk::EntryCompletion::compute_prefix (const Glib::ustring& key)
  Parameters

    key | The text to complete for.

  Returns
    The common prefix all rows starting with key or `0` if no row matches key.
Member Gtk::FontChooser::set_filter_func (const SlotFontFilter& slot)
Member Gtk::FontChooser::SlotFontFilter
Member Gtk::Scale::get_has_origin () const
  Returns
    `true` if the scale has an origin.
Member Gtk::Scale::set_has_origin (bool has_origin=true)
  Parameters

    has_origin | `true` if the scale has an origin.

Member Gtk::ScrolledWindow::get_capture_button_press () const
  Returns
    `true` if button presses are captured during kinetic scrolling.
Member Gtk::ScrolledWindow::get_kinetic_scrolling () const
  Returns
    The scrolling behavior flags.
Member Gtk::ScrolledWindow::set_capture_button_press (bool capture_button_press)
  Parameters

    capture_button_press | `true` to capture button presses.

Member Gtk::ScrolledWindow::set_kinetic_scrolling (bool kinetic_scrolling=true)
  Parameters

    kinetic_scrolling | `true` to enable kinetic scrolling.

Member Gtk::StyleContext::get_parent () const
  Returns
    The parent context or `0`.
Member Gtk::StyleContext::get_parent ()
  Returns
    The parent context or `0`.
Member Gtk::StyleContext::render_insertion_cursor (const ::Cairo::RefPtr< ::Cairo::Context >& cr, double x, double y, const Glib::RefPtr< Pango::Layout >& layout, int index, Pango::Direction direction)
  Parameters

    context | A Gtk::StyleContext.
    cr | A #cairo_t.
    x | X origin.
    y | Y origin.
    layout | The Pango::Layout of the text.
    index | The index in the Pango::Layout.
    direction | The Pango::Direction of the text.

Member Gtk::StyleContext::set_parent (const Glib::RefPtr< StyleContext >& parent)
  Parameters

    parent | The new parent or `0`.

Member Gtk::TreeView::get_n_columns () const
  Returns
    The number of columns in the tree_view.
Member Gtk::UIManager::add_ui_from_resource (const Glib::ustring& resource_path)
Member Gtk::Widget::get_modifier_mask (Gdk::ModifierIntent intent)
  Parameters

    intent | The use case for the modifier mask.

  Returns
    The modifier mask used for intent.
Member Gtk::Window::get_attached_to ()
  Returns
    The widget where the window is attached, or `0` if the window is not attached to any widget.
Member Gtk::Window::get_attached_to () const
  Returns
    The widget where the window is attached, or `0` if the window is not attached to any widget.
Member Gtk::Window::get_hide_titlebar_when_maximized () const
  Returns
    `true` if the window has requested to have its titlebar hidden when maximized.
Member Gtk::Window::set_attached_to (Widget& attach_widget)
  Parameters

    attach_widget | A Gtk::Widget, or `0`.

Member Gtk::Window::set_hide_titlebar_when_maximized (bool setting=true)
  Parameters

    setting | Whether to hide the titlebar when window is maximized.

Member Gtk::Window::unset_attached_to ()