mdraw_clear_cache(3m17n)

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

πŸ’– mdraw_clear_cache β€” from the m17n Library (section 3m17n) πŸ’–

okay bestie, gather round, because this one is SHORT but it is important and I need you to actually read it, not just scroll πŸ’…


✨ NAME ✨

mdraw_clear_cache β€” literally just: clear the cached info. that's it. that's the whole name. no notes πŸŽ€


🌸 SYNOPSIS 🌸

void mdraw_clear_cache (MText * mt)

she takes one argument, she returns nothing, she simply clears. iconic behaviour honestly πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

okay so. the mdraw_clear_cache() function clears cached information on the M-text mt β€” and by "cached information" we mean the stuff that got attached by any of the drawing functions. all of them. every single one. no cap πŸ”₯

here's the tea though, and this is the part you cannot skip:

when the behavior of the format or line_break member functions of MDrawControl changes, the cache must be cleared. like, must must. not "should", not "maybe later". MUST. the cache is stale, girl, and stale cache is giving chaos 😭

so if you've been out here messing with those member functions and everything looks weird β€” yeah. that's why. clear the cache. periodt πŸ’…βœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

  • MDrawControl

go read that one too, i'm not playing with you 🫢


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 πŸ“ this was Version 1.8.4, dated Mon Sep 25 2023, and it's the mdraw_clear_cache(3m17n) manpage from the m17n Library β€” mwah, go clear that cache πŸ’–πŸŒˆβ­πŸ§š

πŸ“¦ where this page comes from