Changed readme template

Updated documentation
This commit is contained in:
Unknown
2018-07-05 16:07:10 -04:00
parent a0d6686cbc
commit 4294932b1f
11 changed files with 264 additions and 81 deletions

31
interfaces.go Normal file
View File

@@ -0,0 +1,31 @@
package ps
// Group represents a Document or LayerSet.
type Group interface {
Name() string
Parent() Group
SetParent(Group)
Path() string
ArtLayer(name string) *ArtLayer
LayerSet(name string) *LayerSet
ArtLayers() []*ArtLayer
LayerSets() []*LayerSet
MustExist(name string) Layer
MarshalJSON() ([]byte, error)
UnmarshalJSON(b []byte) error
}
// Layer represents an ArtLayer or LayerSet Object.
type Layer interface {
Bounds() [2][2]int
MarshalJSON() ([]byte, error)
Name() string
Parent() Group
Path() string
Refresh() error
SetParent(g Group)
SetPos(x, y int, bound string)
SetVisible(b bool) error
UnmarshalJSON(b []byte) error
Visible() bool
}