gtkmm: New API in gtkmm 2.2

gtkmm 3.13.2

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

New API in gtkmm 2.2

Member Gdk::Cursor::create (const Glib::RefPtr< Display >& display, CursorType cursor_type)
  Parameters

    display | The Gdk::Display for which the cursor will be created.
    cursor_type | Cursor to create.

  Returns
    A new Gdk::Cursor.
Member Gdk::Cursor::get_display ()
  Returns
    The Gdk::Display associated to cursor.
Member Gdk::Cursor::get_display () const
  Returns
    The Gdk::Display associated to cursor.
Member Gdk::Display::beep ()
Member Gdk::Display::close ()
Member Gdk::Display::get_default ()
  Returns
    A Gdk::Display, or `0` if there is no default display.
Member Gdk::Display::get_default_screen ()
  Returns
    The default Gdk::Screen object for display.
Member Gdk::Display::get_default_screen () const
  Returns
    The default Gdk::Screen object for display.
Member Gdk::Display::get_event ()
  Returns
    The next Gdk::Event to be processed, or `0` if no events are pending. The returned Gdk::Event should be freed with Gdk::Event::free().
Member Gdk::Display::get_event () const
  Returns
    The next Gdk::Event to be processed, or `0` if no events are pending. The returned Gdk::Event should be freed with Gdk::Event::free().
Member Gdk::Display::get_keymap ()
  Returns
    The Gdk::Keymap attached to display.
Member Gdk::Display::get_keymap () const
  Returns
    The Gdk::Keymap attached to display.
Member Gdk::Display::get_n_screens () const
Member Gdk::Display::get_name () const
  Returns
    A string representing the display name. This string is owned by GDK and should not be modified or freed.
Member Gdk::Display::get_screen (int screen_num=0) const
  Parameters

    screen_num | The screen number.

  Returns
    The Gdk::Screen object.
Member Gdk::Display::get_screen (int screen_num=0)
  Parameters

    screen_num | The screen number.

  Returns
    The Gdk::Screen object.
Member Gdk::Display::open (const Glib::ustring& display_name)
  Parameters

    display_name | The name of the display to open.

  Returns
    A Gdk::Display, or `0` if the display could not be opened.
Member Gdk::Display::peek_event ()
  Returns
    A copy of the first Gdk::Event on the event queue, or `0` if no events are in the queue. The returned Gdk::Event should be freed with Gdk::Event::free().
Member Gdk::Display::peek_event () const
  Returns
    A copy of the first Gdk::Event on the event queue, or `0` if no events are in the queue. The returned Gdk::Event should be freed with Gdk::Event::free().
Member Gdk::Display::put_event (GdkEvent* event)
  Parameters

    event | A Gdk::Event.

Member Gdk::Display::selection_send_notify (const Glib::RefPtr< Window >& requestor, Glib::ustring& selection, Glib::ustring& target, Glib::ustring& property, guint32 time_)
  Parameters

    requestor | Window to which to deliver response.
    selection | Selection that was requested.
    target | Target that was selected.
    property | Property in which the selection owner stored the data, or "None" to indicate that the request was rejected.
    time_ | Timestamp.

Member Gdk::Display::set_double_click_time (guint msec)
Member Gdk::Display::signal_closed ()
  Parameters

    is_error | `true` if the display was closed due to an error.

Member Gdk::Display::sync ()
Member Gdk::DisplayManager::get ()
  Returns
    The global Gdk::DisplayManager singleton; gdk_parse_args(), gdk_init(), or gdk_init_check() must have been called first.
Member Gdk::DisplayManager::get_default_display ()
  Returns
    A Gdk::Display, or `0` if there is no default display.
Member Gdk::DisplayManager::get_default_display () const
  Returns
    A Gdk::Display, or `0` if there is no default display.
Member Gdk::DisplayManager::list_displays ()
  Returns
    A list of Gdk::Display objects.
Member Gdk::DisplayManager::set_default_display (const Glib::RefPtr< Display >& display)
  Parameters

    display | A Gdk::Display.

Member Gdk::DisplayManager::signal_display_opened ()
  Parameters

    display | The opened display.

Member Gdk::DragContext::find_window_for_screen (const Glib::RefPtr< Window >& drag_window, const Glib::RefPtr< Screen >& screen, int x_root, int y_root, Glib::RefPtr< Window >& dest_window, DragProtocol& protocol) const
  Parameters

    drag_window | A window which may be at the pointer position, but should be ignored, since it is put up by the drag source as an icon.
    screen | The screen where the destination window is sought.
    x_root | The x position of the pointer in root coordinates.
    y_root | The y position of the pointer in root coordinates.
    dest_window | Location to store the destination window in.
    protocol | Location to store the DND protocol in.

Member Gdk::Event::get_screen ()
  Returns
    The screen for the event.
Member Gdk::Event::get_screen () const
  Returns
    The screen for the event.
Member Gdk::PixbufFormat::get_description () const
  Returns
    A description of the format.
