gtkmm: New API in gtkmm 2.20

gtkmm 3.13.2

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

New API in gtkmm 2.20

Member Gdk::Device::get_axis_use (guint index_) const
  Parameters

    index | The index of the axis.

  Returns
    A Gdk::AxisUse specifying how the axis is used.
Member Gdk::Device::get_has_cursor () const
  Returns
    `true` if the pointer follows device motion.
Member Gdk::Device::get_key (guint index_, guint& keyval, ModifierType& modifiers) const
  Parameters

    index | The index of the macro button to get.
    keyval | Return value for the keyval.
    modifiers | Return value for modifiers.

  Returns
    `true` if keyval is set for index.
Member Gdk::Device::get_mode () const
  Returns
    A Gdk::InputSource.
Member Gdk::Device::get_name () const
  Returns
    A name.
Member Gdk::Device::get_source () const
  Returns
    A Gdk::InputSource.
Member Gdk::Screen::get_primary_monitor () const
  Returns
    An integer index for the primary monitor, or 0 if none is configured.
Member Gtk::Action::get_always_show_image () const
Member Gtk::Action::set_always_show_image (bool always_show=true)
Member Gtk::Dialog::get_widget_for_response (int response_id)
  Parameters

    response_id | The response ID used by the dialog widget.

  Returns
    The widget button that uses the given response_id, or `0`.
Member Gtk::Dialog::get_widget_for_response (int response_id) const
  Parameters

    response_id | The response ID used by the dialog widget.

  Returns
    The widget button that uses the given response_id, or `0`.
Member Gtk::Notebook::get_action_widget (PackType pack_type=PACK_START)
  Parameters

    pack_type | Pack type of the action widget to receive.

  Returns
    The action widget with the given pack_type or `0` when this action widget has not been set.
Member Gtk::Notebook::set_action_widget (Widget* widget, PackType pack_type=PACK_START)
  Parameters

    widget | A Gtk::Widget.
    pack_type | Pack type of the action widget.

Class Gtk::OffscreenWindow

Member Gtk::OffscreenWindow::get_pixbuf ()
  Returns
    A Gdk::Pixbuf pointer, or `0`.
Member Gtk::OffscreenWindow::get_pixbuf () const
  Returns
    A Gdk::Pixbuf pointer, or `0`.
Member Gtk::OffscreenWindow::get_surface () const
  Returns
    A #cairo_surface_t pointer to the offscreen surface, or `0`.
Member Gtk::OffscreenWindow::get_surface ()
  Returns
    A #cairo_surface_t pointer to the offscreen surface, or `0`.
Member Gtk::Paned::get_handle_window ()
  Returns
    The paned’s handle window.
Member Gtk::Paned::get_handle_window () const
  Returns
    The paned’s handle window.
Member Gtk::PrintContext::get_hard_margins (double& top, double& bottom, double& left, double& right) const
  Parameters

    top | Top hardware printer margin.
    bottom | Bottom hardware printer margin.
    left | Left hardware printer margin.
    right | Right hardware printer margin.

  Returns
    `true` if the hard margins were retrieved.
Member Gtk::Printer::get_hard_margins (double& top, double& bottom, double& left, double& right) const
  Parameters

    top | A location to store the top margin in.
    bottom | A location to store the bottom margin in.
    left | A location to store the left margin in.
    right | A location to store the right margin in.

  Returns
    `true` iff the hard margins were retrieved.
Member Gtk::Range::get_min_slider_size () const
  Returns
    The minimum size of the range’s slider.
Member Gtk::Range::get_slider_range (int& slider_start, int& slider_end) const
  Parameters

    slider_start | Return location for the slider's start, or `0`.
    slider_end | Return location for the slider's end, or `0`.

Member Gtk::Range::get_slider_size_fixed () const
  Returns
    Whether the range’s slider has a fixed size.
Member Gtk::Range::set_min_slider_size (bool min_size=true)
  Parameters

    min_size | The slider’s minimum size.

Member Gtk::Range::set_slider_size_fixed (bool size_fixed=true)
  Parameters

    size_fixed | `true` to make the slider size constant.

Class Gtk::Spinner

Member Gtk::Spinner::start ()
Member Gtk::Spinner::stop ()
Member Gtk::Statusbar::get_message_area () const
  Returns
    A Gtk::Box.
Member Gtk::Statusbar::get_message_area ()
  Returns
    A Gtk::Box.
Member Gtk::StatusIcon::set_name (const Glib::ustring& name)
  Parameters

    name | The name.

Member Gtk::ToolItem::get_ellipsize_mode () const
  Returns
    A Pango::EllipsizeMode indicating how text in tool_item should be ellipsized.
Member Gtk::ToolItem::get_text_alignment () const
  Returns
    A #gfloat indicating the horizontal text alignment used for tool_item.
