minput_set_spot(3m17n)
π
minput_set_spot β from the m17n library, section 3m17n
okay bestie, gather round, because this one is short but it's important π«Ά
β¨ NAME β¨
minput_set_spot -
(yeah, the dash is just... sitting there. no lil blurb. the manpage said what it said and left the rest to the DESCRIPTION. we respect that π)
π SYNOPSIS π
void minput_set_spot (MInputContext * ic, int x, int y, int ascent, int
descent, int fontsize, MText * mt, int pos)
look at her. eight parameters. main character energy fr fr π
πΈ DESCRIPTION πΈ
so basically this function sets the spot of the input context. that's the whole vibe. β¨
minput_set_spot() sets the spot of input context ic to the coordinate (x, y) with the height specified by ascent and descent.
now here's the tea β β the semantics of these values depends on the input method driver. like, it's not one-size-fits-all, bestie. each driver gets to decide what these numbers mean. iykyk.
for instance:
- a driver designed to work in a CUI environment may use
xandyas the column- and row numbers, and may ignoreascentanddescent. literally just... ignoring them. iconic behaviour honestly π - a driver designed to work in a window system may interpret
xandyas the pixel offsets relative to the origin of the client window, and may interpretascentanddescentas the ascent- and descent pixels of the line at(x, y).
fontsize specifies the fontsize of preedit text in 1/10 point. yes, tenths. not points. tenths of a point. keep up π
mt and pos are the M-text and the character position at the spot.
and listen βmtmay beNULL. if it is, the input method cannot get information about the text around the spot. no text context for you, babe. that's just how it is π
π 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!! πβ¨π¦
this was Version 1.8.4, dated Mon Sep 25 2023, living its best life in the m17n library as minput_set_spot(3m17n). slay, go set some spots, 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