Added X backend stub

This commit is contained in:
2022-11-09 15:52:49 -05:00
parent e7b5136ea6
commit 0c5118b59a
6 changed files with 111 additions and 34 deletions

34
backends/x/x.go Normal file
View File

@@ -0,0 +1,34 @@
package x
import "image"
import "github.com/jezek/xgbutil"
// import "github.com/jezek/xgbutil/ewmh"
// import "github.com/jezek/xgbutil/xevent"
import "github.com/jezek/xgbutil/xwindow"
import "github.com/jezek/xgbutil/xgraphics"
import "git.tebibyte.media/sashakoshka/stone"
type Backend struct {
connection *xgbutil.Conn
window *xwindow.Window
canvas *xgraphics.Image
}
func (backend *Backend) Run (channel chan(stone.Event)) {
// TODO: setup
go backend.mainLoop(channel)
}
func (backend *Backend) mainLoop (channel chan(stone.Event)) {
}
func (backend *Backend) SetTitle (title string) {
}
func (backend *Backend) SetIcon (icons []image.Image) {
}