textinputv1

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: 2 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 ZwpTextInputManagerV1Interface = &wire.Interface{
	Name:    "zwp_text_input_manager_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "create_text_input", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "zwp_text_input_v1"}}},
	},
}
View Source
var ZwpTextInputV1Interface = &wire.Interface{
	Name:    "zwp_text_input_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "activate", Since: 1, Args: []wire.Arg{{Name: "seat", Type: wire.ArgObject, Interface: "wl_seat"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}}},
		{Name: "deactivate", Since: 1, Args: []wire.Arg{{Name: "seat", Type: wire.ArgObject, Interface: "wl_seat"}}},
		{Name: "show_input_panel", Since: 1},
		{Name: "hide_input_panel", Since: 1},
		{Name: "reset", Since: 1},
		{Name: "set_surrounding_text", Since: 1, Args: []wire.Arg{{Name: "text", Type: wire.ArgString}, {Name: "cursor", Type: wire.ArgUint}, {Name: "anchor", Type: wire.ArgUint}}},
		{Name: "set_content_type", Since: 1, Args: []wire.Arg{{Name: "hint", Type: wire.ArgUint}, {Name: "purpose", Type: wire.ArgUint}}},
		{Name: "set_cursor_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}}},
		{Name: "set_preferred_language", Since: 1, Args: []wire.Arg{{Name: "language", Type: wire.ArgString}}},
		{Name: "commit_state", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}}},
		{Name: "invoke_action", Since: 1, Args: []wire.Arg{{Name: "button", Type: wire.ArgUint}, {Name: "index", Type: wire.ArgUint}}},
	},
	Events: []wire.MessageSpec{
		{Name: "enter", Since: 1, Args: []wire.Arg{{Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}}},
		{Name: "leave", Since: 1},
		{Name: "modifiers_map", Since: 1, Args: []wire.Arg{{Name: "map", Type: wire.ArgArray}}},
		{Name: "input_panel_state", Since: 1, Args: []wire.Arg{{Name: "state", Type: wire.ArgUint}}},
		{Name: "preedit_string", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}, {Name: "text", Type: wire.ArgString}, {Name: "commit", Type: wire.ArgString}}},
		{Name: "preedit_styling", Since: 1, Args: []wire.Arg{{Name: "index", Type: wire.ArgUint}, {Name: "length", Type: wire.ArgUint}, {Name: "style", Type: wire.ArgUint}}},
		{Name: "preedit_cursor", Since: 1, Args: []wire.Arg{{Name: "index", Type: wire.ArgInt}}},
		{Name: "commit_string", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}, {Name: "text", Type: wire.ArgString}}},
		{Name: "cursor_position", Since: 1, Args: []wire.Arg{{Name: "index", Type: wire.ArgInt}, {Name: "anchor", Type: wire.ArgInt}}},
		{Name: "delete_surrounding_text", Since: 1, Args: []wire.Arg{{Name: "index", Type: wire.ArgInt}, {Name: "length", Type: wire.ArgUint}}},
		{Name: "keysym", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}, {Name: "time", Type: wire.ArgUint}, {Name: "sym", Type: wire.ArgUint}, {Name: "state", Type: wire.ArgUint}, {Name: "modifiers", Type: wire.ArgUint}}},
		{Name: "language", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}, {Name: "language", Type: wire.ArgString}}},
		{Name: "text_direction", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}, {Name: "direction", Type: wire.ArgUint}}},
	},
}

Functions

This section is empty.

Types

type ZwpTextInputManagerV1

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

func CreateZwpTextInputManagerV1

func CreateZwpTextInputManagerV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwpTextInputManagerV1) (ZwpTextInputManagerV1Handler, error)) (*ZwpTextInputManagerV1, error)

func (*ZwpTextInputManagerV1) Base

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

func (*ZwpTextInputManagerV1) Dispatch

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

func (*ZwpTextInputManagerV1) Handler

type ZwpTextInputManagerV1Handler

type ZwpTextInputManagerV1Handler interface {
	CreateTextInput(obj *ZwpTextInputManagerV1, id *ZwpTextInputV1) (ZwpTextInputV1Handler, error)
}

type ZwpTextInputV1

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

func CreateZwpTextInputV1

func CreateZwpTextInputV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwpTextInputV1) (ZwpTextInputV1Handler, error)) (*ZwpTextInputV1, error)

