Class: Gtk::ApplicationWindow

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#help_overlayGtk::ShortcutsWindow

Gets the Gtk::ShortcutsWindow that has been set up with a prior call to gtk_application_window_set_help_overlay().

Returns:

#help_overlay=(help_overlay) ⇒ nil

Associates a shortcuts window with the application window, and sets up an action with the name win.show-help-overlay to present it.

window takes resposibility for destroying help_overlay.

Parameters:

Returns:

  • (nil)

#idInteger

Returns the unique ID of the window. If the window has not yet been added to a Gtk::Application, returns ‘0`.

Returns:

  • (Integer)

    the unique ID for window, or ‘0` if the window has not yet been added to a Gtk::Application

#new(application) ⇒ Gtk::Widget

Creates a new Gtk::ApplicationWindow.

Parameters:

Returns:

  • (Gtk::Widget)

    a newly created Gtk::ApplicationWindow

#show_menubarTrueClass

Returns whether the window will display a menubar for the app menu and menubar as needed.

Returns:

  • (TrueClass)

    true if window will display a menubar when needed

#show_menubar=(show_menubar) ⇒ TrueClass

If this property is true, the window will display a menubar that includes the app menu and menubar, unless these are shown by the desktop shell. See gtk_application_set_app_menu() and gtk_application_set_menubar().

If false, the window will not display a menubar, regardless of whether the desktop shell is showing the menus or not.

Parameters:

  • show_menubar (TrueClass)

Returns:

  • (TrueClass)

    show-menubar

  • (TrueClass)

    show-menubar

#show_menubar?TrueClass

If this property is true, the window will display a menubar that includes the app menu and menubar, unless these are shown by the desktop shell. See gtk_application_set_app_menu() and gtk_application_set_menubar().

If false, the window will not display a menubar, regardless of whether the desktop shell is showing the menus or not.

Returns:

  • (TrueClass)

    show-menubar