Class: Gtk::MenuButton
- Inherits:
-
Object
- Object
- Gtk::MenuButton
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#align_widget ⇒ Gtk::Container
The Gtk::Widget to use to align the menu with.
-
#align_widget=(align_widget) ⇒ Gtk::Container
The Gtk::Widget to use to align the menu with.
-
#direction ⇒ Gtk::ArrowType
The Gtk::ArrowType representing the direction in which the menu or popover will be popped out.
-
#direction=(direction) ⇒ Gtk::ArrowType
The Gtk::ArrowType representing the direction in which the menu or popover will be popped out.
-
#menu_model ⇒ Gio::MenuModel
The GMenu::Model from which the popup will be created.
-
#menu_model=(menu_model) ⇒ Gio::MenuModel
The GMenu::Model from which the popup will be created.
-
#new ⇒ Gtk::Widget
Creates a new Gtk::MenuButton widget with downwards-pointing arrow as the only child.
-
#popover ⇒ Gtk::Popover
The Gtk::Popover that will be popped up when the button is clicked.
-
#popover=(popover) ⇒ Gtk::Popover
The Gtk::Popover that will be popped up when the button is clicked.
-
#popup ⇒ Gtk::Menu
The Gtk::Menu that will be popped up when the button is clicked.
-
#popup=(popup) ⇒ Gtk::Menu
The Gtk::Menu that will be popped up when the button is clicked.
-
#use_popover ⇒ TrueClass
Returns whether a Gtk::Popover or a #GtkMenu will be constructed from the menu model.
-
#use_popover=(use_popover) ⇒ TrueClass
Whether to construct a Gtk::Popover from the menu model, or a Gtk::Menu.
-
#use_popover? ⇒ TrueClass
Whether to construct a Gtk::Popover from the menu model, or a Gtk::Menu.
Instance Method Details
#align_widget ⇒ Gtk::Container
The Gtk::Widget to use to align the menu with.
#align_widget=(align_widget) ⇒ Gtk::Container
The Gtk::Widget to use to align the menu with.
#direction ⇒ Gtk::ArrowType
The Gtk::ArrowType representing the direction in which the menu or popover will be popped out.
#direction=(direction) ⇒ Gtk::ArrowType
The Gtk::ArrowType representing the direction in which the menu or popover will be popped out.
#menu_model ⇒ Gio::MenuModel
The GMenu::Model from which the popup will be created. Depending on the Gtk::MenuButton:use-popover property, that may be a menu or a popover.
See gtk_menu_button_set_menu_model() for the interaction with the Gtk::MenuButton:popup property.
#menu_model=(menu_model) ⇒ Gio::MenuModel
The GMenu::Model from which the popup will be created. Depending on the Gtk::MenuButton:use-popover property, that may be a menu or a popover.
See gtk_menu_button_set_menu_model() for the interaction with the Gtk::MenuButton:popup property.
#new ⇒ Gtk::Widget
Creates a new Gtk::MenuButton widget with downwards-pointing arrow as the only child. You can replace the child widget with another Gtk::Widget should you wish to.
#popover ⇒ Gtk::Popover
The Gtk::Popover that will be popped up when the button is clicked.
#popover=(popover) ⇒ Gtk::Popover
The Gtk::Popover that will be popped up when the button is clicked.
#popup ⇒ Gtk::Menu
The Gtk::Menu that will be popped up when the button is clicked.
#popup=(popup) ⇒ Gtk::Menu
The Gtk::Menu that will be popped up when the button is clicked.
#use_popover ⇒ TrueClass
Returns whether a Gtk::Popover or a #GtkMenu will be constructed from the menu model.
#use_popover=(use_popover) ⇒ TrueClass
Whether to construct a Gtk::Popover from the menu model, or a Gtk::Menu.
#use_popover? ⇒ TrueClass
Whether to construct a Gtk::Popover from the menu model, or a Gtk::Menu.