Documentation
¶
Index ¶
- func Entry(ch chan EntryResult, title, text, def string)
- func IsExist(path string) bool
- func Pick(ch chan PickResult, options ...func(*PickOption))
- func PickMultiple(ch chan PickMultipleResult, options ...func(*PickOption))
- func Question(ch chan QuestionResult, title, text string)
- func Read(ch chan ReadResult, path string)
- func ReadPng(path string) (img image.Image, err error)
- func ReadSprite(ch chan ReadSpriteResult, path string)
- func ReadSpriteSheet(ch chan ReadSpriteSheetResult, path string)
- func SelectDir(ch chan SelectDirResult)
- func WithName(name string) func(*PickOption)
- func WithPatterns(patterns []string) func(*PickOption)
- func WithToSave(defaultName string) func(*PickOption)
- func Write(ch chan error, bytes []byte, path string)
- func WritePng(img image.Image, path string) (err error)
- func WriteSpriteSheet(ch chan WriteSpriteSheetResult, sprites []sprite.Sprite, path string)
- type EntryResult
- type PickMultipleResult
- type PickOption
- type PickResult
- type QuestionResult
- type ReadResult
- type ReadSpriteResult
- type ReadSpriteSheetResult
- type SelectDirResult
- type WriteSpriteSheetResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Entry ¶
func Entry(ch chan EntryResult, title, text, def string)
func Pick ¶
func Pick(ch chan PickResult, options ...func(*PickOption))
func PickMultiple ¶
func PickMultiple(ch chan PickMultipleResult, options ...func(*PickOption))
func Question ¶
func Question(ch chan QuestionResult, title, text string)
func Read ¶
func Read(ch chan ReadResult, path string)
func ReadSprite ¶
func ReadSprite(ch chan ReadSpriteResult, path string)
func ReadSpriteSheet ¶
func ReadSpriteSheet(ch chan ReadSpriteSheetResult, path string)
func SelectDir ¶
func SelectDir(ch chan SelectDirResult)
func WithName ¶
func WithName(name string) func(*PickOption)
func WithPatterns ¶
func WithPatterns(patterns []string) func(*PickOption)
func WithToSave ¶
func WithToSave(defaultName string) func(*PickOption)
func WriteSpriteSheet ¶
func WriteSpriteSheet(ch chan WriteSpriteSheetResult, sprites []sprite.Sprite, path string)
Types ¶
type EntryResult ¶
type PickMultipleResult ¶
type PickOption ¶
type PickOption struct {
// contains filtered or unexported fields
}
type PickResult ¶
type QuestionResult ¶
type QuestionResult struct {
Answer bool
}
type ReadResult ¶
type ReadSpriteSheetResult ¶
type SelectDirResult ¶
Click to show internal directories.
Click to hide internal directories.