XMTEXTREPLACEWCS(3)
β¨ XmTextReplaceWcs β¨
okay bestie, gather round, because this one is a Text widget function and it's literally about replacing part of a wide character string π
she lives in the library call manual, and she's here to swap out a chunk of your text like it's a glow-up. no cap.
πΈ SYNOPSIS πΈ
#include <Xm/Text.h>
void XmTextReplaceWcs(
Widget widget,
XmTextPosition from_pos,
XmTextPosition to_pos,
wchar_t *wcstring);
π DESCRIPTION π
XmTextReplaceWcs replaces part of the wide character string inside the Text widget. periodt. π
and listen, the character positions begin at zero and are numbered sequentially from the very beginning of the text. zero-indexed girlies, you know the drill β¨
here's a lil example so it clicks: say you wanna replace the second and third characters in the text string. to do that, from_pos has to be 1 and to_pos has to be 3. mathing π
and if you just wanna insert a string after the fourth character? then both from_pos and to_pos must be 4. same number, no deletion, just vibes being inserted π¦
now, the callback tea β because this routine is social:
- it calls the widget's
XmNvalueChangedCallbackand verification callbacks β eitherXmNmodifyVerifyCallbackorXmNmodifyVerifyCallbackWcs, or both π - if both verification callback lists are registered, the procedures of the
XmNmodifyVerifyCallbacklist are executed first, and the resulting data is passed to theXmNmodifyVerifyCallbackWcscallbacks. order matters, bestie, don't fight it π - it also calls the widget's
XmNmotionVerifyCallbackcallback whenfrom_posis less than or equal to the cursor position π
π«Ά the parameters (aka the main characters) π«Ά
widgetβ specifies the Text widget IDfrom_posβ specifies the start position of the text to be replacedto_posβ specifies the end position of the text to be replacedwcstringβ specifies the wide character string value to be added to the Text widget
for a complete definition of Text and its associated resources, see XmText(3). iykyk π
π RELATED π
and that's the whole page, bestie!! π this icon came straight outta the XmTextReplaceWcs(library call) manual, so if you cite her, cite her right π mwah, slay, go replace some wide characters π¦β¨
π¦ 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