gtkmm: New API in gtkmm 3.12

gtkmm 3.13.2

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

New API in gtkmm 3.12

Member Gdk::Device::get_last_event_window ()
  Returns
    The last window the device.
Member Gdk::Device::get_last_event_window () const
  Returns
    The last window the device.
Member Gdk::Pixbuf::create_from_resource (const std::string& resource_path, int width, int height, bool preserve_aspect_ratio=true)
Member Gdk::Pixbuf::create_from_resource (const std::string& resource_path)
Class Gtk::ActionBar
Member Gtk::ActionBar::get_center_widget ()
  Returns
    The center Gtk::Widget.
Member Gtk::ActionBar::get_center_widget () const
  Returns
    The center Gtk::Widget.
Member Gtk::ActionBar::pack_end (Gtk::Widget& child)
  Parameters

    child | The Gtk::Widget to be added to action_bar.

Member Gtk::ActionBar::pack_start (Gtk::Widget& child)
  Parameters

    child | The Gtk::Widget to be added to action_bar.

Member Gtk::ActionBar::set_center_widget (Widget& center_widget)
  Parameters

    center_widget | A widget to use for the center.

Member Gtk::Application::get_accels_for_action (const Glib::ustring& detailed_action_name) const
  Parameters

    detailed_action_name | A detailed action name, specifying an action and target to obtain accelerators for.

  Returns
    Accelerators for detailed_action_name, as a `0`-terminated array. Free with Glib::strfreev() when no longer needed.
Member Gtk::Application::list_action_descriptions () const
  Returns
    A `0`-terminated array of strings, free with Glib::strfreev() when done.
Member Gtk::Application::set_accel_for_action (const Glib::ustring& detailed_action_name, const Glib::ustring& accel)
Member Gtk::Application::set_accels_for_action (const Glib::ustring& detailed_action_name, const std::vector< Glib::ustring >& accels)
  Parameters

    detailed_action_name | A detailed action name, specifying an action and target to associate accelerators with.
    accels | A list of accelerators in the format understood by gtk_accelerator_parse().

Member Gtk::Application::unset_accels_for_action (const Glib::ustring& detailed_action_name)
Member Gtk::Box::get_center_widget ()
  Returns
    The center widget.
Member Gtk::Box::get_center_widget () const
  Returns
    The center widget.
Member Gtk::Box::set_center_widget (Widget& widget)
  Parameters

    widget | The widget to center.

Member Gtk::Builder::expose_widget (const Glib::ustring& name, Widget& widget)
  Parameters

    name | The name of the widget exposed to the builder.
    widget | The widget to expose.

Member Gtk::Button::set_image_from_icon_name (const Glib::ustring& icon_name, IconSize size, bool use_fallback)
Member Gtk::Dialog::get_header_bar ()
  Returns
    The header bar.
Member Gtk::Dialog::get_header_bar () const
  Returns
    The header bar.
Member Gtk::Entry::get_max_width_chars () const
  Returns
    The maximum width of the entry, in characters.
Member Gtk::Entry::set_max_width_chars (int n_chars)
  Parameters

    n_chars | The new desired maximum width, in characters.

Class Gtk::FlowBox
Member Gtk::FlowBox::get_activate_on_single_click () const
  Returns
    `true` if children are activated on single click, `false` otherwise.
Member Gtk::FlowBox::get_child_at_index (int idx)
  Parameters

    idx | The position of the child.

  Returns
    The child widget, which will always be a Gtk::FlowBoxChild.
Member Gtk::FlowBox::get_child_at_index (int idx) const
  Parameters

    idx | The position of the child.

  Returns
    The child widget, which will always be a Gtk::FlowBoxChild.
Member Gtk::FlowBox::get_column_spacing () const
  Returns
    The horizontal spacing.
Member Gtk::FlowBox::get_homogeneous () const
  Returns
    `true` if the box is homogeneous.
Member Gtk::FlowBox::get_max_children_per_line () const
  Returns
    The maximum number of children per line.
