input.text · function ·

SetCompositionPlacement

Set composition placement.

cpufunctioninputinput.textsource-exampletextyeho

Represent committed text and composition separately from physical keys.

external SetCompositionPlacement(int x, int y, int lineHeight) returns bool

Status: source-declared

Parameters

int x
Supply x as int.
int y
Supply y as int.
int lineHeight
Supply line height as int.

Use SetCompositionPlacement

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using input.text

// Represent committed text and composition separately from physical keys.
int x = 1
int y = 1
int lineHeight = 1
bool result = SetCompositionPlacement(x, y, lineHeight)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.input_text__setcompositionplacement"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "input.text"
version = "0.1.0"
path = "../../../yeho/packages/input/text"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/input/text/text.yh:29