func NewZwpTextInputV1

func NewZwpTextInputV1(p wire.Peer, id wire.ObjectID, version uint32, h ZwpTextInputV1Handler) (*ZwpTextInputV1, error)

func (*ZwpTextInputV1) Base

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

func (*ZwpTextInputV1) Dispatch

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

func (*ZwpTextInputV1) Handler

func (obj *ZwpTextInputV1) Handler() ZwpTextInputV1Handler

func (*ZwpTextInputV1) SendCommitString

func (obj *ZwpTextInputV1) SendCommitString(serial uint32, text string) error

func (*ZwpTextInputV1) SendCursorPosition

func (obj *ZwpTextInputV1) SendCursorPosition(index int32, anchor int32) error

func (*ZwpTextInputV1) SendDeleteSurroundingText

func (obj *ZwpTextInputV1) SendDeleteSurroundingText(index int32, length uint32) error

func (*ZwpTextInputV1) SendEnter

func (obj *ZwpTextInputV1) SendEnter(surface *wayland.WlSurface) error

func (*ZwpTextInputV1) SendInputPanelState

func (obj *ZwpTextInputV1) SendInputPanelState(state uint32) error

func (*ZwpTextInputV1) SendKeysym

func (obj *ZwpTextInputV1) SendKeysym(serial uint32, time uint32, sym uint32, state uint32, modifiers uint32) error

func (*ZwpTextInputV1) SendLanguage

func (obj *ZwpTextInputV1) SendLanguage(serial uint32, language string) error

func (*ZwpTextInputV1) SendLeave

func (obj *ZwpTextInputV1) SendLeave() error

func (*ZwpTextInputV1) SendModifiersMap

func (obj *ZwpTextInputV1) SendModifiersMap(mapArg []byte) error

func (*ZwpTextInputV1) SendPreeditCursor

func (obj *ZwpTextInputV1) SendPreeditCursor(index int32) error

func (*ZwpTextInputV1) SendPreeditString

func (obj *ZwpTextInputV1) SendPreeditString(serial uint32, text string, commit string) error

func (*ZwpTextInputV1) SendPreeditStyling

func (obj *ZwpTextInputV1) SendPreeditStyling(index uint32, length uint32, style ZwpTextInputV1PreeditStyle) error

func (*ZwpTextInputV1) SendTextDirection

func (obj *ZwpTextInputV1) SendTextDirection(serial uint32, direction ZwpTextInputV1TextDirection) error

type ZwpTextInputV1ContentHint

type ZwpTextInputV1ContentHint uint32
const (
	ZwpTextInputV1ContentHintNone               ZwpTextInputV1ContentHint = 0
	ZwpTextInputV1ContentHintDefault            ZwpTextInputV1ContentHint = 7
	ZwpTextInputV1ContentHintPassword           ZwpTextInputV1ContentHint = 192
	ZwpTextInputV1ContentHintAutoCompletion     ZwpTextInputV1ContentHint = 1
	ZwpTextInputV1ContentHintAutoCorrection     ZwpTextInputV1ContentHint = 2
	ZwpTextInputV1ContentHintAutoCapitalization ZwpTextInputV1ContentHint = 4
	ZwpTextInputV1ContentHintLowercase          ZwpTextInputV1ContentHint = 8
	ZwpTextInputV1ContentHintUppercase          ZwpTextInputV1ContentHint = 16
	ZwpTextInputV1ContentHintTitlecase          ZwpTextInputV1ContentHint = 32
	ZwpTextInputV1ContentHintHiddenText         ZwpTextInputV1ContentHint = 64
	ZwpTextInputV1ContentHintSensitiveData      ZwpTextInputV1ContentHint = 128
	ZwpTextInputV1ContentHintLatin              ZwpTextInputV1ContentHint = 256
	ZwpTextInputV1ContentHintMultiline          ZwpTextInputV1ContentHint = 512
)

func (ZwpTextInputV1ContentHint) Has

func (ZwpTextInputV1ContentHint) Valid

func (v ZwpTextInputV1ContentHint) Valid(version uint32) bool

type ZwpTextInputV1ContentPurpose

