XMTEXTFIELDGETSELECTIONWCS(3)
β¨ XmTextFieldGetSelectionWcs β¨
okay so bestie, this one is a library call straight out of the Motif-verse, and it's giving "grab the highlighted text, but make it wide" π
it's a TextField function that retrieves the value of a wide character encoded primary selection. no cap.
πΈ SYNOPSIS πΈ
#include <Xm/TextF.h>
wchar_t * XmTextFieldGetSelectionWcs(
Widget widget);
π¦ DESCRIPTION π¦
XmTextFieldGetSelectionWcs retrieves the value of the primary selection, encoded in a wide character format. that's the whole vibe.
it returns a NULL pointer if no text is selected in the widget β so like, if nothing's highlighted, you get nothing back. π
β οΈ the part where you have to do your own chores: the application is responsible for freeing the storage associated with the wide character buffer by calling XtFree. yes, you, bestie. it's your mess now. don't leak it. π«Ά
widgetβ Specifies the TextField widget ID β¨
for a complete definition of TextField and its associated resources, see XmTextField(3). iykyk π
π RETURN π
Returns the wide character string that is associated with the primary selection in the TextField widget. literally just hands you the goods. π
π RELATED π
and that's the whole page, periodt π this was XmTextField...electionWcs(library call) β that's your source/version tag and your date stamp rolled into one, so if you see that footer floating around you know exactly where you are. go free that buffer, queen πβ¨
π¦ 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