Documentation ¶
Index ¶
- type UIText
- func (t *UIText) DrawUI(gb interfaces.IGameBase, screen *ebiten.Image)
- func (t *UIText) DrawUIPriority() float64
- func (t *UIText) GetFontFace() font.Face
- func (t *UIText) GetID() string
- func (t *UIText) GetOptions() *interfaces.FontOptions
- func (t *UIText) SetColor(fontColor color.Color)
- func (t *UIText) SetDPI(dpi float64) error
- func (t *UIText) SetOptions(fontOptions *interfaces.FontOptions) error
- func (t *UIText) SetSize(fontSize float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UIText ¶
type UIText struct { Transform interfaces.ITransform Text string Font *sfnt.Font Options *interfaces.FontOptions ID string // contains filtered or unexported fields }
func New ¶
func New(tf interfaces.ITransform, text string, f *sfnt.Font, fontSize float64) (*UIText, error)
func (*UIText) DrawUI ¶
func (t *UIText) DrawUI(gb interfaces.IGameBase, screen *ebiten.Image)
func (*UIText) DrawUIPriority ¶
func (*UIText) GetFontFace ¶
func (*UIText) GetOptions ¶
func (t *UIText) GetOptions() *interfaces.FontOptions
func (*UIText) SetOptions ¶
func (t *UIText) SetOptions(fontOptions *interfaces.FontOptions) error
Click to show internal directories.
Click to hide internal directories.