Documentation
¶
Index ¶
- type Display
- func (d *Display) Clear() error
- func (d *Display) ClearFB()
- func (d *Display) CopyFile2FB(f string) error
- func (d *Display) DrawText(text string, size float64, x float64, y float64) error
- func (d *Display) Flush() error
- func (d *Display) OverlayText(text string, size float64, x float64, y float64, fgColor, bgColor color.Color) error
- func (d *Display) OverlayTextSimple(text string, size float64, x float64, y float64) error
- func (d *Display) OverlayTextWrapped(text string, size, x, y, maxWidth float64, fgColor, bgColor color.Color) error
- func (d *Display) OverlayTextWrappedSimple(text string, size, x, y, maxWidth float64) error
- func (d *Display) QR(text string, border bool, level qrcode.RecoveryLevel) error
- func (d *Display) String2() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
func (*Display) CopyFile2FB ¶ added in v0.220206.0
func (*Display) OverlayText ¶ added in v0.261016.0
func (d *Display) OverlayText(text string, size float64, x float64, y float64, fgColor, bgColor color.Color) error
OverlayText накладывает однострочный текст поверх буфера. Если bgColor == nil или его альфа-канал == 0, фон не рисуется.
func (*Display) OverlayTextSimple ¶ added in v0.261016.0
func (*Display) OverlayTextWrapped ¶ added in v0.261016.0
func (d *Display) OverlayTextWrapped(text string, size, x, y, maxWidth float64, fgColor, bgColor color.Color) error
OverlayTextWrapped накладывает многострочный текст с переносом по словам. maxWidth <= 0 -> использовать ширину от x до правого края дисплея. Если слово шире maxWidth, оно разбивается посимвольно.
func (*Display) OverlayTextWrappedSimple ¶ added in v0.261016.0
Click to show internal directories.
Click to hide internal directories.