descriptor

package
v0.0.0-...-e22344b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReferenceOsKeyBlock

func NewReferenceOsKeyBlock() *referenceOsKeyBlock

Types

type Bool

type Bool struct {
	Value bool
}

func NewBool

func NewBool() *Bool

func (*Bool) Parse

func (Bool *Bool) Parse(file *os.File)

type Class

type Class struct {
	ClassIDName string
	ClassID     string
}

func NewClass

func NewClass() *Class

func (*Class) Parse

func (class *Class) Parse(file *os.File)

type Descriptor

type Descriptor struct {
	Version       uint32
	UnicodeString string
	ClassID       string
	ItemCount     uint32
	Items         []*descriptorItem
}

Descriptor block in an image resource

func NewDescriptor

func NewDescriptor() *Descriptor

NewDescriptor creates a new descriptor struct

func (*Descriptor) GetTypeID

func (descriptor *Descriptor) GetTypeID() int

func (*Descriptor) Parse

func (descriptor *Descriptor) Parse(file *os.File)

Parse parses data from a descriptor block in a PSD file into a premade descriptor

type Double

type Double struct {
	Value float64
}

func NewDouble

func NewDouble() *Double

func (*Double) Parse

func (double *Double) Parse(file *os.File) error

type Enum

type Enum struct {
	Type  string
	Value string
}

func NewEnum

func NewEnum() *Enum

func (*Enum) Parse

func (enum *Enum) Parse(file *os.File)

type EnumReference

type EnumReference struct {
	ClassIDName string
	ClassID     string
	TypeID      string
	Enum        string
}

func NewEnumReference

func NewEnumReference() *EnumReference

func (*EnumReference) Parse

func (enumReference *EnumReference) Parse(file *os.File)

type Integer

type Integer struct {
	Value uint32
}

func NewInteger

func NewInteger() *Integer

func (*Integer) Parse

func (integer *Integer) Parse(file *os.File)

type List

type List struct {
	NumItems uint32
	Items    []OsKeyBlock
}

List is defined here to prevent cyclic imports to types.go

func NewList

func NewList() *List

func (*List) Parse

func (list *List) Parse(file *os.File)

type Name

type Name struct {
	Value string
}

func NewName

func NewName() *Name

func (*Name) Parse

func (name *Name) Parse(file *os.File)

type Offset

type Offset struct {
	ClassIDName string
	ClassID     string
	Value       uint32
}

func NewOffset

func NewOffset() *Offset

func (*Offset) Parse

func (offset *Offset) Parse(file *os.File)

type OsKeyBlock

type OsKeyBlock interface {
	// contains filtered or unexported methods
}

type Property

type Property struct {
	ClassIDName string
	ClassID     string
	KeyID       string
}

func NewProperty

func NewProperty() *Property

func (*Property) Parse

func (property *Property) Parse(file *os.File)

type Reference

type Reference struct {
	ItemCount      uint32
	ReferenceItems []*ReferenceItem
}

func NewReference

func NewReference() *Reference

func (*Reference) Parse

func (reference *Reference) Parse(file *os.File)

type ReferenceItem

type ReferenceItem struct {
	OsTypeKey  string
	OsKeyBlock referenceOsKeyBlock
}

func (*ReferenceItem) Parse

func (referenceItem *ReferenceItem) Parse(file *os.File)

type Text

type Text struct {
	Value string
}

func NewText

func NewText() *Text

func (*Text) Parse

func (text *Text) Parse(file *os.File)

type Unitfloat

type Unitfloat struct {
	UnitType string
	// contains filtered or unexported fields
}

func NewUnitFloat

func NewUnitFloat() *Unitfloat

func (*Unitfloat) Parse

func (unitFloat *Unitfloat) Parse(file *os.File) error

Jump to

Keyboard shortcuts

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