mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 18:32:49 +01:00
keyboard
This commit is contained in:
@@ -11,6 +11,14 @@ import (
|
||||
|
||||
)
|
||||
|
||||
type TextItemInterface interface{
|
||||
GetBold() bool
|
||||
SetBold(bold bool)
|
||||
GetStr() string
|
||||
Draw()
|
||||
}
|
||||
|
||||
|
||||
type TextItem struct {
|
||||
IconItem
|
||||
Str string
|
||||
@@ -28,6 +36,18 @@ func NewTextItem() *TextItem {
|
||||
return p
|
||||
}
|
||||
|
||||
func (self *TextItem) GetBold() bool {
|
||||
return self.Bold
|
||||
}
|
||||
|
||||
func (self *TextItem) SetBold(bold bool) {
|
||||
self.Bold = bold
|
||||
}
|
||||
|
||||
func (self *TextItem) GetStr() string {
|
||||
return self.Str
|
||||
}
|
||||
|
||||
func (self *TextItem) Draw() {
|
||||
font.SetBold(self.FontObj,self.Bold)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user