Member Gtk::ToolItem::get_text_orientation () const
  Returns
    A Gtk::Orientation indicating the text orientation used for tool_item.
Member Gtk::ToolItem::get_text_size_group ()
  Returns
    A Gtk::SizeGroup.
Member Gtk::ToolItem::get_text_size_group () const
  Returns
    A Gtk::SizeGroup.
Class Gtk::ToolItemGroup

Member Gtk::ToolItemGroup::get_collapsed () const
  Returns
    `true` if group is collapsed, `false` if it is expanded.
Member Gtk::ToolItemGroup::get_drop_item (int x, int y)
  Parameters

    x | The x position.
    y | The y position.

  Returns
    The Gtk::ToolItem at position (x, y).
Member Gtk::ToolItemGroup::get_drop_item (int x, int y) const
  Parameters

    x | The x position.
    y | The y position.

  Returns
    The Gtk::ToolItem at position (x, y).
Member Gtk::ToolItemGroup::get_ellipsize () const
  Returns
    The Pango::EllipsizeMode of group.
Member Gtk::ToolItemGroup::get_header_relief () const
  Returns
    The Gtk::ReliefStyle.
Member Gtk::ToolItemGroup::get_item_position (const ToolItem& item) const
  Parameters

    item | A Gtk::ToolItem.

  Returns
    The index of item in group or -1 if item is no child of group.
Member Gtk::ToolItemGroup::get_label () const
  Returns
    The label of group. The label is an internal string of group and must not be modified. Note that `0` is returned if a custom label has been set with set_label_widget().
Member Gtk::ToolItemGroup::get_label_widget ()
  Returns
    The label widget of group.
Member Gtk::ToolItemGroup::get_label_widget () const
  Returns
    The label widget of group.
Member Gtk::ToolItemGroup::get_n_items () const
  Returns
    The number of tool items in group.
Member Gtk::ToolItemGroup::get_nth_item (guint index)
  Parameters

    index | The index.

  Returns
    The Gtk::ToolItem at index.
Member Gtk::ToolItemGroup::get_nth_item (guint index) const
  Parameters

    index | The index.

  Returns
    The Gtk::ToolItem at index.
Member Gtk::ToolItemGroup::insert (ToolItem& item, int position)
  Parameters

    item | The Gtk::ToolItem to insert into group.
    position | The position of item in group, starting with 0. The position -1 means end of list.

Member Gtk::ToolItemGroup::set_collapsed (bool collapsed=true)
  Parameters

    collapsed | Whether the group should be collapsed or expanded.

Member Gtk::ToolItemGroup::set_ellipsize (Pango::EllipsizeMode ellipsize)
  Parameters

    ellipsize | The Pango::EllipsizeMode labels in group should use.

Member Gtk::ToolItemGroup::set_header_relief (ReliefStyle style)
  Parameters

    style | The Gtk::ReliefStyle.

Member Gtk::ToolItemGroup::set_item_position (ToolItem& item, int position)
  Parameters

    item | The Gtk::ToolItem to move to a new position, should be a child of group.
    position | The new position of item in group, starting with 0. The position -1 means end of list.

Member Gtk::ToolItemGroup::set_label (const Glib::ustring& label)
  Parameters

    label | The new human-readable label of of the group.

Member Gtk::ToolItemGroup::set_label_widget (Widget& label_widget)
  Parameters

    label_widget | The widget to be displayed in place of the usual label.

Class Gtk::ToolPalette
Member Gtk::ToolPalette::add_drag_dest (Gtk::Widget& widget, DestDefaults flags=DEST_DEFAULT_ALL, ToolPaletteDragTargets targets=TOOL_PALETTE_DRAG_ITEMS, Gdk::DragAction actions=Gdk::ACTION_COPY)
  Parameters

    widget | A Gtk::Widget which should be a drag destination for palette.
    flags | The flags that specify what actions GTK+ should take for drops on that widget.
    targets | The Gtk::ToolPaletteDragTargets which the widget should support.
    actions | The Gdk::DragActions which the widget should suppport.

Member Gtk::ToolPalette::get_drag_item (const SelectionData& selection)
  Parameters

    selection | A Gtk::SelectionData.

  Returns
    The dragged item in selection.
Member Gtk::ToolPalette::get_drag_item (const SelectionData& selection) const
  Parameters

    selection | A Gtk::SelectionData.

  Returns
    The dragged item in selection.
Member Gtk::ToolPalette::get_drag_target_group ()
  Returns
    The Gtk::TargetEntry for a dragged group.
Member Gtk::ToolPalette::get_drag_target_item ()
  Returns
    The Gtk::TargetEntry for a dragged item.
Member Gtk::ToolPalette::get_drop_group (int x, int y)
  Parameters

    x | The x position.
    y | The y position.

  Returns
    The Gtk::ToolItemGroup at position or `0` if there is no such group.
