Documentation
¶
Index ¶
- Variables
- type ZwpInputMethodKeyboardGrabV2
- type ZwpInputMethodKeyboardGrabV2Handler
- type ZwpInputMethodManagerV2
- func (obj *ZwpInputMethodManagerV2) Base() *wire.Object
- func (obj *ZwpInputMethodManagerV2) Destroy() error
- func (obj *ZwpInputMethodManagerV2) Dispatch(msg *wire.Message) error
- func (obj *ZwpInputMethodManagerV2) GetInputMethod(seat *wayland.WlSeat, h ZwpInputMethodV2Handler) (*ZwpInputMethodV2, error)
- type ZwpInputMethodV2
- func (obj *ZwpInputMethodV2) Base() *wire.Object
- func (obj *ZwpInputMethodV2) Commit(serial uint32) error
- func (obj *ZwpInputMethodV2) CommitString(text string) error
- func (obj *ZwpInputMethodV2) DeleteSurroundingText(beforeLength uint32, afterLength uint32) error
- func (obj *ZwpInputMethodV2) Destroy() error
- func (obj *ZwpInputMethodV2) Dispatch(msg *wire.Message) error
- func (obj *ZwpInputMethodV2) GetInputPopupSurface(h ZwpInputPopupSurfaceV2Handler, surface *wayland.WlSurface) (*ZwpInputPopupSurfaceV2, error)
- func (obj *ZwpInputMethodV2) GrabKeyboard(h ZwpInputMethodKeyboardGrabV2Handler) (*ZwpInputMethodKeyboardGrabV2, error)
- func (obj *ZwpInputMethodV2) Handler() ZwpInputMethodV2Handler
- func (obj *ZwpInputMethodV2) SetPreeditString(text string, cursorBegin int32, cursorEnd int32) error
- type ZwpInputMethodV2Error
- type ZwpInputMethodV2Handler
- type ZwpInputPopupSurfaceV2
- 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, 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) 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 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 ¶
func (obj *ZwpInputMethodManagerV2) GetInputMethod(seat *wayland.WlSeat, h ZwpInputMethodV2Handler) (*ZwpInputMethodV2, 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, 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) GetInputPopupSurface ¶
func (obj *ZwpInputMethodV2) GetInputPopupSurface(h ZwpInputPopupSurfaceV2Handler, surface *wayland.WlSurface) (*ZwpInputPopupSurfaceV2, error)
func (*ZwpInputMethodV2) GrabKeyboard ¶
func (obj *ZwpInputMethodV2) GrabKeyboard(h ZwpInputMethodKeyboardGrabV2Handler) (*ZwpInputMethodKeyboardGrabV2, error)
func (*ZwpInputMethodV2) Handler ¶
func (obj *ZwpInputMethodV2) Handler() ZwpInputMethodV2Handler
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
}
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, version uint32, h ZwpInputPopupSurfaceV2Handler) (*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 ¶
func (obj *ZwpInputPopupSurfaceV2) Handler() ZwpInputPopupSurfaceV2Handler
Click to show internal directories.
Click to hide internal directories.