Documentation ¶
Index ¶
- type Entry
- type Store
- func (s *Store) Add(id string, e *Entry)
- func (s *Store) AddCanvasesToStamp(stamp *stamp.Stamp)
- func (s Store) Get(id string) (e *Entry, exists bool)
- func (s *Store) InheritFrom(other Store)
- func (s *Store) IsValid() (err error)
- func (s *Store) Resolve() (err error)
- func (s *Store) UnmarshalYAML(unmarshal func(interface{}) error) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
X, Y, X2, Y2 *float64
Parent *string
// contains filtered or unexported fields
}
Entry represents an entry in the 'canvas' section
type Store ¶
Store stores a set of preset entries
func (*Store) AddCanvasesToStamp ¶
AddCanvasesToStamp adds all included canvases to the provided stamp.
func (*Store) InheritFrom ¶
InheritFrom copies over entries from another Store that do not yet exist in the current Store.
func (*Store) IsValid ¶
IsValid validates whether all contained entries are valid. This should only be called after the store was resolved.
func (*Store) UnmarshalYAML ¶
UnmarshalYAML unmarshals a canvas Store
Click to show internal directories.
Click to hide internal directories.