Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

XmMenuPosition — A RowColumn function that positions a Popup menu pane "XmMenuPosition" "RowColumn

Description

XmMenuPosition positions a Popup menu pane using the  information  in  the  specified  event.  Unless  an
       application  is  positioning the menu pane itself, it must first invoke this function before managing the
       PopupMenu.  The x_root and y_root fields in the  specified  X  event  are  used  to  determine  the  menu
       position.

       menu      Specifies the PopupMenu to be positioned

       event     Specifies the event passed to the action procedure which manages the PopupMenu

       Which  corner  of  the PopupMenu is positioned at the x_root and y_root depends on the XmNlayoutDirection
       resource of the widget from which popup occurs.

       For a complete definition of RowColumn and its associated resources, see XmRowColumn(3).

Name

XmMenuPosition  —  A  RowColumn  function  that  positions  a Popup menu pane "XmMenuPosition" "RowColumn
       functions" "XmMenuPosition"

Synopsis

       #include <Xm/RowColumn.h>
       voidXmMenuPosition(
       Widgetmenu,
       XButtonPressedEvent*event);

See Also