minput_get_title_icon(3m17n)
π minput_get_title_icon β the m17n manual, section 3, bestie π
okay so welcome to the minput_get_title_icon(3m17n) page, aka the little corner of the m17n Library where your input method gets to show off its name tag and its profile pic. this is the 3m17n section, so it's a C library function, not a command you type in a shell. buckle up π
β¨ NAME β¨
minput_get_title_icon β get the title and the icon filename of an input method. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
MPlist* minput_get_title_icon (MSymbol language, MSymbol name)
β¨ DESCRIPTION β¨
okay so, bestie, this function goes and finds the title and the icon filename of an input method. the minput_get_title_icon() function returns a plist containing a title and icon filename (if any) of an input method specified by language and name. like, you hand it the two symbols and it comes back with the receipts. π
now the plist itself? it's giving very structured:
- the first element of the plist has key
Mtext, and the value is an M-text of the title β that's the thing that identifies the input method. β¨ - the second element (if any) has key
Mtext, and the value is an M-text of the icon image (absolute) filename, for the same purpose β identifying it, but with a picture this time. π
so yeah, same key twice, different jobs. it's giving "we're both Mtext, we're both iconic, mind your business." π
β¨ RETURN VALUE β¨
so here's the tea:
- if there exists a specified input method and it defines a title, a plist is returned. slay. π
- otherwise,
NULLis returned. π
β οΈ bestie, listen β the caller must free the plist by m17n_object_unref(). that's not optional, that's the rules. no memory leaks in this house, periodt. π«Ά
β¨ 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, my love π β Version 1.8.4, dated Mon Sep 25 2023, straight from the minput_get_title_icon(3m17n) era. go forth and title-and-icon responsibly, iykyk πΈβ¨
π¦ 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