XMIMMBRESETIC(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

πŸ’– XmImMbResetIC πŸ’–

okay so bestie, welcome to the XmImMbResetIC page from the library call manual β€” yes it's a library call, and yes it's about to be your new fave little input-manager function 🫢


✨ NAME ✨

XmImMbResetIC β€” an input manager function that resets the input context for a widget. that's it, that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

#include <Xm/XmIm.h>
void XmImMbResetIC(
Widget widget,
char **mb);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• XmImMbResetIC goes and grabs the XIC of the widget and resets it. literally just that. reset era πŸ’…βœ¨

then it puts a pointer to a string containing the current preedit string into mb. and listen β€” the caller should free the returned string after use by calling Xfree. like, that's not optional bestie, that string is yours now, you have to take care of it 😭 don't just leave it there, that's giving memory leak energy and we do not stan πŸ™ˆ

  • widget β€” specifies the ID of the widget. this is the main character, the one getting its XIC reset πŸ‘‘
  • mb β€” contains a pointer to the preedit string upon return. so like, after the call, it's holding the goods ✨

πŸŽ€ RETURN VALUE πŸŽ€

None. nothing. zero. empty. she gives you nothing back and honestly? iconic πŸ’€ but the preedit string lands in mb, so check there, not the return value, iykyk.


🌈 SEE ALSO 🌈

bestie... it's empty. like, genuinely nothing listed here. the section is here, the vibes are here, the entries are not πŸ•³οΈπŸ’€ so if you were hoping for cross-references, not me finding them, because they do not exist πŸ™ˆ


lowkey important reminder: free that string with Xfree after you're done. no cap. it's the whole personality of this function's documentation. 🫢

and that's the page, bestie!! πŸ’– this was XmImMbResetIC(library call) β€” that's the manual name and the footer both, so consider it lovingly shouted out at the very end, exactly where it belongs βœ¨πŸŽ€ go reset some input contexts, slay, periodt. πŸ¦‹πŸ’