XMTEXTFIELDGETSELECTION(3)
β¨ NAME β¨
XmTextFieldGetSelection β bestie, it's a TextField function that grabs the value of the primary selection for you π
π SYNOPSIS π
#include <Xm/TextF.h>
char * XmTextFieldGetSelection(
Widget widget);
π¦ DESCRIPTION π¦
okay so. XmTextFieldGetSelection goes and retrieves the value of the primary selection. that's the whole job. it's giving "hand me what's selected" energy π
if nothing is selected in the widget? it returns a NULL pointer. no text, no string, no drama. periodt.
β οΈ and listen β you are the one responsible for freeing the storage associated with that string. like, the application has to call XtFree on it. not me, not the widget, not the universe. you. don't forget or that's a memory leak and we don't do those π
widgetβ specifies the TextField widget ID π«Ά
and for a complete definition of TextField and all its associated resources, go peek at XmTextField(3). iykyk β¨
πΈ RETURN πΈ
returns a character pointer to the string that's associated with the primary selection π
π RELATED π
and that's the whole page, bestie π this one's XmTextFieldGetSelection from the library call section of the manual β mwah, go slay your selections ππ¦β¨
π¦ 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