Class: Gtk::MenuButton

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

Instance Method Summary collapse

Instance Method Details

#align_widgetGtk::Container

The Gtk::Widget to use to align the menu with.

Returns:

#align_widget=(align_widget) ⇒ Gtk::Container

The Gtk::Widget to use to align the menu with.

Parameters:

Returns:

#directionGtk::ArrowType

The Gtk::ArrowType representing the direction in which the menu or popover will be popped out.

Returns:

#direction=(direction) ⇒ Gtk::ArrowType

The Gtk::ArrowType representing the direction in which the menu or popover will be popped out.

Parameters:

Returns:

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.

Returns:

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.

Parameters:

Returns:

#newGtk::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.

Returns:

  • (Gtk::Widget)

    The newly created Gtk::MenuButton widget

#popoverGtk::Popover

The Gtk::Popover that will be popped up when the button is clicked.

Returns:

#popover=(popover) ⇒ Gtk::Popover

The Gtk::Popover that will be popped up when the button is clicked.

Parameters:

Returns:

The Gtk::Menu that will be popped up when the button is clicked.

Returns:

#popup=(popup) ⇒ Gtk::Menu

The Gtk::Menu that will be popped up when the button is clicked.

Parameters:

Returns:

#use_popoverTrueClass

Returns whether a Gtk::Popover or a #GtkMenu will be constructed from the menu model.

Returns:

  • (TrueClass)

    true if using a Gtk::Popover

#use_popover=(use_popover) ⇒ TrueClass

Whether to construct a Gtk::Popover from the menu model, or a Gtk::Menu.

Parameters:

  • use_popover (TrueClass)

Returns:

  • (TrueClass)

    use-popover

  • (TrueClass)

    use-popover

#use_popover?TrueClass

Whether to construct a Gtk::Popover from the menu model, or a Gtk::Menu.

Returns:

  • (TrueClass)

    use-popover