mface_get_prop(3m17n)
β¨ mface_get_prop β¨
okay bestie, so you know the m17n Library? yeah, that one. this is the tea on mface_get_prop(3m17n), and it's genuinely such a useful little function, i'm obsessed π
π NAME π
mface_get_prop β no cap, that's the whole name, it does exactly what it says on the tin
πΈ SYNOPSIS πΈ
void* mface_get_prop (MFace * face, MSymbol key)
π DESCRIPTION π
okay so here's the vibe: mface_get_prop() grabs the value of a face property. you hand it a face, you hand it a key, and it hands you back the value of the face property with that key in that face. simple. iconic. main character behavior fr fr π¦
but listen, the key has to be one of these, periodt:
#Mforeground#Mbackground#Mvideomode#Mhline#Mbox#Mfoundry#Mfamily#Mweight#Mstyle#Mstretch#Madstyle#Msize#Mfontset#Mratio#Mhook_func#Mhook_arg
those are the keys, that's the list, don't try to be cute with something else π
β RETURN VALUE β
so what even comes back? the actual type of the returned value depends on key, lowkey. like, it changes based on which key you passed. check the documentation for the above keys to know what you're getting, iykyk π
and if something goes wrong β error detected, bestie β it returns NULL and assigns an error code to the external variable merror_code. so yeah, always check your returns, that's the vibe check π
π SEE ALSO π
mface_put_prop()mface_put_hook()
go read those too, they're the besties of this function, they come as a set π«Ά
π ERRORS π
MERROR_FACE
π§ 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!! thanks for reading all the way to the bottom, you're literally a scholar π this was Version 1.8.4, dated Mon Sep 25 2023, and it ate, no crumbs. byeee β¨π
π¦ 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