ora

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeLayer = iota
	TypeGroup
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Item
	Children []*Item
}

type Item

type Item struct {
	Project *Ora
	Elem    *XMLElement
	Type    int
	Image   image.Image
}

func (*Item) Name

func (i *Item) Name() string

func (*Item) Opacity

func (i *Item) Opacity() float64

func (*Item) Visible

func (i *Item) Visible() bool

type Ora

type Ora struct {
	Children      []*Item
	ChildrenUUIDs map[string]*Item
	RootGroup     *Group
	ElemRoot      *XMLElement
	// contains filtered or unexported fields
}

func NewOra

func NewOra() *Ora

func (*Ora) GetByUUID

func (j *Ora) GetByUUID(uuid string) (*Item, error)

func (*Ora) Load

func (j *Ora) Load(reader io.ReaderAt, size int64) error

type XMLElement

type XMLElement struct {
	XMLName xml.Name
	Attr    []xml.Attr   `xml:",any,attr"`
	Content []byte       `xml:",innerxml"`
	Nodes   []XMLElement `xml:",any"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL