gtkmm: New API in gtkmm 2.18

gtkmm 3.13.2

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

New API in gtkmm 2.18

Member Gdk::Window::ensure_native ()
  Returns
    `true` if the window has a native window, `false` otherwise.
Member Gdk::Window::flush ()
Member Gdk::Window::geometry_changed ()
Member Gdk::Window::get_cursor ()
  Returns
    A Gdk::Cursor, or `0`. The returned object is owned by the Gdk::Window and should not be unreferenced directly. Use set_cursor() to unset the cursor of the window.
Member Gdk::Window::get_cursor () const
  Returns
    A Gdk::Cursor, or `0`. The returned object is owned by the Gdk::Window and should not be unreferenced directly. Use set_cursor() to unset the cursor of the window.
Member Gdk::Window::get_offscreen_embedder ()
  Parameters

    window | A Gdk::Window.

  Returns
    The embedding Gdk::Window, or `0` if window is not an mbedded offscreen window.
Member Gdk::Window::get_offscreen_embedder () const
  Parameters

    window | A Gdk::Window.

  Returns
    The embedding Gdk::Window, or `0` if window is not an mbedded offscreen window.
Member Gdk::Window::get_root_coords (int x, int y, int& root_x, int& root_y)
  Parameters

    x | X coordinate in window.
    y | Y coordinate in window.
    root_x | Return location for X coordinate.
    root_y | Return location for Y coordinate.

Member Gdk::Window::restack (bool above)
Member Gdk::Window::restack (const Glib::RefPtr< Window >& sibling, bool above)
  Parameters

    sibling | A Gdk::Window that is a sibling of window, or `0`.
    above | A boolean.

Member Gdk::Window::set_offscreen_embedder (const Glib::RefPtr< Window >& embedder)
  Parameters

    window | A Gdk::Window.
    embedder | The Gdk::Window that window gets embedded in.

Member Gtk::CellRenderer::get_alignment (float& xalign, float& yalign) const
  Parameters

    xalign | Location to fill in with the x alignment of the cell, or `0`.
    yalign | Location to fill in with the y alignment of the cell, or `0`.

Member Gtk::CellRenderer::get_padding (int& xpad, int& ypad) const
  Parameters

    xpad | Location to fill in with the x padding of the cell, or `0`.
    ypad | Location to fill in with the y padding of the cell, or `0`.

Member Gtk::CellRenderer::get_sensitive () const
  Returns
    `true` if the cell renderer is sensitive.
Member Gtk::CellRenderer::get_visible () const
  Returns
    `true` if the cell renderer is visible.
Member Gtk::CellRenderer::set_alignment (float xalign, float yalign)
  Parameters

    xalign | The x alignment of the cell renderer.
    yalign | The y alignment of the cell renderer.

Member Gtk::CellRenderer::set_padding (int xpad, int ypad)
  Parameters

    xpad | The x padding of the cell renderer.
    ypad | The y padding of the cell renderer.

Member Gtk::CellRenderer::set_sensitive (bool sensitive=true)
  Parameters

    sensitive | The sensitivity of the cell.

Member Gtk::CellRenderer::set_visible (bool visible=true)
  Parameters

    visible | The visibility of the cell.

Member Gtk::CellRendererToggle::get_activatable () const
  Returns
    `true` if the cell renderer is activatable.
Member Gtk::CellRendererToggle::set_activatable (bool setting=true)
  Parameters

    setting | The value to set.

Member Gtk::Entry::get_buffer ()
  Returns
    A Gtk::EntryBuffer object.
Member Gtk::Entry::get_buffer () const
  Returns
    A Gtk::EntryBuffer object.
Member Gtk::Entry::set_buffer (const Glib::RefPtr< EntryBuffer >& buffer)
  Parameters

    buffer | A Gtk::EntryBuffer.

Member Gtk::EntryBuffer::delete_text (guint position, int n_chars)
  Parameters

    position | Position at which to delete text.
    n_chars | Number of characters to delete.

  Returns
    The number of characters deleted.
Member Gtk::EntryBuffer::emit_deleted_text (guint position, guint n_chars)
  Parameters

    position | Position at which text was deleted.
    n_chars | Number of characters deleted.

Member Gtk::EntryBuffer::get_bytes () const
  Returns
    The byte length of the buffer.
Member Gtk::EntryBuffer::get_length () const
  Returns
    The number of characters in the buffer.
