Package: gtk
Class gtk-menu-button
Superclassesgtk-toggle-button, gtk-button, gtk-bin, gtk-container, gtk-widget, gtk-buildable, gtk-actionable, gtk-activatable, g-object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails The gtk-menu-button widget is used to display a popup when clicked on. This popup can be provided either as a gtk-menu widget, a gtk-popover widget or an abstract g-menu-model object. The gtk-menu-button widget can hold any valid child widget. That is, it can hold almost any other standard gtk-widget object. The most commonly used child is the gtk-image widget. If no widget is explicitely added to the gtk-menu-button widget, a gtk-image widget is automatically created, using an arrow image oriented according to "direction" or the generic "open-menu-symbolic" icon if the direction is not set. The positioning of the popup is determined by the direction property of the menu button. For menus, the halign and valign properties of the menu are also taken into account. For example, when the direction is :down and the horizontal alignment is :start, the menu will be positioned below the button, with the starting edge, depending on the text direction, of the menu aligned with the starting edge of the button. If there is not enough space below the button, the menu is popped up above the button instead. If the alignment would move part of the menu offscreen, it is "pushed in". CSS nodes | Slot Access Functions
Inherited Slot Access FunctionsSee also |
2021-12-23