Setup PageInterface

This commit is contained in:
cuu
2018-06-17 13:28:30 +08:00
parent 1e862f61a1
commit 20ea392215
6 changed files with 430 additions and 35 deletions

View File

@@ -30,7 +30,8 @@ type IconItemInterface interface {
Coord() (int,int)
NewCoord(x,y int)
TotalWidth() int
Size() (int,int)
AddLabel(text string, fontobj *ttf.Font)
@@ -151,7 +152,11 @@ func (self *IconItem) NewCoord(x,y int) {
self.PosY = y
}
func (self *IconItem) NewCoord(x,y int) {
func (self *IconItem) TotalWidth() int {
}
func (self *IconItem) Size() (int,int) {
return self.Width,self.Height
}