XMIMVASETVALUES(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

✨ XmImVaSetValues ✨

okay bestie, buckle up, because we're doing a library call today πŸ’… this one lives in section 3 of the manual, and it's giving input manager energy β€” let's get into it πŸ¦‹


🌸 NAME 🌸

XmImVaSetValues β€” an input manager function that updates attributes of an input context ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <Xm/XmIm.h>
void XmImVaSetValues(
Widget widget);

πŸ’– DESCRIPTION πŸ’–

So XmImVaSetValues updates the attributes of the input context that's associated with the widget you hand it 🫢 it does this by passing those attributes along to XICSetValues, no cap.

🌟 heads up: the first time you call this routine, you should pass in all of the input context attributes. after that? you only call XmImVaSetValues when a value has actually changed. we don't do redundant calls around here πŸ’…

and if you want the list of associated resources, go check the description in the XmImSetValues(3) man page β€” it's all there, iykyk πŸ“–

This routine uses the ANSI C variable-length argument list (aka varargs) calling convention 🌈 the variable-length argument list is made up of groups of arguments, and each group contains an attribute followed by the value of that attribute πŸŽ€

πŸ’€ IMPORTANT: the last argument in the list must be NULL. not optional. periodt. if you forget it, that's on you bestie 😭

Also lowkey the List and TextField widgets call XmImVaSetValues internally already πŸ‘‘ so if you're working with those widgets, making further calls to XmImVaSetValues is unnecessary β€” save yourself the typing, main character πŸ¦‹

widget β€” specifies the ID of the widget registered with the input manager 🎯

If you want more info on variable-length argument lists, hit up the X Toolkit Intrinsics documentation β€” it's got the lore ✨



and that's the whole vibe, bestie πŸ’– this was the XmImVaSetValues page from the library call manual, and honestly? iconic. go forth and set those values, and don't forget your NULL 🌟 mwah 🫢✨