Member Gtk::FlowBox::get_min_children_per_line () const
  Returns
    The minimum number of children per line.
Member Gtk::FlowBox::get_row_spacing () const
  Returns
    The vertical spacing.
Member Gtk::FlowBox::get_selected_children ()
  Returns
    A List containing the Gtk::Widget for each selected child. Free with Glib::list_free() when done.
Member Gtk::FlowBox::get_selected_children () const
  Returns
    A List containing the Gtk::Widget for each selected child. Free with Glib::list_free() when done.
Member Gtk::FlowBox::get_selection_mode () const
  Returns
    The Gtk::SelectionMode.
Member Gtk::FlowBox::insert (Widget& widget, int position)
  Parameters

    widget | The Gtk::Widget to add.
    position | The position to insert child in.

Member Gtk::FlowBox::invalidate_filter ()
Member Gtk::FlowBox::invalidate_sort ()
Member Gtk::FlowBox::select_all ()
Member Gtk::FlowBox::select_child (FlowBoxChild& child)
  Parameters

    child | A child of box.

Member Gtk::FlowBox::selected_foreach (const SlotSelectedForeach& slot)
Member Gtk::FlowBox::set_activate_on_single_click (bool single=true)
  Parameters

    single | `true` to emit child-activated on a single click.

Member Gtk::FlowBox::set_column_spacing (guint spacing)
  Parameters

    spacing | The spacing to use.

Member Gtk::FlowBox::set_filter_func (const SlotFilter& slot)
Member Gtk::FlowBox::set_hadjustment (const Glib::RefPtr< Adjustment >& adjustment)
  Parameters

    adjustment | An adjustment which should be adjusted when the focus is moved among the descendents of container.

Member Gtk::FlowBox::set_homogeneous (bool homogeneous=true)
  Parameters

    homogeneous | `true` to create equal allotments, `false` for variable allotments.

Member Gtk::FlowBox::set_max_children_per_line (guint n_children)
  Parameters

    n_children | The maximum number of children per line.

Member Gtk::FlowBox::set_min_children_per_line (guint n_children)
  Parameters

    n_children | The minimum number of children per line.

Member Gtk::FlowBox::set_row_spacing (guint spacing)
  Parameters

    spacing | The spacing to use.

Member Gtk::FlowBox::set_selection_mode (SelectionMode mode=SELECTION_NONE)
  Parameters

    mode | The new selection mode.

Member Gtk::FlowBox::set_sort_func (const SlotSort& slot)
Member Gtk::FlowBox::set_vadjustment (const Glib::RefPtr< Adjustment >& adjustment)
  Parameters

    adjustment | An adjustment which should be adjusted when the focus is moved among the descendents of container.

Member Gtk::FlowBox::SlotFilter
Member Gtk::FlowBox::SlotSelectedForeach
Member Gtk::FlowBox::SlotSort
Member Gtk::FlowBox::unselect_all ()
Member Gtk::FlowBox::unselect_child (FlowBoxChild& child)
  Parameters

    child | A child of box.

Member Gtk::FlowBox::unset_filter_func ()
Member Gtk::FlowBox::unset_sort_func ()
Class Gtk::FlowBoxChild
Member Gtk::FlowBoxChild::changed ()
Member Gtk::FlowBoxChild::get_index () const
  Returns
    The index of the child, or -1 if the child is not in a flow box.
Member Gtk::FlowBoxChild::is_selected () const
  Returns
    `true` if child is selected.
Member Gtk::HeaderBar::get_decoration_layout () const
  Returns
    The decoration layout.
Member Gtk::HeaderBar::get_has_subtitle () const
  Returns
    `true` if the header bar reserves space for a subtitle.
Member Gtk::HeaderBar::set_decoration_layout (const Glib::ustring& layout)
  Parameters

    layout | A decoration layout, or `0` to unset the layout.

Member Gtk::HeaderBar::set_has_subtitle (bool setting=true)
  Parameters

    setting | `true` to reserve space for a subtitle.