type ZwpTextInputV1ContentPurpose uint32
const (
	ZwpTextInputV1ContentPurposeNormal   ZwpTextInputV1ContentPurpose = 0
	ZwpTextInputV1ContentPurposeAlpha    ZwpTextInputV1ContentPurpose = 1
	ZwpTextInputV1ContentPurposeDigits   ZwpTextInputV1ContentPurpose = 2
	ZwpTextInputV1ContentPurposeNumber   ZwpTextInputV1ContentPurpose = 3
	ZwpTextInputV1ContentPurposePhone    ZwpTextInputV1ContentPurpose = 4
	ZwpTextInputV1ContentPurposeURL      ZwpTextInputV1ContentPurpose = 5
	ZwpTextInputV1ContentPurposeEmail    ZwpTextInputV1ContentPurpose = 6
	ZwpTextInputV1ContentPurposeName     ZwpTextInputV1ContentPurpose = 7
	ZwpTextInputV1ContentPurposePassword ZwpTextInputV1ContentPurpose = 8
	ZwpTextInputV1ContentPurposeDate     ZwpTextInputV1ContentPurpose = 9
	ZwpTextInputV1ContentPurposeTime     ZwpTextInputV1ContentPurpose = 10
	ZwpTextInputV1ContentPurposeDatetime ZwpTextInputV1ContentPurpose = 11
	ZwpTextInputV1ContentPurposeTerminal ZwpTextInputV1ContentPurpose = 12
)

func (ZwpTextInputV1ContentPurpose) Valid

func (v ZwpTextInputV1ContentPurpose) Valid(version uint32) bool

type ZwpTextInputV1Handler

type ZwpTextInputV1Handler interface {
	Activate(obj *ZwpTextInputV1, seat *wayland.WlSeat, surface *wayland.WlSurface) error
	Deactivate(obj *ZwpTextInputV1, seat *wayland.WlSeat) error
	ShowInputPanel(obj *ZwpTextInputV1) error
	HideInputPanel(obj *ZwpTextInputV1) error
	Reset(obj *ZwpTextInputV1) error
	SetSurroundingText(obj *ZwpTextInputV1, text string, cursor uint32, anchor uint32) error
	SetContentType(obj *ZwpTextInputV1, hint ZwpTextInputV1ContentHint, purpose ZwpTextInputV1ContentPurpose) error
	SetCursorRectangle(obj *ZwpTextInputV1, x int32, y int32, width int32, height int32) error
	SetPreferredLanguage(obj *ZwpTextInputV1, language string) error
	CommitState(obj *ZwpTextInputV1, serial uint32) error
	InvokeAction(obj *ZwpTextInputV1, button uint32, index uint32) error
}

type ZwpTextInputV1PreeditStyle

type ZwpTextInputV1PreeditStyle uint32
const (
	ZwpTextInputV1PreeditStyleDefault   ZwpTextInputV1PreeditStyle = 0
	ZwpTextInputV1PreeditStyleNone      ZwpTextInputV1PreeditStyle = 1
	ZwpTextInputV1PreeditStyleActive    ZwpTextInputV1PreeditStyle = 2
	ZwpTextInputV1PreeditStyleInactive  ZwpTextInputV1PreeditStyle = 3
	ZwpTextInputV1PreeditStyleHighlight ZwpTextInputV1PreeditStyle = 4
	ZwpTextInputV1PreeditStyleUnderline ZwpTextInputV1PreeditStyle = 5
	ZwpTextInputV1PreeditStyleSelection ZwpTextInputV1PreeditStyle = 6
	ZwpTextInputV1PreeditStyleIncorrect ZwpTextInputV1PreeditStyle = 7
)

func (ZwpTextInputV1PreeditStyle) Valid

func (v ZwpTextInputV1PreeditStyle) Valid(version uint32) bool

type ZwpTextInputV1TextDirection

type ZwpTextInputV1TextDirection uint32
const (
	ZwpTextInputV1TextDirectionAuto ZwpTextInputV1TextDirection = 0
	ZwpTextInputV1TextDirectionLtr  ZwpTextInputV1TextDirection = 1
	ZwpTextInputV1TextDirectionRtl  ZwpTextInputV1TextDirection = 2
)

func (ZwpTextInputV1TextDirection) Valid

func (v ZwpTextInputV1TextDirection) Valid(version uint32) bool

Jump to

Keyboard shortcuts

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