mdraw_text_items(3m17n)

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

✨ 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 β€” the MFrame * you're drawing inside. it's the whole stage, she's the main character πŸ‘‘
  • win β€” the MDrawWindow you'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 of MDrawTextItem *. 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 πŸ’œ

  • MTextItem
  • mdraw_text()

go read those too, iykyk 🧚


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