mdraw_text_with_control(3m17n)
β¨ mdraw_text_with_control β¨
okay bestie, so like... you know how mdraw_text() draws text and it's fine and all? well this is that but with β¨opinionsβ¨. it's from the m17n library (the multilingual text thing, iykyk) and it lets you draw an M-text onto a window while following a whole drawing-control object. it's giving very much "I want it MY way" energy and honestly? valid. π
π¦ SYNOPSIS π¦
int mdraw_text_with_control (MFrame * frame, MDrawWindow win, int x, int y,
MText * mt, int from, int to, MDrawControl * control)
πΈ DESCRIPTION πΈ
so basically, mdraw_text_with_control() draws the text that lives between from and to in the M-text mt, and it draws it on window win belonging to frame frame, at the coordinate (x, y). that's the whole vibe. π«Ά
the way it draws text is exactly the same as in mdraw_text() β no cap β the one and only difference is that this function also follows whatever you told it in the drawing control object control. like, it actually listens. unlike some people. π
for example, if <two_dimensional> in control is nonzero, this function draws the M-text in 2 dimensions β meaning newlines in the M-text actually break lines, and the characters that follow get drawn on the next line down. iconic behavior fr fr. if you want the full lore, go read the documentation of the structure @ MDrawControl β that's where all the detail lives. π
π COPYRIGHT π
this part is important so we're gonna say it with our whole chest:
- 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>. slay. β¨
bestie reminder: this is Version 1.8.4 and it's dated Mon Sep 25 2023 β so that's the mdraw_text_with_control tea, mwah, ily, go draw some multidimensional text πππ
π¦ 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