Documentation
¶
Index ¶
- Variables
- type ZwpTextInputManagerV3
- type ZwpTextInputManagerV3Handler
- type ZwpTextInputV3
- func (obj *ZwpTextInputV3) Base() *wire.Object
- func (obj *ZwpTextInputV3) Dispatch(msg *wire.Message) error
- func (obj *ZwpTextInputV3) Handler() ZwpTextInputV3Handler
- func (obj *ZwpTextInputV3) ProtocolError(code ZwpTextInputV3Error, format string, args ...any) error
- func (obj *ZwpTextInputV3) SendAction(action ZwpTextInputV3Action, serial uint32) error
- func (obj *ZwpTextInputV3) SendCommitString(text *string) error
- func (obj *ZwpTextInputV3) SendDeleteSurroundingText(beforeLength uint32, afterLength uint32) error
- func (obj *ZwpTextInputV3) SendDone(serial uint32) error
- func (obj *ZwpTextInputV3) SendEnter(surface *wayland.WlSurface) error
- func (obj *ZwpTextInputV3) SendLanguage(language string) error
- func (obj *ZwpTextInputV3) SendLeave(surface *wayland.WlSurface) error
- func (obj *ZwpTextInputV3) SendPreeditHint(start uint32, end uint32, hint ZwpTextInputV3PreeditHint) error
- func (obj *ZwpTextInputV3) SendPreeditString(text *string, cursorBegin int32, cursorEnd int32) error
- type ZwpTextInputV3Action
- type ZwpTextInputV3ChangeCause
- type ZwpTextInputV3ContentHint
- type ZwpTextInputV3ContentPurpose
- type ZwpTextInputV3Error
- type ZwpTextInputV3Handler
- type ZwpTextInputV3PreeditHint
Constants ¶
This section is empty.
Variables ¶
View Source
var ZwpTextInputManagerV3Interface = &wire.Interface{ Name: "zwp_text_input_manager_v3", Version: 2, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "get_text_input", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "zwp_text_input_v3"}, {Name: "seat", Type: wire.ArgObject, Interface: "wl_seat"}}}, }, }
View Source
var ZwpTextInputV3Interface = &wire.Interface{ Name: "zwp_text_input_v3", Version: 2, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "enable", Since: 1}, {Name: "disable", Since: 1}, {Name: "set_surrounding_text", Since: 1, Args: []wire.Arg{{Name: "text", Type: wire.ArgString}, {Name: "cursor", Type: wire.ArgInt}, {Name: "anchor", Type: wire.ArgInt}}}, {Name: "set_text_change_cause", Since: 1, Args: []wire.Arg{{Name: "cause", 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: "commit", Since: 1}, {Name: "set_available_actions", Since: 2, Args: []wire.Arg{{Name: "available_actions", Type: wire.ArgArray}}}, {Name: "show_input_panel", Since: 2}, {Name: "hide_input_panel", Since: 2}, }, Events: []wire.MessageSpec{ {Name: "enter", Since: 1, Args: []wire.Arg{{Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}}}, {Name: "leave", Since: 1, Args: []wire.Arg{{Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}}}, {Name: "preedit_string", Since: 1, Args: []wire.Arg{{Name: "text", Type: wire.ArgString, Nullable: true}, {Name: "cursor_begin", Type: wire.ArgInt}, {Name: "cursor_end", Type: wire.ArgInt}}}, {Name: "commit_string", Since: 1, Args: []wire.Arg{{Name: "text", Type: wire.ArgString, Nullable: true}}}, {Name: "delete_surrounding_text", Since: 1, Args: []wire.Arg{{Name: "before_length", Type: wire.ArgUint}, {Name: "after_length", Type: wire.ArgUint}}}, {Name: "done", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}}}, {Name: "action", Since: 2, Args: []wire.Arg{{Name: "action", Type: wire.ArgUint}, {Name: "serial", Type: wire.ArgUint}}}, {Name: "language", Since: 2, Args: []wire.Arg{{Name: "language", Type: wire.ArgString}}}, {Name: "preedit_hint", Since: 2, Args: []wire.Arg{{Name: "start", Type: wire.ArgUint}, {Name: "end", Type: wire.ArgUint}, {Name: "hint", Type: wire.ArgUint}}}, }, }
Functions ¶
This section is empty.
Types ¶
type ZwpTextInputManagerV3 ¶
type ZwpTextInputManagerV3 struct {
// contains filtered or unexported fields
}
func CreateZwpTextInputManagerV3 ¶
func CreateZwpTextInputManagerV3(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwpTextInputManagerV3) (ZwpTextInputManagerV3Handler, error)) (*ZwpTextInputManagerV3, error)
func NewZwpTextInputManagerV3 ¶
func NewZwpTextInputManagerV3(p wire.Peer, id wire.ObjectID, version uint32, h ZwpTextInputManagerV3Handler) (*ZwpTextInputManagerV3, error)
func (*ZwpTextInputManagerV3) Base ¶
func (obj *ZwpTextInputManagerV3) Base() *wire.Object
func (*ZwpTextInputManagerV3) Dispatch ¶
func (obj *ZwpTextInputManagerV3) Dispatch(msg *wire.Message) error
func (*ZwpTextInputManagerV3) Handler ¶
func (obj *ZwpTextInputManagerV3) Handler() ZwpTextInputManagerV3Handler
type ZwpTextInputManagerV3Handler ¶
type ZwpTextInputManagerV3Handler interface {
Destroy(obj *ZwpTextInputManagerV3) error
GetTextInput(obj *ZwpTextInputManagerV3, id *ZwpTextInputV3, seat *wayland.WlSeat) (ZwpTextInputV3Handler, error)
}
type ZwpTextInputV3 ¶
type ZwpTextInputV3 struct {
// contains filtered or unexported fields
}
func CreateZwpTextInputV3 ¶
func CreateZwpTextInputV3(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwpTextInputV3) (ZwpTextInputV3Handler, error)) (*ZwpTextInputV3, error)
func NewZwpTextInputV3 ¶
func NewZwpTextInputV3(p wire.Peer, id wire.ObjectID, version uint32, h ZwpTextInputV3Handler) (*ZwpTextInputV3, error)
func (*ZwpTextInputV3) Base ¶
func (obj *ZwpTextInputV3) Base() *wire.Object
func (*ZwpTextInputV3) Handler ¶
func (obj *ZwpTextInputV3) Handler() ZwpTextInputV3Handler
func (*ZwpTextInputV3) ProtocolError ¶
func (obj *ZwpTextInputV3) ProtocolError(code ZwpTextInputV3Error, format string, args ...any) error
func (*ZwpTextInputV3) SendAction ¶
func (obj *ZwpTextInputV3) SendAction(action ZwpTextInputV3Action, serial uint32) error
func (*ZwpTextInputV3) SendCommitString ¶
func (obj *ZwpTextInputV3) SendCommitString(text *string) error
func (*ZwpTextInputV3) SendDeleteSurroundingText ¶
func (obj *ZwpTextInputV3) SendDeleteSurroundingText(beforeLength uint32, afterLength uint32) error
func (*ZwpTextInputV3) SendDone ¶
func (obj *ZwpTextInputV3) SendDone(serial uint32) error
func (*ZwpTextInputV3) SendEnter ¶
func (obj *ZwpTextInputV3) SendEnter(surface *wayland.WlSurface) error
func (*ZwpTextInputV3) SendLanguage ¶
func (obj *ZwpTextInputV3) SendLanguage(language string) error
func (*ZwpTextInputV3) SendLeave ¶
func (obj *ZwpTextInputV3) SendLeave(surface *wayland.WlSurface) error
func (*ZwpTextInputV3) SendPreeditHint ¶
func (obj *ZwpTextInputV3) SendPreeditHint(start uint32, end uint32, hint ZwpTextInputV3PreeditHint) error
func (*ZwpTextInputV3) SendPreeditString ¶
func (obj *ZwpTextInputV3) SendPreeditString(text *string, cursorBegin int32, cursorEnd int32) error
type ZwpTextInputV3Action ¶
type ZwpTextInputV3Action uint32
const ( ZwpTextInputV3ActionNone ZwpTextInputV3Action = 0 ZwpTextInputV3ActionSubmit ZwpTextInputV3Action = 1 )
func (ZwpTextInputV3Action) Valid ¶
func (v ZwpTextInputV3Action) Valid(version uint32) bool
type ZwpTextInputV3ChangeCause ¶
type ZwpTextInputV3ChangeCause uint32
const ( ZwpTextInputV3ChangeCauseInputMethod ZwpTextInputV3ChangeCause = 0 ZwpTextInputV3ChangeCauseOther ZwpTextInputV3ChangeCause = 1 )
func (ZwpTextInputV3ChangeCause) Valid ¶
func (v ZwpTextInputV3ChangeCause) Valid(version uint32) bool
type ZwpTextInputV3ContentHint ¶
type ZwpTextInputV3ContentHint uint32
const ( ZwpTextInputV3ContentHintNone ZwpTextInputV3ContentHint = 0 ZwpTextInputV3ContentHintCompletion ZwpTextInputV3ContentHint = 1 ZwpTextInputV3ContentHintSpellcheck ZwpTextInputV3ContentHint = 2 ZwpTextInputV3ContentHintAutoCapitalization ZwpTextInputV3ContentHint = 4 ZwpTextInputV3ContentHintLowercase ZwpTextInputV3ContentHint = 8 ZwpTextInputV3ContentHintUppercase ZwpTextInputV3ContentHint = 16 ZwpTextInputV3ContentHintTitlecase ZwpTextInputV3ContentHint = 32 ZwpTextInputV3ContentHintHiddenText ZwpTextInputV3ContentHint = 64 ZwpTextInputV3ContentHintSensitiveData ZwpTextInputV3ContentHint = 128 ZwpTextInputV3ContentHintLatin ZwpTextInputV3ContentHint = 256 ZwpTextInputV3ContentHintMultiline ZwpTextInputV3ContentHint = 512 ZwpTextInputV3ContentHintOnScreenInputProvided ZwpTextInputV3ContentHint = 1024 ZwpTextInputV3ContentHintNoEmoji ZwpTextInputV3ContentHint = 2048 ZwpTextInputV3ContentHintPreeditShown ZwpTextInputV3ContentHint = 4096 )
func (ZwpTextInputV3ContentHint) Has ¶
func (v ZwpTextInputV3ContentHint) Has(flag ZwpTextInputV3ContentHint) bool
func (ZwpTextInputV3ContentHint) Valid ¶
func (v ZwpTextInputV3ContentHint) Valid(version uint32) bool
type ZwpTextInputV3ContentPurpose ¶
type ZwpTextInputV3ContentPurpose uint32
const ( ZwpTextInputV3ContentPurposeNormal ZwpTextInputV3ContentPurpose = 0 ZwpTextInputV3ContentPurposeAlpha ZwpTextInputV3ContentPurpose = 1 ZwpTextInputV3ContentPurposeDigits ZwpTextInputV3ContentPurpose = 2 ZwpTextInputV3ContentPurposeNumber ZwpTextInputV3ContentPurpose = 3 ZwpTextInputV3ContentPurposePhone ZwpTextInputV3ContentPurpose = 4 ZwpTextInputV3ContentPurposeURL ZwpTextInputV3ContentPurpose = 5 ZwpTextInputV3ContentPurposeEmail ZwpTextInputV3ContentPurpose = 6 ZwpTextInputV3ContentPurposeName ZwpTextInputV3ContentPurpose = 7 ZwpTextInputV3ContentPurposePassword ZwpTextInputV3ContentPurpose = 8 ZwpTextInputV3ContentPurposePin ZwpTextInputV3ContentPurpose = 9 ZwpTextInputV3ContentPurposeDate ZwpTextInputV3ContentPurpose = 10 ZwpTextInputV3ContentPurposeTime ZwpTextInputV3ContentPurpose = 11 ZwpTextInputV3ContentPurposeDatetime ZwpTextInputV3ContentPurpose = 12 ZwpTextInputV3ContentPurposeTerminal ZwpTextInputV3ContentPurpose = 13 )
func (ZwpTextInputV3ContentPurpose) Valid ¶
func (v ZwpTextInputV3ContentPurpose) Valid(version uint32) bool
type ZwpTextInputV3Error ¶
type ZwpTextInputV3Error uint32
const (
ZwpTextInputV3ErrorInvalidAction ZwpTextInputV3Error = 0
)
func (ZwpTextInputV3Error) Valid ¶
func (v ZwpTextInputV3Error) Valid(version uint32) bool
type ZwpTextInputV3Handler ¶
type ZwpTextInputV3Handler interface {
Destroy(obj *ZwpTextInputV3) error
Enable(obj *ZwpTextInputV3) error
Disable(obj *ZwpTextInputV3) error
SetSurroundingText(obj *ZwpTextInputV3, text string, cursor int32, anchor int32) error
SetTextChangeCause(obj *ZwpTextInputV3, cause ZwpTextInputV3ChangeCause) error
SetContentType(obj *ZwpTextInputV3, hint ZwpTextInputV3ContentHint, purpose ZwpTextInputV3ContentPurpose) error
SetCursorRectangle(obj *ZwpTextInputV3, x int32, y int32, width int32, height int32) error
Commit(obj *ZwpTextInputV3) error
SetAvailableActions(obj *ZwpTextInputV3, availableActions []byte) error
ShowInputPanel(obj *ZwpTextInputV3) error
HideInputPanel(obj *ZwpTextInputV3) error
}
type ZwpTextInputV3PreeditHint ¶
type ZwpTextInputV3PreeditHint uint32
const ( ZwpTextInputV3PreeditHintWhole ZwpTextInputV3PreeditHint = 1 ZwpTextInputV3PreeditHintSelection ZwpTextInputV3PreeditHint = 2 ZwpTextInputV3PreeditHintPrediction ZwpTextInputV3PreeditHint = 3 ZwpTextInputV3PreeditHintPrefix ZwpTextInputV3PreeditHint = 4 ZwpTextInputV3PreeditHintSuffix ZwpTextInputV3PreeditHint = 5 ZwpTextInputV3PreeditHintSpellingError ZwpTextInputV3PreeditHint = 6 ZwpTextInputV3PreeditHintComposeError ZwpTextInputV3PreeditHint = 7 )
func (ZwpTextInputV3PreeditHint) Valid ¶
func (v ZwpTextInputV3PreeditHint) Valid(version uint32) bool
Click to show internal directories.
Click to hide internal directories.