Member Gtk::ToolPalette::get_drop_group (int x, int y) const
  Parameters

    x | The x position.
    y | The y position.

  Returns
    The Gtk::ToolItemGroup at position or `0` if there is no such group.
Member Gtk::ToolPalette::get_drop_item (int x, int y)
  Parameters

    x | The x position.
    y | The y position.

  Returns
    The Gtk::ToolItem at position or `0` if there is no such item.
Member Gtk::ToolPalette::get_drop_item (int x, int y) const
  Parameters

    x | The x position.
    y | The y position.

  Returns
    The Gtk::ToolItem at position or `0` if there is no such item.
Member Gtk::ToolPalette::get_exclusive (ToolItemGroup& group) const
  Parameters

    group | A Gtk::ToolItemGroup which is a child of palette.

  Returns
    `true` if group is exclusive.
Member Gtk::ToolPalette::get_expand (ToolItemGroup& group) const
  Parameters

    group | A Gtk::ToolItemGroup which is a child of palette.

  Returns
    `true` if group should be given extra space, `false` otherwise.
Member Gtk::ToolPalette::get_group_position (ToolItemGroup& group) const
  Parameters

    group | A Gtk::ToolItemGroup.

  Returns
    The index of group or -1 if group is not a child of palette.
Member Gtk::ToolPalette::get_icon_size () const
  Returns
    The Gtk::IconSize of icons in the tool palette.
Member Gtk::ToolPalette::get_style () const
  Returns
    The Gtk::ToolbarStyle of items in the tool palette.
Member Gtk::ToolPalette::set_drag_source (ToolPaletteDragTargets targets=TOOL_PALETTE_DRAG_ITEMS)
  Parameters

    targets | The Gtk::ToolPaletteDragTargets which the widget should support.

Member Gtk::ToolPalette::set_exclusive (ToolItemGroup& group, bool exclusive)
  Parameters

    group | A Gtk::ToolItemGroup which is a child of palette.
    exclusive | Whether the group should be exclusive or not.

Member Gtk::ToolPalette::set_expand (ToolItemGroup& group, bool expand=true)
  Parameters

    group | A Gtk::ToolItemGroup which is a child of palette.
    expand | Whether the group should be given extra space.

Member Gtk::ToolPalette::set_group_position (ToolItemGroup& group, int position)
  Parameters

    group | A Gtk::ToolItemGroup which is a child of palette.
    position | A new index for group.

Member Gtk::ToolPalette::set_icon_size (IconSize icon_size)
  Parameters

    icon_size | The Gtk::IconSize that icons in the tool palette shall have.

Member Gtk::ToolPalette::set_style (ToolbarStyle style)
  Parameters

    style | The Gtk::ToolbarStyle that items in the tool palette shall have.

Member Gtk::ToolPalette::unset_icon_size ()
Member Gtk::ToolPalette::unset_style ()
Member Gtk::ToolShell::get_ellipsize_mode () const
  Returns
    The current ellipsize mode of shell.
Member Gtk::ToolShell::get_text_alignment () const
  Returns
    The current text alignment of shell.
Member Gtk::ToolShell::get_text_orientation () const
  Returns
    The current text orientation of shell.
Member Gtk::ToolShell::get_text_size_group () const
  Returns
    The current text size group of shell.
Member Gtk::ToolShell::get_text_size_group ()
  Returns
    The current text size group of shell.
Member Gtk::Tooltip::set_icon (const Glib::RefPtr< Gio::Icon >& gicon, IconSize size)
  Parameters

    gicon | A Icon representing the icon, or `0`.
    size | A stock icon size.

Member Gtk::Viewport::get_bin_window () const
  Returns
    A Gdk::Window.
Member Gtk::Viewport::get_bin_window ()
  Returns
    A Gdk::Window.
Member Gtk::Widget::get_mapped () const
  Returns
    `true` if the widget is mapped, `false` otherwise.
Member Gtk::Widget::get_realized () const
  Returns
    `true` if widget is realized, `false` otherwise.
Member Gtk::Widget::get_requisition () const
Member Gtk::Widget::send_focus_change (GdkEvent* event)
  Parameters

    event | A Gdk::Event of type GDK_FOCUS_CHANGE.

  Returns
    The return value from the event signal emission: `true` if the event was handled, and `false` otherwise.
Member Gtk::Widget::set_mapped (bool mapped=true)
  Parameters

    mapped | `true` to mark the widget as mapped.

Member Gtk::Widget::set_realized (bool realized=true)
  Parameters

    realized | `true` to mark the widget as realized.

Member Gtk::Window::get_mnemonics_visible () const
  Returns
    `true` if mnemonics are supposed to be visible in this window.
Member Gtk::Window::get_window_type () const
  Returns
    The type of the window.
Member Gtk::Window::set_mnemonics_visible (bool setting=true)
  Parameters

    setting | The new value.

Member Gtk::Window::unset_transient_for ()