Documentation
¶
Index ¶
- Variables
- type ZwpInputMethodKeyboardGrabV2
- func (obj *ZwpInputMethodKeyboardGrabV2) Base() *wire.Object
- func (obj *ZwpInputMethodKeyboardGrabV2) Dispatch(msg *wire.Message) error
- func (obj *ZwpInputMethodKeyboardGrabV2) Handler() ZwpInputMethodKeyboardGrabV2Handler
- func (obj *ZwpInputMethodKeyboardGrabV2) SendKey(serial uint32, time uint32, key uint32, state wayland.WlKeyboardKeyState) error
- func (obj *ZwpInputMethodKeyboardGrabV2) SendKeymap(format wayland.WlKeyboardKeymapFormat, fd int, size uint32) error
- func (obj *ZwpInputMethodKeyboardGrabV2) SendModifiers(serial uint32, modsDepressed uint32, modsLatched uint32, modsLocked uint32, ...) error
- func (obj *ZwpInputMethodKeyboardGrabV2) SendRepeatInfo(rate int32, delay int32) error
- type ZwpInputMethodKeyboardGrabV2Handler
- type ZwpInputMethodManagerV2
- type ZwpInputMethodManagerV2Handler
- type ZwpInputMethodV2
- func (obj *ZwpInputMethodV2) Base() *wire.Object
- func (obj *ZwpInputMethodV2) Dispatch(msg *wire.Message) error
- func (obj *ZwpInputMethodV2) Handler() ZwpInputMethodV2Handler
- func (obj *ZwpInputMethodV2) ProtocolError(code ZwpInputMethodV2Error, format string, args ...any) error
- func (obj *ZwpInputMethodV2) SendActivate() error
- func (obj *ZwpInputMethodV2) SendContentType(hint textinput.ZwpTextInputV3ContentHint, ...) error
- func (obj *ZwpInputMethodV2) SendDeactivate() error
- func (obj *ZwpInputMethodV2) SendDone() error
- func (obj *ZwpInputMethodV2) SendSurroundingText(text string, cursor uint32, anchor uint32) error
- func (obj *ZwpInputMethodV2) SendTextChangeCause(cause textinput.ZwpTextInputV3ChangeCause) error
- func (obj *ZwpInputMethodV2) SendUnavailable() error
- type ZwpInputMethodV2Error
- type ZwpInputMethodV2Handler
- type ZwpInputPopupSurfaceV2
- func (obj *ZwpInputPopupSurfaceV2) Base() *wire.Object
- func (obj *ZwpInputPopupSurfaceV2) Dispatch(msg *wire.Message) error
- func (obj *ZwpInputPopupSurfaceV2) Handler() ZwpInputPopupSurfaceV2Handler
- func (obj *ZwpInputPopupSurfaceV2) SendTextInputRectangle(x int32, y int32, width int32, height int32) error
- type ZwpInputPopupSurfaceV2Handler
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 CreateZwpInputMethodKeyboardGrabV2 ¶
func CreateZwpInputMethodKeyboardGrabV2(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwpInputMethodKeyboardGrabV2) (ZwpInputMethodKeyboardGrabV2Handler, error)) (*ZwpInputMethodKeyboardGrabV2, error)
func NewZwpInputMethodKeyboardGrabV2 ¶
func NewZwpInputMethodKeyboardGrabV2(p wire.Peer, id wire.ObjectID, version uint32, h ZwpInputMethodKeyboardGrabV2Handler) (*ZwpInputMethodKeyboardGrabV2, error)
func (*ZwpInputMethodKeyboardGrabV2) Base ¶
func (obj *ZwpInputMethodKeyboardGrabV2) Base() *wire.Object
func (*ZwpInputMethodKeyboardGrabV2) Dispatch ¶
func (obj *ZwpInputMethodKeyboardGrabV2) Dispatch(msg *wire.Message) error
func (*ZwpInputMethodKeyboardGrabV2) Handler ¶
func (obj *ZwpInputMethodKeyboardGrabV2) Handler() ZwpInputMethodKeyboardGrabV2Handler
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 (*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 CreateZwpInputMethodManagerV2 ¶
func CreateZwpInputMethodManagerV2(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwpInputMethodManagerV2) (ZwpInputMethodManagerV2Handler, error)) (*ZwpInputMethodManagerV2, error)
func NewZwpInputMethodManagerV2 ¶
func NewZwpInputMethodManagerV2(p wire.Peer, id wire.ObjectID, version uint32, h ZwpInputMethodManagerV2Handler) (*ZwpInputMethodManagerV2, error)
func (*ZwpInputMethodManagerV2) Base ¶
func (obj *ZwpInputMethodManagerV2) Base() *wire.Object
func (*ZwpInputMethodManagerV2) Dispatch ¶
func (obj *ZwpInputMethodManagerV2) Dispatch(msg *wire.Message) error
func (*ZwpInputMethodManagerV2) Handler ¶
func (obj *ZwpInputMethodManagerV2) Handler() ZwpInputMethodManagerV2Handler
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) Handler ¶
func (obj *ZwpInputMethodV2) Handler() ZwpInputMethodV2Handler
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 (obj *ZwpInputMethodV2) SendContentType(hint textinput.ZwpTextInputV3ContentHint, purpose textinput.ZwpTextInputV3ContentPurpose) error
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 NewZwpInputPopupSurfaceV2 ¶
func NewZwpInputPopupSurfaceV2(p wire.Peer, id wire.ObjectID, version uint32, h ZwpInputPopupSurfaceV2Handler) (*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 (obj *ZwpInputPopupSurfaceV2) Handler() ZwpInputPopupSurfaceV2Handler
func (*ZwpInputPopupSurfaceV2) SendTextInputRectangle ¶
type ZwpInputPopupSurfaceV2Handler ¶
type ZwpInputPopupSurfaceV2Handler interface {
Destroy(obj *ZwpInputPopupSurfaceV2) error
}
Click to show internal directories.
Click to hide internal directories.