File: text_cursor_position.go

package info (click to toggle)
golang-github-dkolbly-wl 0.0~git20180220.b06f57e-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 336 kB
  • sloc: makefile: 3
file content (19 lines) | stat: -rw-r--r-- 401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package wl

const (
	_TEXT_CURSOR_POSITION_NOTIFY = 0
)

type TextCursorPosition struct {
	BaseProxy
}

func NewTextCursorPosition(conn *Context) *TextCursorPosition {
	ret := new(TextCursorPosition)
	conn.Register(ret)
	return ret
}

func (p *TextCursorPosition) Notify(surface *Surface, x float32, y float32) error {
	return p.Context().SendRequest(p, _TEXT_CURSOR_POSITION_NOTIFY, surface, x, y)
}