inputmethod

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT, MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package inputmethod implements zwp_text_input_manager_v3, zwp_text_input_manager_v1 and zwp_input_method_manager_v2: the focused client's enabled text input and the seat's input method relay state, text, preedit and deletions to each other, the input method can grab the keyboard, and its popups follow the text cursor.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Keyboard

type Keyboard interface {
	Grab(g seat.KeyboardGrab) error
	Ungrab(g seat.KeyboardGrab) error
}

type Listener

type Listener interface {
	PopupsChanged() error
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(d *server.Display, keyboard Keyboard, listener Listener) (*Manager, error)

func (*Manager) Focus

func (m *Manager) Focus(s *surface.Surface) error

func (*Manager) Popups

func (m *Manager) Popups() []Popup
type Popup struct {
	Surface *surface.Surface
	Anchor  *surface.Surface
	Cursor  image.Rectangle
	// contains filtered or unexported fields
}

func (Popup) Placed

func (p Popup) Placed(cursor image.Rectangle) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL