Added X backend stub
This commit is contained in:
34
backends/x/x.go
Normal file
34
backends/x/x.go
Normal 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) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user