Documentation ¶
Index ¶
- func GetGgStyleRGB(r int, g int, b int) (float64, float64, float64)
- func GetGgStyleRGBA(r int, g int, b int, a int) (float64, float64, float64, float64)
- func ImgToBytes(img image.Image, imgType ImageType) []byte
- func ImgWriteText(fileName string, text string, drawStringConfig DrawStringConfig, ...) (image.Image, error)
- func ImgWriteTextDefault(fileName string, text string, imgDir embed.FS, fontDir embed.FS) (image.Image, error)
- func UnicodeIndex(str, substr string) int
- type ContentItem
- type DrawStringConfig
- type ImageType
- type ImgDef
- type RGBA
- type Reply
- type ReplyType
- type SymbolMaps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGgStyleRGBA ¶
func ImgWriteText ¶
func ImgWriteTextDefault ¶
func UnicodeIndex ¶
Types ¶
type ContentItem ¶
type DrawStringConfig ¶
type ImgDef ¶
type ImgDef struct { Version string `json:"version"` Content []ContentItem `json:"content"` }
func (*ImgDef) GetMaps ¶
func (d *ImgDef) GetMaps() SymbolMaps
type SymbolMaps ¶
type SymbolMaps struct { EmojiMap map[string]mapset.Set EmotiMap map[string]mapset.Set KwordMap map[string]mapset.Set RoleMap map[string]mapset.Set }
func (*SymbolMaps) ContainsAny ¶
func (s *SymbolMaps) ContainsAny(key string) bool
func (*SymbolMaps) ContainsEmoji ¶
func (s *SymbolMaps) ContainsEmoji(key string) bool
func (*SymbolMaps) ContainsEmoti ¶
func (s *SymbolMaps) ContainsEmoti(key string) bool
func (*SymbolMaps) ContainsKword ¶
func (s *SymbolMaps) ContainsKword(key string) bool
func (*SymbolMaps) ContainsRole ¶
func (s *SymbolMaps) ContainsRole(key string) bool
Click to show internal directories.
Click to hide internal directories.