Documentation ¶
Index ¶
- type FaviewNode
- type Flip
- type Image
- func (img *Image) Clone() *Image
- func (img *Image) Deserialize(s string) (bool, error)
- func (img *Image) FlipX() bool
- func (img *Image) FlipY() bool
- func (img *Image) Render(ctx context.Context) (*image.RGBA, error)
- func (img *Image) ScaledCanvasRect() image.Rectangle
- func (img *Image) Serialize() string
- func (img *Image) SetFlipX(v bool) bool
- func (img *Image) SetFlipY(v bool) bool
- type LayerManager
- func (m *LayerManager) Deserialize(s string, flip Flip, faviewRoot *FaviewNode) (bool, Flip, error)
- func (m *LayerManager) Normalize(flip Flip) bool
- func (m *LayerManager) NormalizeFlipOne(seqID int, flip Flip) bool
- func (m *LayerManager) NormalizeMap(layers map[int]*deserializingState, flip Flip) bool
- func (m *LayerManager) Serialize() string
- func (m *LayerManager) SetVisible(seqID int, visible bool, flip Flip) bool
- func (m *LayerManager) SetVisibleExclusive(seqID int, visible bool, flip Flip) bool
- type Node
- type PFV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FaviewNode ¶
type FaviewNode struct { NameNode *Node Items []*Node ItemNameList string SelectedIndex int LastModified time.Time Parent *FaviewNode Children []FaviewNode }
func (*FaviewNode) AllName ¶
func (fn *FaviewNode) AllName() []string
func (*FaviewNode) AllState ¶
func (fn *FaviewNode) AllState() []string
func (*FaviewNode) EnumItemNode ¶
func (fn *FaviewNode) EnumItemNode() []*FaviewNode
func (*FaviewNode) FullName ¶
func (fn *FaviewNode) FullName() string
func (*FaviewNode) Name ¶
func (fn *FaviewNode) Name() string
func (*FaviewNode) SelectedName ¶
func (fn *FaviewNode) SelectedName() string
func (*FaviewNode) SelectedState ¶
func (fn *FaviewNode) SelectedState() string
type Image ¶
type Image struct { FilePath *string FileHash uint32 LastAccess time.Time PSD *composite.Tree Layers *LayerManager Flip Flip InitialLayerState *string Modified bool Scale float32 OffsetX int OffsetY int PFV *PFV // contains filtered or unexported fields }
func (*Image) ScaledCanvasRect ¶
type LayerManager ¶
type LayerManager struct { Renderer *composite.Renderer Mapped map[int]*composite.Layer Flat []int FullPath map[string]int // int != SeqID ForceVisible map[int]struct{} Group map[int]*[]int FlipXPair flipPair FlipYPair flipPair FlipXYPair flipPair }
func NewLayerManager ¶
func NewLayerManager(tree *composite.Tree) *LayerManager
func (*LayerManager) Deserialize ¶
func (m *LayerManager) Deserialize(s string, flip Flip, faviewRoot *FaviewNode) (bool, Flip, error)
func (*LayerManager) Normalize ¶
func (m *LayerManager) Normalize(flip Flip) bool
func (*LayerManager) NormalizeFlipOne ¶
func (m *LayerManager) NormalizeFlipOne(seqID int, flip Flip) bool
func (*LayerManager) NormalizeMap ¶
func (m *LayerManager) NormalizeMap(layers map[int]*deserializingState, flip Flip) bool
func (*LayerManager) Serialize ¶
func (m *LayerManager) Serialize() string
func (*LayerManager) SetVisible ¶
func (m *LayerManager) SetVisible(seqID int, visible bool, flip Flip) bool
func (*LayerManager) SetVisibleExclusive ¶
func (m *LayerManager) SetVisibleExclusive(seqID int, visible bool, flip Flip) bool
Click to show internal directories.
Click to hide internal directories.