mdraw_image_text(3m17n)

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

✨ NAME ✨

mdraw_image_text β€” bestie, it's the m17n function that draws an M-text onto a window as an image πŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

int mdraw_image_text (MFrame * frame, MDrawWindow win, int x, int y,
MText * mt, int from, int to)

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: you have an M-text and you want it on a window, but as an image. That's literally what mdraw_image_text() does. It draws the text between from and to of the M-text mt as an image on the window win belonging to the frame frame, at coordinate (x, y). Slay. ✨

The way it draws the text is exactly the same as in mdraw_text() β€” same energy, same rules β€” except that this one also draws the background, using the color specified by faces. So it's mdraw_text() but with the background fully committed. πŸ’…

Think of it as the m17n counterpart of the X Window System's XDrawImageString(), XmbDrawImageString(), and XwcDrawImageString() functions. It's giving very much "same vibes, different library." πŸ‘‘

πŸ’– RETURN VALUE πŸ’–

  • If the operation was successful β†’ mdraw_image_text() returns 0. 🫢
  • If an error is detected β†’ it returns -1 and assigns an error code to the external variable merror_code. 😭

πŸ’€ ERRORS πŸ’€

  • MERROR_RANGE β€” yeah, that range was not it.

🌸 SEE ALSO 🌸

  • mdraw_text()

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>.


Version 1.8.4, dated Mon Sep 25 2023 β€” that's the tea, bestie, mdraw_image_text from the m17n Library, and we're done here. bye fr fr πŸ’œβœ¨

πŸ“¦ where this page comes from