Package: gtk

Accessor gtk-menu-button-direction

Lambda List

gtk-menu-button-direction (object)

Syntax

(gtk-menu-button-direction object) => direction
(setf (gtk-menu-button-direction object) direction)

Arguments

object -- a gtk-menu-button widget
direction -- a value of the gtk-arrow-type enumeration

Details

Accessor of the direction slot of the gtk-menu-button class.

The gtk-menu-button-align-widget slot access function returns the direction the popup will be pointing at when popped up. The (setf gtk-menu-button-align-widget) slot access function sets the direction in which the popup will be popped up, as well as changing the direction of the arrow. The child will not be changed to an arrow if it was customized.

If the popup does not fit in the available space in the given direction, GTK will its best to keep it inside the screen and fully visible.

If you pass the :none value for a direction, the popup will behave as if you passed the :down value, although you will not see any arrows.
 

See also

2021-12-23