Member Gtk::EntryBuffer::get_max_length () const
  Returns
    The maximum allowed number of characters in Gtk::EntryBuffer, or 0 if there is no maximum.
Member Gtk::EntryBuffer::get_text () const
  Returns
    A pointer to the contents of the widget as a string. This string points to internally allocated storage in the buffer and must not be freed, modified or stored.
Member Gtk::EntryBuffer::set_max_length (int max_length)
  Parameters

    max_length | The maximum length of the entry buffer, or 0 for no maximum. (other than the maximum length of entries.) The value passed in will be clamped to the range 0-65536.

Member Gtk::EntryBuffer::signal_deleted_text ()
  Parameters

    position | The position the text was deleted at.
    n_chars | The number of characters that were deleted.

Member Gtk::EntryBuffer::signal_inserted_text ()
  Parameters

    position | The position the text was inserted at.
    chars | The text that was inserted.
    n_chars | The number of characters that were inserted.

Member Gtk::FileChooser::get_create_folders () const
  Returns
    `true` if the New Folder button should be displayed.
Member Gtk::FileChooser::set_create_folders (bool create_folders=true)
  Parameters

    create_folders | `true` if the New Folder button should be displayed.

Member Gtk::IconView::get_item_padding () const
  Returns
    The padding around items.
Member Gtk::IconView::set_item_padding (int item_padding)
  Parameters

    item_padding | The item padding.

Class Gtk::InfoBar
Member Gtk::InfoBar::add_action_widget (Widget& child, int response_id)
  Parameters

    child | An activatable widget.
    response_id | Response ID for child.

Member Gtk::InfoBar::add_button (const Glib::ustring& button_text, int response_id)
  Parameters

    button_text | Text of button.
    response_id | Response ID for the button.

  Returns
    The Gtk::Button widget that was added.
Member Gtk::InfoBar::add_button (const Gtk::StockID& stock_id, int response_id)
Member Gtk::InfoBar::get_action_area ()
  Returns
    The action area.
Member Gtk::InfoBar::get_action_area () const
  Returns
    The action area.
Member Gtk::InfoBar::get_content_area ()
  Returns
    The content area.
Member Gtk::InfoBar::get_content_area () const
  Returns
    The content area.
Member Gtk::InfoBar::get_message_type () const
  Returns
    The message type of the message area.
Member Gtk::InfoBar::response (int response_id)
  Parameters

    response_id | A response ID.

Member Gtk::InfoBar::set_default_response (int response_id)
  Parameters

    response_id | A response ID.

Member Gtk::InfoBar::set_message_type (MessageType message_type)
  Parameters

    message_type | A Gtk::MessageType.

Member Gtk::InfoBar::set_response_sensitive (int response_id, bool setting=true)
  Parameters

    response_id | A response ID.
    setting | `true` for sensitive.

Member Gtk::InfoBar::signal_response ()
  Parameters

    response_id | The response ID.

Member Gtk::Label::get_current_uri () const
  Returns
    The currently active URI. The string is owned by GTK+ and must not be freed or modified.
Member Gtk::Label::get_track_visited_links () const
  Returns
    `true` if clicked links are remembered.
Member Gtk::Label::set_track_visited_links (bool track_links=true)
  Parameters

    track_links | `true` to track visited links.

Member Gtk::Label::signal_activate_link ()
  Parameters

    uri | The URI that is activated.

  Returns
    `true` if the link has been activated.
Member Gtk::Menu::get_reserve_toggle_size () const
  Returns
    Whether the menu reserves toggle space.
Member Gtk::Menu::set_reserve_toggle_size (bool reserve_toggle_size=true)
  Parameters

    reserve_toggle_size | Whether to reserve size for toggles.

Member Gtk::PrintOperation::get_embed_page_setup () const
  Returns
    Whether page setup selection combos are embedded.
Member Gtk::PrintOperation::get_has_selection () const
  Returns
    Whether there is a selection.
Member Gtk::PrintOperation::get_n_pages_to_print () const
  Returns
    The number of pages that will be printed.
Member Gtk::PrintOperation::get_support_selection () const
  Returns
    Whether the application supports print of selection.
Member Gtk::PrintOperation::set_embed_page_setup (bool embed=true)
  Parameters

    embed | `true` to embed page setup selection in the Gtk::PrintUnixDialog.

