Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct {
// contains filtered or unexported fields
}
CardContent is a struct for generating card image @TODO CARDの数が多すぎる場合はPoolを検討する
func (Card) FormattedTexts ¶
func (c Card) FormattedTexts() []FormattedText
FormattedTexts returns formatted texts
type CardAdapter ¶
type ExportImageAdapter ¶
type FormattedText ¶
type FormattedText struct {
// contains filtered or unexported fields
}
FormattedText is a struct for text and style This value is used for generating Card
func NewFormattedText ¶
func NewFormattedText(sentence string, style *Style) FormattedText
func (*FormattedText) Point26_6 ¶
func (s *FormattedText) Point26_6() fixed.Point26_6
func (FormattedText) Style ¶
func (ft FormattedText) Style() Style
func (FormattedText) Text ¶
func (ft FormattedText) Text() string
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
type ImageAdapter ¶
type Style ¶
type Style struct {
// contains filtered or unexported fields
}
Style is a struct for text style definition can define position, fontsize and color
type StyleAdapter ¶
Click to show internal directories.
Click to hide internal directories.