mdraw_image_text(3m17n)
β¨ 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()returns0. π«Ά - If an error is detected β it returns
-1and assigns an error code to the external variablemerror_code. π
π ERRORS π
MERROR_RANGEβ yeah, that range was not it.
πΈ SEE ALSO πΈ
mdraw_text()
π COPYRIGHT π
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
- debian trixie: m17n-docs 1.8.4-1
- ubuntu noble: m17n-docs 1.8.4-1
- ubuntu questing: m17n-docs 1.8.4-1
- ubuntu resolute: m17n-docs 1.8.4-1build1
- ubuntu stonking: m17n-docs 1.8.4-1build1
- Copyright (C) 2001 Information-technology Promotion Agency (IPA)
- Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms