Documentation ¶
Index ¶
- func NewWatcher(file string, res ResourceDict, handler func(ObjectDict)) *fsnotify.Watcher
- type Attributes
- func (a *Attributes) Contains(key string) bool
- func (a *Attributes) ContainsAny(keys []string) bool
- func (a *Attributes) ContainsStyle() bool
- func (a *Attributes) GetBool(key string) bool
- func (a *Attributes) GetColor(key string) color.Color
- func (a *Attributes) GetFloat32(key string) float32
- func (a *Attributes) GetFloat64(key string) float64
- func (a *Attributes) GetImage(key string, res ResourceDict) *canvas.Image
- func (a *Attributes) GetInt(key string) int
- func (a *Attributes) GetList(key string) []string
- func (a *Attributes) GetPosition() fyne.Position
- func (a *Attributes) GetResource(key string, res ResourceDict) fyne.Resource
- func (a *Attributes) GetSize() fyne.Size
- func (a *Attributes) GetString(key string) string
- func (a *Attributes) GetTextAlignment() fyne.TextAlign
- func (a *Attributes) GetTextStyle() fyne.TextStyle
- type ObjectDict
- type ObjectTag
- type ResourceDict
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWatcher ¶
func NewWatcher(file string, res ResourceDict, handler func(ObjectDict)) *fsnotify.Watcher
Types ¶
type Attributes ¶
func NewAttributesFromXML ¶
func NewAttributesFromXML(attrs []xml.Attr) Attributes
func (*Attributes) Contains ¶
func (a *Attributes) Contains(key string) bool
func (*Attributes) ContainsAny ¶
func (a *Attributes) ContainsAny(keys []string) bool
func (*Attributes) ContainsStyle ¶
func (a *Attributes) ContainsStyle() bool
func (*Attributes) GetBool ¶
func (a *Attributes) GetBool(key string) bool
func (*Attributes) GetFloat32 ¶
func (a *Attributes) GetFloat32(key string) float32
func (*Attributes) GetFloat64 ¶
func (a *Attributes) GetFloat64(key string) float64
func (*Attributes) GetImage ¶
func (a *Attributes) GetImage(key string, res ResourceDict) *canvas.Image
func (*Attributes) GetInt ¶
func (a *Attributes) GetInt(key string) int
func (*Attributes) GetList ¶
func (a *Attributes) GetList(key string) []string
func (*Attributes) GetPosition ¶
func (a *Attributes) GetPosition() fyne.Position
func (*Attributes) GetResource ¶
func (a *Attributes) GetResource(key string, res ResourceDict) fyne.Resource
func (*Attributes) GetSize ¶
func (a *Attributes) GetSize() fyne.Size
func (*Attributes) GetString ¶
func (a *Attributes) GetString(key string) string
func (*Attributes) GetTextAlignment ¶
func (a *Attributes) GetTextAlignment() fyne.TextAlign
func (*Attributes) GetTextStyle ¶
func (a *Attributes) GetTextStyle() fyne.TextStyle
type ObjectDict ¶
type ObjectDict map[string]fyne.CanvasObject
func LoadFromFile ¶
func LoadFromFile(file string, res ResourceDict) (ObjectDict, error)
func LoadFromString ¶
func LoadFromString(content []byte, res ResourceDict) (ObjectDict, error)
func (ObjectDict) Get ¶
func (s ObjectDict) Get(key string) fyne.CanvasObject
func (ObjectDict) GetTop ¶
func (s ObjectDict) GetTop() fyne.CanvasObject
type ObjectTag ¶
type ObjectTag struct { Tag string Attributes Attributes Object fyne.CanvasObject }
type ResourceDict ¶
type ResourceDict map[string]fyne.Resource
Click to show internal directories.
Click to hide internal directories.