Member Gtk::PrintOperation::set_has_selection (bool has_selection=true)
  Parameters

    has_selection | `true` indicates that a selection exists.

Member Gtk::PrintOperation::set_support_selection (bool support_selection=true)
  Parameters

    support_selection | `true` to support selection.

Member Gtk::PrintOperation::signal_update_custom_widget ()
  Parameters

    widget | The custom widget added in create-custom-widget.
    setup | Actual page setup.
    settings | Actual print settings.

Member Gtk::PrintUnixDialog::get_embed_page_setup () const
  Returns
    Whether there is a selection.
Member Gtk::PrintUnixDialog::get_has_selection () const
  Returns
    Whether there is a selection.
Member Gtk::PrintUnixDialog::get_manual_capabilities () const
  Returns
    The printing capabilities.
Member Gtk::PrintUnixDialog::get_page_setup_set () const
  Returns
    Whether a page setup was set by user.
Member Gtk::PrintUnixDialog::get_support_selection () const
  Returns
    Whether the application supports print of selection.
Member Gtk::PrintUnixDialog::get_support_selection (bool support_selection=true)
  Parameters

    support_selection | `true` to allow print selection.

Member Gtk::PrintUnixDialog::set_embed_page_setup (bool embed=true)
  Parameters

    embed | Embed page setup selection.

Member Gtk::PrintUnixDialog::set_has_selection (bool has_selection=true)
  Parameters

    has_selection | `true` indicates that a selection exists.

Member Gtk::Range::get_flippable () const
  Returns
    `true` if the range is flippable.
Member Gtk::Range::set_flippable (bool flippable=true)
  Parameters

    flippable | `true` to make the range flippable.

Member Gtk::StatusIcon::get_title () const
  Returns
    The title of the status icon.
Member Gtk::StatusIcon::set_title (const Glib::ustring& title)
  Parameters

    title | The title.

Member Gtk::Widget::get_app_paintable () const
  Returns
    `true` if the widget is app paintable.
Member Gtk::Widget::get_can_default () const
  Returns
    `true` if widget can be a default widget, `false` otherwise.
Member Gtk::Widget::get_can_focus () const
  Returns
    `true` if widget can own the input focus, `false` otherwise.
Member Gtk::Widget::get_double_buffered () const
  Returns
    `true` if the widget is double buffered.
Member Gtk::Widget::get_has_window () const
  Returns
    `true` if widget has a window, `false` otherwise.
Member Gtk::Widget::get_is_drawable () const
  Returns
    `true` if widget is drawable, `false` otherwise.
Member Gtk::Widget::get_is_toplevel () const
  Returns
    `true` if widget is a toplevel, `false` otherwise.
Member Gtk::Widget::get_receives_default () const
  Returns
    `true` if widget acts as the default widget when focussed, `false` otherwise.
Member Gtk::Widget::get_sensitive () const
  Returns
    `true` if the widget is sensitive.
Member Gtk::Widget::get_state () const
Member Gtk::Widget::get_visible () const
  Returns
    `true` if the widget is visible.
Member Gtk::Widget::has_default () const
  Returns
    `true` if widget is the current default widget within its toplevel, `false` otherwise.
Member Gtk::Widget::has_focus () const
  Returns
    `true` if the widget has the global input focus.
Member Gtk::Widget::has_grab () const
  Returns
    `true` if the widget is in the grab_widgets stack.
Member Gtk::Widget::is_sensitive () const
  Returns
    `true` if the widget is effectively sensitive.
Member Gtk::Widget::set_allocation (const Allocation& allocation)
  Parameters

    allocation | A pointer to a Gtk::Allocation to copy from.

Member Gtk::Widget::set_can_default (bool can_default=true)
  Parameters

    can_default | Whether or not widget can be a default widget.

Member Gtk::Widget::set_can_focus (bool can_focus=true)
  Parameters

    can_focus | Whether or not widget can own the input focus.

Member Gtk::Widget::set_has_window (bool has_window=true)
  Parameters

    has_window | Whether or not widget has a window.

Member Gtk::Widget::set_receives_default (bool receives_default=true)
  Parameters

    receives_default | Whether or not widget can be a default widget.

Member Gtk::Widget::set_visible (bool visible=true)
  Parameters

    visible | Whether the widget should be shown or not.

Member Gtk::Widget::set_window (const Glib::RefPtr< Gdk::Window >& window)
  Parameters

    window | A Gdk::Window.