{"id":"input.text--SetCompositionPlacement","name":"SetCompositionPlacement","owner":"yeho","package":"input.text","kind":"function","signature":"external SetCompositionPlacement(int x, int y, int lineHeight) returns bool","description":"Set composition placement.","context":"Represent committed text and composition separately from physical keys.","parameters":[{"name":"x","type":"int","description":"Supply x as int."},{"name":"y","type":"int","description":"Supply y as int."},{"name":"lineHeight","type":"int","description":"Supply line height as int."}],"returns":"bool","members":[],"tags":["cpu","function","input","input.text","source-example","text","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/input/text/text.yh","line":29,"sha256":"bed4ea3481abc403c432175b7aabf404ee66ddcf98fc72819ed6fbc3071fb4e4"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use SetCompositionPlacement","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using input.text\n\n// Represent committed text and composition separately from physical keys.\nint x = 1\nint y = 1\nint lineHeight = 1\nbool result = SetCompositionPlacement(x, y, lineHeight)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.input_text__setcompositionplacement\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"input.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/input/text\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"1469f10975a3128a173727e1f8677400d59bd3a029940343ecb9df4573b5f02f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=input.text--SetCompositionPlacement","json":"https://demonhunterlabs.com/reference/items/input.text--SetCompositionPlacement.json","markdown":"https://demonhunterlabs.com/reference/text/input.text--SetCompositionPlacement.md"}
