XMTEXTINSERT(3)
π NAME π
XmTextInsert β a Text function that inserts a character string into a text string, and honestly? she eats every single time π«Ά
β¨ SYNOPSIS β¨
#include <Xm/Text.h>
void XmTextInsert(
Widget widget,
XmTextPosition position,
char * value);
π DESCRIPTION π
okay bestie so XmTextInsert literally just drops a character string into the text string that's chillin' inside your Text widget. that's it. that's the whole job. and she does it flawlessly π
the character positions begin at 0 (zero) and get numbered sequentially from the very beginning of the text β so like, zero-indexed, the way it should be. for example: to insert a string after the fourth character, the parameter position must be 4. yes queen, count from zero, that's the vibe π
now here's the tea on callbacks β β this routine calls the widget's XmNvalueChangedCallback and verification callbacks, which is either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. and if both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed first and the resulting data gets passed to the XmNmodifyVerifyCallbackWcs callbacks. order matters, iykyk π
and if the XmNcursorPosition resource is greater than or is the same value as position, then XmNmotionVerifyCallback gets called. she's moving, she's shaking, she's calling her friends πβ¨
π NOTE: if value is a null string, no callbacks will be generated, since no modifications will have been made. nothing happened, so nothing gets announced. the silence is deafening fr fr π
here's who's who in the argument lineup π
widgetβ specifies the Text widget ID. that's your girl's ID, show it some respect π«Άpositionβ specifies the position in the text string where the character string is to be inserted. the exact spot. the coordinates. the moment πvalueβ specifies the character string value to be added to the text widget. this is the actual content, the main character of the operation π
and for a complete definition of Text and its associated resources, go read XmText(3) β she has all the lore πΈ
π¦ RELATED π¦
both iconic, both worth your time, go give them a read bestie π
and that's the whole page!! this was XmTextInsert from the library call manual β mwah, sending you all the insert-y vibes, periodt πβ¨π
π¦ 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