inputmethod

package
v0.5.2 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: 3 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

Index

Constants

This section is empty.

Variables

View Source
var ZwpInputMethodKeyboardGrabV2Interface = &wire.Interface{
	Name:    "zwp_input_method_keyboard_grab_v2",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "release", Since: 1, Destructor: true},
	},
	Events: []wire.MessageSpec{
		{Name: "keymap", Since: 1, Args: []wire.Arg{{Name: "format", Type: wire.ArgUint}, {Name: "fd", Type: wire.ArgFD}, {Name: "size", Type: wire.ArgUint}}},
		{Name: "key", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}, {Name: "time", Type: wire.ArgUint}, {Name: "key", Type: wire.ArgUint}, {Name: "state", Type: wire.ArgUint}}},
		{Name: "modifiers", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}, {Name: "mods_depressed", Type: wire.ArgUint}, {Name: "mods_latched", Type: wire.ArgUint}, {Name: "mods_locked", Type: wire.ArgUint}, {Name: "group", Type: wire.ArgUint}}},
		{Name: "repeat_info", Since: 1, Args: []wire.Arg{{Name: "rate", Type: wire.ArgInt}, {Name: "delay", Type: wire.ArgInt}}},
	},
}
View Source
var ZwpInputMethodManagerV2Interface = &wire.Interface{
	Name:    "zwp_input_method_manager_v2",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "get_input_method", Since: 1, Args: []wire.Arg{{Name: "seat", Type: wire.ArgObject, Interface: "wl_seat"}, {Name: "input_method", Type: wire.ArgNewID, Interface: "zwp_input_method_v2"}}},
		{Name: "destroy", Since: 1, Destructor: true},
	},
}
View Source
var ZwpInputMethodV2Interface = &wire.Interface{
	Name:    "zwp_input_method_v2",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "commit_string", Since: 1, Args: []wire.Arg{{Name: "text", Type: wire.ArgString}}},
		{Name: "set_preedit_string", Since: 1, Args: []wire.Arg{{Name: "text", Type: wire.ArgString}, {Name: "cursor_begin", Type: wire.ArgInt}, {Name: "cursor_end", Type: wire.ArgInt}}},
		{Name: "delete_surrounding_text", Since: 1, Args: []wire.Arg{{Name: "before_length", Type: wire.ArgUint}, {Name: "after_length", Type: wire.ArgUint}}},
		{Name: "commit", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}}},
		{Name: "get_input_popup_surface", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "zwp_input_popup_surface_v2"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}}},
		{Name: "grab_keyboard", Since: 1, Args: []wire.Arg{{Name: "keyboard", Type: wire.ArgNewID, Interface: "zwp_input_method_keyboard_grab_v2"}}},
		{Name: "destroy", Since: 1, Destructor: true},
	},
	Events: []wire.MessageSpec{
		{Name: "activate", Since: 1},
		{Name: "deactivate", Since: 1},
		{Name: "surrounding_text", Since: 1, Args: []wire.Arg{{Name: "text", Type: wire.ArgString}, {Name: "cursor", Type: wire.ArgUint}, {Name: "anchor", Type: wire.ArgUint}}},
		{Name: "text_change_cause", Since: 1, Args: []wire.Arg{{Name: "cause", Type: wire.ArgUint}}},
		{Name: "content_type", Since: 1, Args: []wire.Arg{{Name: "hint", Type: wire.ArgUint}, {Name: "purpose", Type: wire.ArgUint}}},
		{Name: "done", Since: 1},
		{Name: "unavailable", Since: 1},
	},
}
View Source
var ZwpInputPopupSurfaceV2Interface = &wire.Interface{
	Name:    "zwp_input_popup_surface_v2",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "destroy", Since: 1, Destructor: true},
	},
	Events: []wire.MessageSpec{
		{Name: "text_input_rectangle", Since: 1, Args: []wire.Arg{{Name: "x", Type: wire.ArgInt}, {Name: "y", Type: wire.ArgInt}, {Name: "width", Type: wire.ArgInt}, {Name: "height", Type: wire.ArgInt}}},
	},
}

Functions

This section is empty.

Types

type ZwpInputMethodKeyboardGrabV2

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

func (*ZwpInputMethodKeyboardGrabV2) Base

func (*ZwpInputMethodKeyboardGrabV2) Dispatch

func (obj *ZwpInputMethodKeyboardGrabV2) Dispatch(msg *wire.Message) error

func (*ZwpInputMethodKeyboardGrabV2) Handler

func (*ZwpInputMethodKeyboardGrabV2) SendKey

func (obj *ZwpInputMethodKeyboardGrabV2) SendKey(serial uint32, time uint32, key uint32, state wayland.WlKeyboardKeyState) error

func (*ZwpInputMethodKeyboardGrabV2) SendKeymap

func (obj *ZwpInputMethodKeyboardGrabV2) SendKeymap(format wayland.WlKeyboardKeymapFormat, fd int, size uint32) error

func (*ZwpInputMethodKeyboardGrabV2) SendModifiers

func (obj *ZwpInputMethodKeyboardGrabV2) SendModifiers(serial uint32, modsDepressed uint32, modsLatched uint32, modsLocked uint32, group uint32) error

func (*ZwpInputMethodKeyboardGrabV2) SendRepeatInfo

func (obj *ZwpInputMethodKeyboardGrabV2) SendRepeatInfo(rate int32, delay int32) error

type ZwpInputMethodKeyboardGrabV2Handler

type ZwpInputMethodKeyboardGrabV2Handler interface {
	Release(obj *ZwpInputMethodKeyboardGrabV2) error
}

type ZwpInputMethodManagerV2

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

func (*ZwpInputMethodManagerV2) Base

func (obj *ZwpInputMethodManagerV2) Base() *wire.Object

func (*ZwpInputMethodManagerV2) Dispatch

func (obj *ZwpInputMethodManagerV2) Dispatch(msg *wire.Message) error

func (*ZwpInputMethodManagerV2) Handler

type ZwpInputMethodManagerV2Handler

type ZwpInputMethodManagerV2Handler interface {
	GetInputMethod(obj *ZwpInputMethodManagerV2, seat *wayland.WlSeat, inputMethod *ZwpInputMethodV2) (ZwpInputMethodV2Handler, error)
	Destroy(obj *ZwpInputMethodManagerV2) error
}

type ZwpInputMethodV2

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

func CreateZwpInputMethodV2

func CreateZwpInputMethodV2(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwpInputMethodV2) (ZwpInputMethodV2Handler, error)) (*ZwpInputMethodV2, error)

func NewZwpInputMethodV2

func NewZwpInputMethodV2(p wire.Peer, id wire.ObjectID, version uint32, h ZwpInputMethodV2Handler) (*ZwpInputMethodV2, error)

func (*ZwpInputMethodV2) Base

func (obj *ZwpInputMethodV2) Base() *wire.Object

func (*ZwpInputMethodV2) Dispatch

func (obj *ZwpInputMethodV2) Dispatch(msg *wire.Message) error

func (*ZwpInputMethodV2) Handler

func (*ZwpInputMethodV2) ProtocolError

func (obj *ZwpInputMethodV2) ProtocolError(code ZwpInputMethodV2Error, format string, args ...any) error

func (*ZwpInputMethodV2) SendActivate

func (obj *ZwpInputMethodV2) SendActivate() error

func (*ZwpInputMethodV2) SendContentType

func (*ZwpInputMethodV2) SendDeactivate

func (obj *ZwpInputMethodV2) SendDeactivate() error

func (*ZwpInputMethodV2) SendDone

func (obj *ZwpInputMethodV2) SendDone() error

func (*ZwpInputMethodV2) SendSurroundingText

func (obj *ZwpInputMethodV2) SendSurroundingText(text string, cursor uint32, anchor uint32) error

func (*ZwpInputMethodV2) SendTextChangeCause

func (obj *ZwpInputMethodV2) SendTextChangeCause(cause textinput.ZwpTextInputV3ChangeCause) error

func (*ZwpInputMethodV2) SendUnavailable

func (obj *ZwpInputMethodV2) SendUnavailable() error

type ZwpInputMethodV2Error

type ZwpInputMethodV2Error uint32
const (
	ZwpInputMethodV2ErrorRole ZwpInputMethodV2Error = 0
)

func (ZwpInputMethodV2Error) Valid

func (v ZwpInputMethodV2Error) Valid(version uint32) bool

type ZwpInputMethodV2Handler

type ZwpInputMethodV2Handler interface {
	CommitString(obj *ZwpInputMethodV2, text string) error
	SetPreeditString(obj *ZwpInputMethodV2, text string, cursorBegin int32, cursorEnd int32) error
	DeleteSurroundingText(obj *ZwpInputMethodV2, beforeLength uint32, afterLength uint32) error
	Commit(obj *ZwpInputMethodV2, serial uint32) error
	GetInputPopupSurface(obj *ZwpInputMethodV2, id *ZwpInputPopupSurfaceV2, surface *wayland.WlSurface) (ZwpInputPopupSurfaceV2Handler, error)
	GrabKeyboard(obj *ZwpInputMethodV2, keyboard *ZwpInputMethodKeyboardGrabV2) (ZwpInputMethodKeyboardGrabV2Handler, error)
	Destroy(obj *ZwpInputMethodV2) error
}

type ZwpInputPopupSurfaceV2

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

func CreateZwpInputPopupSurfaceV2

func CreateZwpInputPopupSurfaceV2(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwpInputPopupSurfaceV2) (ZwpInputPopupSurfaceV2Handler, error)) (*ZwpInputPopupSurfaceV2, error)

func (*ZwpInputPopupSurfaceV2) Base

func (obj *ZwpInputPopupSurfaceV2) Base() *wire.Object

func (*ZwpInputPopupSurfaceV2) Dispatch

func (obj *ZwpInputPopupSurfaceV2) Dispatch(msg *wire.Message) error

func (*ZwpInputPopupSurfaceV2) Handler

func (*ZwpInputPopupSurfaceV2) SendTextInputRectangle

func (obj *ZwpInputPopupSurfaceV2) SendTextInputRectangle(x int32, y int32, width int32, height int32) error

type ZwpInputPopupSurfaceV2Handler

type ZwpInputPopupSurfaceV2Handler interface {
	Destroy(obj *ZwpInputPopupSurfaceV2) error
}

Jump to

Keyboard shortcuts

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