mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-20 19:02:58 +01:00
Settings,about
This commit is contained in:
@@ -10,6 +10,31 @@ import (
|
||||
"github.com/cuu/LauncherGo/sysgo"
|
||||
)
|
||||
|
||||
type Widget struct {
|
||||
PosX int
|
||||
PosY int
|
||||
Width int
|
||||
Height int
|
||||
}
|
||||
|
||||
func (self *Widget) Size() (int,int) {
|
||||
return self.Width,self.Height
|
||||
}
|
||||
|
||||
func (self *Widget) NewSize(w,h int) {
|
||||
self.Width = w
|
||||
self.Height = h
|
||||
}
|
||||
|
||||
func (self *Widget) Coord() (int,int) {
|
||||
return self.PosX,self.PosY
|
||||
}
|
||||
|
||||
func (self *Widget) NewCoord(x,y int) {
|
||||
self.PosX = x
|
||||
self.PosY = y
|
||||
}
|
||||
|
||||
|
||||
func Init() {
|
||||
font.Init()
|
||||
|
||||
Reference in New Issue
Block a user