mdraw_text_items(3m17n)
β¨ mdraw_text_items β¨
okay so bestie, welcome to the 3m17n manual β yes that's the manual name, it's giving "the m17n Library" and we're obsessed π
this is the page for mdraw_text_items, and it's short, sweet, and does exactly one job. let's get into it π«Ά
πΈ NAME πΈ
mdraw_text_items β the little function that draws one or more textitems. that's it. that's the whole vibe. no cap. π
π SYNOPSIS π
void mdraw_text_items (MFrame * frame, MDrawWindow win, int x, int y,
MDrawTextItem * items, int nitems)
like... look at her. six args, returns void, zero drama. β¨
π¦ DESCRIPTION π¦
so here's the tea β β mdraw_text_items() draws one or more M-texts on window win of frame frame, at coordinate (x, y). periodt.
and the receipts:
frameβ theMFrame *you're drawing inside. it's the whole stage, she's the main character πwinβ theMDrawWindowyou're actually painting on. the canvas, the moment, the spotlight πx,yβ the coordinate where the drawing happens. literally just two ints. iconic.itemsβ an array of the textitems you want drawn. not one textitem, bestie β an array ofMDrawTextItem *. so you can flex with a whole lineup πnitemsβ the number of textitems in that array. yes queen, you have to tell her how many. she's not psychic π
so like, short version: she draws one or more M-texts, on that window, in that frame, at that coordinate, using that array, for that many items. slay. π
π SEE ALSO π
MTextItemmdraw_text()
go read those too, iykyk π§
β 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>.
and that's the whole page, bestie!! π Version 1.8.4, dated Mon Sep 25 2023 β so if you ever forget when this dropped, now you know. stay iconic, go draw your M-texts, mwah ππβ¨
π¦ 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