Member Gdk::PixbufFormat::get_extensions () const
  Returns
    A `0`-terminated array of filename extensions which must be freed with Glib::strfreev() when it is no longer needed.
Member Gdk::PixbufFormat::get_mime_types () const
  Returns
    A `0`-terminated array of mime types which must be freed with Glib::strfreev() when it is no longer needed.
Member Gdk::PixbufFormat::get_name () const
  Returns
    The name of the format.
Member Gdk::PixbufFormat::is_writable () const
  Returns
    Whether pixbufs can be saved in the given format.
Member Gdk::PixbufLoader::get_format () const
  Returns
    A Gdk::PixbufFormat or `0`. The return value is owned by GdkPixbuf and should not be freed.
Member Gdk::PixbufLoader::set_size (int width, int height)
  Parameters

    width | The desired width of the image being loaded.
    height | The desired height of the image being loaded.

Member Gdk::Screen::get_default ()
  Returns
    A Gdk::Screen, or `0` if there is no default display.
Member Gdk::Screen::get_display ()
  Returns
    The display to which screen belongs.
Member Gdk::Screen::get_display () const
  Returns
    The display to which screen belongs.
Member Gdk::Screen::get_height () const
  Returns
    The height of screen in pixels.
Member Gdk::Screen::get_height_mm () const
  Returns
    The heigth of screen in millimeters.
Member Gdk::Screen::get_monitor_at_point (int x, int y) const
  Parameters

    x | The x coordinate in the virtual screen.
    y | The y coordinate in the virtual screen.

  Returns
    The monitor number in which the point ( x, y) lies, or a monitor close to ( x, y) if the point is not in any monitor.
Member Gdk::Screen::get_monitor_at_window (const Glib::RefPtr< Window >& window) const
  Parameters

    window | A Gdk::Window.

  Returns
    The monitor number in which most of window is located, or if window does not intersect any monitors, a monitor, close to window.
Member Gdk::Screen::get_monitor_geometry (int monitor_num, Rectangle& dest) const
  Parameters

    monitor_num | The monitor number.
    dest | A Gdk::Rectangle to be filled with the monitor geometry.

Member Gdk::Screen::get_n_monitors () const
  Returns
    Number of monitors which screen consists of.
Member Gdk::Screen::get_number () const
  Returns
    The index.
Member Gdk::Screen::get_root_window ()
  Returns
    The root window.
Member Gdk::Screen::get_root_window () const
  Returns
    The root window.
Member Gdk::Screen::get_system_visual ()
  Returns
    The system visual.
Member Gdk::Screen::get_system_visual () const
  Returns
    The system visual.
Member Gdk::Screen::get_toplevel_windows ()
  Returns
    List of toplevel windows.
Member Gdk::Screen::get_width () const
  Returns
    The width of screen in pixels.
Member Gdk::Screen::get_width_mm () const
  Returns
    The width of screen in millimeters.
Member Gdk::Screen::list_visuals ()
  Returns
    A list of visuals.
Member Gdk::Screen::make_display_name ()
  Returns
    The name.
Member Gdk::Screen::signal_size_changed ()
Member Gdk::Visual::get_screen ()
  Returns
    The screen to which this visual belongs.
Member Gdk::Visual::get_screen () const
  Returns
    The screen to which this visual belongs.
Member Gdk::Window::fullscreen ()
Member Gdk::Window::set_skip_pager_hint (bool skips_pager=true)
  Parameters

    skips_pager | `true` to skip the pager.

Member Gdk::Window::set_skip_taskbar_hint (bool skips_taskbar=true)
  Parameters

    skips_taskbar | `true` to skip the taskbar.

Member Gdk::Window::unfullscreen ()
Member Gtk::Clipboard::get_display ()
  Returns
    The Gdk::Display associated with clipboard.
Member Gtk::Clipboard::get_display () const
  Returns
    The Gdk::Display associated with clipboard.
Member Gtk::Clipboard::get_for_display (const Glib::RefPtr< Gdk::Display >& display, GdkAtom selection=GDK_SELECTION_CLIPBOARD)
  Parameters

    display | The display for which the clipboard is to be retrieved or created.
    selection | A Gdk::Atom which identifies the clipboard to use.

  Returns
    The appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent and, since it is owned by GTK+, must not be freed or unrefd.
Member Gtk::Invisible::get_screen ()
  Returns
    The associated Gdk::Screen.
Member Gtk::Invisible::get_screen () const
  Returns
    The associated Gdk::Screen.
Member Gtk::Invisible::set_screen (const Glib::RefPtr< Gdk::Screen >& screen)
  Parameters

    screen | A Gdk::Screen.

Member Gtk::ListStore::iter_is_valid (const iterator& iter) const
  Parameters

    iter | A Gtk::TreeIter.

  Returns
    `true` if the iter is valid, `false` if the iter is invalid.
