XMGETTEAROFFCONTROL(3)
β¨ XmGetTearOffControl β NAME energy β¨
okay so bestie, this is XmGetTearOffControl from the library call manual (yes that's the whole header, we're keeping it cute and brief) π
XmGetTearOffControl β a RowColumn function that obtains the widget ID for the tear-off control in a menu. that's the whole job. she does one thing and she does it flawlessly π
πΈ SYNOPSIS πΈ
#include <Xm/RowColumn.h>
Widget XmGetTearOffControl(
Widget menu);
no cap, that's it. two lines and a dream π«Ά
π¦ DESCRIPTION π¦
XmGetTearOffControl is literally the plug π β she gives your application the means for obtaining the widget ID of the internally created tear-off control in a tear-off menu.
so here's the lore: RowColumn creates a tear-off control for a PulldownMenu or PopupMenu when the XmNtearOffModel resource is initialized or set to XmTEAR_OFF_ENABLED. periodt. the tear-off control is a widget that appears as the first element in the menu π β she's the main character, front of the line, always. the user tears off the menu by means of mouse or keyboard events in the tear-off control. iconic behavior, truly.
the tear-off control has Separator-like behavior. and once your application has obtained the widget ID of the tear-off control, it can set resources to specify the appearance of the control β¨. the application or the user can also set these resources in a resource file by using the name of the control, which is TearOffControl. and for a list of the resources the application or user can set, go see XmRowColumn(3) β she's got the receipts π
- menu β Specifies the widget ID of the RowColumn
PulldownMenuorPopupMenu
for more info on tear-off menus and a complete definition of RowColumn and its associated resources, see XmRowColumn(3). iykyk π
π RETURN π
returns the widget ID for the tear-off control, or NULL if no tear-off control exists.
π¨ real talk, no cap: an application should not assume that the returned widget will be of any particular class. do not do it. i'm serious. don't be that girl π
π RELATED π
okay that's the whole page, you ate that bestie π go get that widget ID, and remember: this was the XmGetTearOffControl(library call) manual β that's the footer, that's the whole vibe, mwah πβ¨π¦
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms