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) Release

func (obj *ZwpInputMethodKeyboardGrabV2) Release() error

type ZwpInputMethodKeyboardGrabV2Handler

type ZwpInputMethodKeyboardGrabV2Handler interface {
	Keymap(obj *ZwpInputMethodKeyboardGrabV2, format wayland.WlKeyboardKeymapFormat, fd int, size uint32) error
	Key(obj *ZwpInputMethodKeyboardGrabV2, serial uint32, time uint32, key uint32, state wayland.WlKeyboardKeyState) error
	Modifiers(obj *ZwpInputMethodKeyboardGrabV2, serial uint32, modsDepressed uint32, modsLatched uint32, modsLocked uint32, group uint32) error
	RepeatInfo(obj *ZwpInputMethodKeyboardGrabV2, rate int32, delay int32) error
}

type ZwpInputMethodManagerV2

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

func CreateZwpInputMethodManagerV2

func CreateZwpInputMethodManagerV2(p wire.Peer, id wire.ObjectID, version uint32) (*ZwpInputMethodManagerV2, error)

func NewZwpInputMethodManagerV2

func NewZwpInputMethodManagerV2(p wire.Peer, version uint32) (*ZwpInputMethodManagerV2, error)

func (*ZwpInputMethodManagerV2) Base

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

func (*ZwpInputMethodManagerV2) Destroy

func (obj *ZwpInputMethodManagerV2) Destroy() error

func (*ZwpInputMethodManagerV2) Dispatch

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

func (*ZwpInputMethodManagerV2) GetInputMethod

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, version uint32, h ZwpInputMethodV2Handler) (*ZwpInputMethodV2, error)

func (*ZwpInputMethodV2) Base

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

func (*ZwpInputMethodV2) Commit

func (obj *ZwpInputMethodV2) Commit(serial uint32) error

func (*ZwpInputMethodV2) CommitString

func (obj *ZwpInputMethodV2) CommitString(text string) error

func (*ZwpInputMethodV2) DeleteSurroundingText

func (obj *ZwpInputMethodV2) DeleteSurroundingText(beforeLength uint32, afterLength uint32) error

func (*ZwpInputMethodV2) Destroy

func (obj *ZwpInputMethodV2) Destroy() error

func (*ZwpInputMethodV2) Dispatch

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

func (*ZwpInputMethodV2) GetInputPopupSurface

func (*ZwpInputMethodV2) Handler

func (*ZwpInputMethodV2) SetPreeditString

func (obj *ZwpInputMethodV2) SetPreeditString(text string, cursorBegin int32, cursorEnd int32) 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 {
	Activate(obj *ZwpInputMethodV2) error
	Deactivate(obj *ZwpInputMethodV2) error
	SurroundingText(obj *ZwpInputMethodV2, text string, cursor uint32, anchor uint32) error
	TextChangeCause(obj *ZwpInputMethodV2, cause textinput.ZwpTextInputV3ChangeCause) error
	ContentType(obj *ZwpInputMethodV2, hint textinput.ZwpTextInputV3ContentHint, purpose textinput.ZwpTextInputV3ContentPurpose) error
	Done(obj *ZwpInputMethodV2) error
	Unavailable(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) Destroy

func (obj *ZwpInputPopupSurfaceV2) Destroy() error

func (*ZwpInputPopupSurfaceV2) Dispatch

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

func (*ZwpInputPopupSurfaceV2) Handler

type ZwpInputPopupSurfaceV2Handler

type ZwpInputPopupSurfaceV2Handler interface {
	TextInputRectangle(obj *ZwpInputPopupSurfaceV2, x int32, y int32, width int32, height int32) error
}

Jump to

Keyboard shortcuts

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