Member Gtk::ListStore::iter_swap (const iterator& a, const iterator& b)
  Parameters

    a | A Gtk::TreeIter.
    b | Another Gtk::TreeIter.

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

    screen | A Gdk::Screen, or `0` if the screen should be determined by the widget the menu is attached to.

Member Gtk::MenuShell::select_first (bool search_sensitive=true)
  Parameters

    search_sensitive | If `true`, search for the first selectable menu item, otherwise select nothing if the first item isn’t sensitive. This should be `false` if the menu is being popped up initially.

Member Gtk::Notebook::get_n_pages () const
  Returns
    The number of pages in the notebook.
Member Gtk::Settings::get_for_screen (const Glib::RefPtr< Gdk::Screen >& screen)
  Parameters

    screen | A Gdk::Screen.

  Returns
    A Gtk::Settings object.
Member Gtk::TreeModel::get_string (const iterator& iter) const
  Parameters

    iter | An Gtk::TreeIter.

  Returns
    The string.
Member Gtk::TreeModelSort::iter_is_valid (const iterator& iter) const
  Parameters

    iter | A Gtk::TreeIter.

  Returns
    `true` if the iter is valid, `false` if the iter is invalid.
Member Gtk::TreeSelection::count_selected_rows () const
  Returns
    The number of rows selected.
Member Gtk::TreeSelection::unselect (const TreeModel::Path& start_path, const TreeModel::Path& end_path)
  Parameters

    start_path | The initial node of the range.
    end_path | The initial node of the range.

Member Gtk::TreeStore::iter_is_valid (const iterator& iter) const
  Parameters

    iter | A Gtk::TreeIter.

  Returns
    `true` if the iter is valid, `false` if the iter is invalid.
Member Gtk::TreeStore::iter_swap (const iterator& a, const iterator& b)
  Parameters

    a | A Gtk::TreeIter.
    b | Another Gtk::TreeIter.

Member Gtk::TreeView::expand_to_path (const TreeModel::Path& path)
  Parameters

    path | Path to a row.

Member Gtk::TreeView::set_cursor (const TreeModel::Path& path, TreeViewColumn& focus_column, CellRenderer& focus_cell, bool start_editing=false)
  Parameters

    path | A Gtk::TreePath.
    focus_column | A Gtk::TreeViewColumn, or `0`.
    focus_cell | A Gtk::CellRenderer, or `0`.
    start_editing | `true` if the specified cell should start being edited.

Member Gtk::TreeViewColumn::focus_cell (CellRenderer& cell)
  Parameters

    cell | A Gtk::CellRenderer.

Member Gtk::Widget::get_clipboard (const Glib::ustring& selection)
  Parameters

    selection | A Gdk::Atom which identifies the clipboard to use. Gdk::SELECTION_CLIPBOARD gives the default clipboard. Another common value is Gdk::SELECTION_PRIMARY, which gives the primary X selection.

  Returns
    The appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent for all time.
Member Gtk::Widget::get_clipboard (const Glib::ustring& selection) const
  Parameters

    selection | A Gdk::Atom which identifies the clipboard to use. Gdk::SELECTION_CLIPBOARD gives the default clipboard. Another common value is Gdk::SELECTION_PRIMARY, which gives the primary X selection.

  Returns
    The appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent for all time.
Member Gtk::Widget::get_display () const
  Returns
    The Gdk::Display for the toplevel for this widget.
Member Gtk::Widget::get_display ()
  Returns
    The Gdk::Display for the toplevel for this widget.
Member Gtk::Widget::get_root_window () const
Member Gtk::Widget::get_root_window ()
Member Gtk::Widget::get_screen () const
  Returns
    The Gdk::Screen for the toplevel for this widget.
Member Gtk::Widget::get_screen ()
  Returns
    The Gdk::Screen for the toplevel for this widget.
Member Gtk::Widget::has_screen () const
  Returns
    `true` if there is a Gdk::Screen associcated with the widget.
Member Gtk::Window::fullscreen ()
Member Gtk::Window::get_screen () const
  Returns
    A Gdk::Screen.
Member Gtk::Window::get_screen ()
  Returns
    A Gdk::Screen.
Member Gtk::Window::get_skip_pager_hint () const
  Returns
    `true` if window shouldn’t be in pager.
Member Gtk::Window::get_skip_taskbar_hint () const
  Returns
    `true` if window shouldn’t be in taskbar.
Member Gtk::Window::set_auto_startup_notification (bool setting=true)
  Parameters

    setting | `true` to automatically do startup notification.

Member Gtk::Window::set_default_icon_from_file (const std::string& filename)
  Parameters

    filename | Location of icon file.

  Returns
    `true` if setting the icon succeeded.
Member Gtk::Window::set_screen (const Glib::RefPtr< Gdk::Screen >& screen)
  Parameters

    screen | A Gdk::Screen.

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

    setting | `true` to keep this window from appearing in the pager.

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

    setting | `true` to keep this window from appearing in the task bar.

Member Gtk::Window::unfullscreen ()