Class: Gtk::ApplicationWindow
- Inherits:
-
Object
- Object
- Gtk::ApplicationWindow
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#help_overlay ⇒ Gtk::ShortcutsWindow
Gets the Gtk::ShortcutsWindow that has been set up with a prior call to gtk_application_window_set_help_overlay().
-
#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.
-
#id ⇒ Integer
Returns the unique ID of the window.
-
#new(application) ⇒ Gtk::Widget
Creates a new Gtk::ApplicationWindow.
-
#show_menubar ⇒ TrueClass
Returns whether the window will display a menubar for the app menu and menubar as 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.
-
#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.
Instance Method Details
#help_overlay ⇒ Gtk::ShortcutsWindow
Gets the Gtk::ShortcutsWindow that has been set up with a prior call to gtk_application_window_set_help_overlay().
#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.
#id ⇒ Integer
Returns the unique ID of the window. If the window has not yet been added to a Gtk::Application, returns ‘0`.
#new(application) ⇒ Gtk::Widget
Creates a new Gtk::ApplicationWindow.
#show_menubar ⇒ TrueClass
Returns whether the window will display a menubar for the app menu and menubar as 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.
#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.