Member Gtk::IconInfo::is_symbolic () const
  Returns
    `true` if the icon is symbolic, `false` otherwise.
Member Gtk::MenuButton::get_popover ()
  Returns
    A Gtk::Popover or `0`.
Member Gtk::MenuButton::get_popover () const
  Returns
    A Gtk::Popover or `0`.
Member Gtk::MenuButton::get_use_popover ()
  Returns
    `true` if using a Gtk::Popover.
Member Gtk::MenuButton::set_popover (Popover& popover)
  Parameters

    popover | A Gtk::Popover.

Member Gtk::MenuButton::set_use_popover (bool use_popover=true)
  Parameters

    use_popover | `true` to construct a popover from the menu model.

Member Gtk::PlacesSidebar::get_local_only () const
  Returns
    `true` if the sidebar will only show local files.
Member Gtk::PlacesSidebar::set_local_only (bool local_only=true)
  Parameters

    local_only | Whether to show only local files.

Class Gtk::Popover
Member Gtk::Popover::bind_model (const Glib::RefPtr< Gio::MenuModel >& model, const Glib::ustring& action_namespace)
  Parameters

    model | The MenuModel to bind to or `0` to remove binding.
    action_namespace | The namespace for actions in model.

Member Gtk::Popover::get_modal () const
  Returns
    #`true` if popover is modal.
Member Gtk::Popover::get_relative_to ()
  Returns
    A Gtk::Widget.
Member Gtk::Popover::get_relative_to () const
  Returns
    A Gtk::Widget.
Member Gtk::Popover::Popover (const Widget& relative_to, const Glib::RefPtr< Gio::MenuModel >& model)
Member Gtk::Popover::Popover (const Glib::RefPtr< Gio::MenuModel >& model)
Member Gtk::Popover::set_modal (bool modal=true)
  Parameters

    modal | #`true` to make popover claim all input within the toplevel.

Member Gtk::Popover::set_pointing_to (const Gdk::Rectangle& rect)
  Parameters

    rect | Rectangle to point to.

Member Gtk::Popover::set_position (PositionType position=POS_TOP)
  Parameters

    position | Preferred popover position.

Member Gtk::Popover::set_relative_to (const Widget& relative_to)
  Parameters

    relative_to | A Gtk::Widget.

Member Gtk::Stack::get_child_by_name (const Glib::ustring& name)
  Parameters

    name | The name of the child to find.

  Returns
    The requested child of the Gtk::Stack.
Member Gtk::Stack::get_child_by_name (const Glib::ustring& name) const
  Parameters

    name | The name of the child to find.

  Returns
    The requested child of the Gtk::Stack.
Member Gtk::Stack::get_transition_running () const
  Returns
    `true` if the transition is currently running, `false` otherwise.
Member Gtk::STACK_TRANSITION_TYPE_OVER_DOWN
Member Gtk::STACK_TRANSITION_TYPE_OVER_LEFT
Member Gtk::STACK_TRANSITION_TYPE_OVER_RIGHT
Member Gtk::STACK_TRANSITION_TYPE_OVER_UP_DOWN
Member Gtk::STACK_TRANSITION_TYPE_UNDER_DOWN
Member Gtk::STACK_TRANSITION_TYPE_UNDER_LEFT
Member Gtk::STACK_TRANSITION_TYPE_UNDER_RIGHT
Member Gtk::ToolItem::unset_proxy_menu_item (const Glib::ustring& menu_item_id)
  Parameters

    menu_item_id | A string used to identify the MenuItem.

Member Gtk::Widget::get_margin_end () const
  Returns
    The end margin of widget.
Member Gtk::Widget::get_margin_start () const
  Returns
    The start margin of widget.
Member Gtk::Widget::set_margin_end (int margin)
  Parameters

    margin | The end margin.

Member Gtk::Widget::set_margin_start (int margin)
  Parameters

    margin | The start margin.

Member Gtk::Window::is_maximized () const
  Returns
    Whether the window has a maximized state.