mtext_attach_property(3m17n)

πŸ“¦
version 1.8.4 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

mtext_attach_property β€” the one where you stick a text property onto an M-text πŸ’… (yes bestie, that's literally the whole name, the manpage left the description blank and we are respecting that)


πŸŽ€ SYNOPSIS πŸŽ€

int mtext_attach_property (MText * mt, int from, int to, MTextProperty *
prop)

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: you've got an M-text, you've got a text property, and you want them together. That's the whole job of mtext_attach_property(). 🌸

It attaches the text property prop to the range between from and to in the M-text mt.

And here's the lil plot twist πŸ‘€ β€” if prop is already attached to an M-text, it gets detached first, and only then does it get attached to mt. So it's not a situationship, it's exclusive. No property is out here two-timing multiple M-texts. Periodt. πŸ’–


⭐ RETURN VALUE ⭐

  • If everything went great and the operation was successful, mtext_attach_property() returns 0. slay, we love a zero ✨
  • Otherwise it returns -1, and it assigns an error code to the external variable merror_code. so if you see that -1, go check merror_code, bestie, it's trying to tell you something 😭

Copyright (C) 2001 Information-technology Promotion Agency (IPA)

Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.


and that's the whole page, babe 🫢 go attach some properties responsibly πŸ’œ

Version 1.8.4 β€” Mon Sep 25 2023 β€” mtext_attach_property(3m17n) πŸŒˆπŸŽ€πŸ’–

πŸ“¦ where this page comes from