subtypes

package
v0.0.0-...-0793f5b Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ActionNextFrame
	ActionPreviousFrame
	ActionPlay
	ActionStop
	ActionToggleQuality
	ActionStopSounds
	ActionAdd
	ActionSubtract
	ActionMultiply
	ActionDivide
	ActionEquals
	ActionLess
	ActionAnd
	ActionOr
	ActionNot
	ActionStringEquals
	ActionStringLength
	ActionStringAdd
	ActionStringExtract
	ActionPop
	ActionToInteger

	ActionGetVariable
	ActionSetVariable

	ActionSetTarget2

	ActionGetProperty
	ActionSetProperty
	ActionCloneSprite
	ActionRemoveSprite
	ActionTrace
	ActionStartDrag
	ActionEndDrag
	ActionStringLess

	ActionRandomNumber
	ActionMBStringLength
	ActionCharToAscii
	ActionAsciiToChar
	ActionGetTime
	ActionMBStringExtract
	ActionMBCharToAscii
	ActionMBAsciiToChar
)

TODO: complete lists

View Source
const (
	ActionGotoFrame
	ActionGetURL

	ActionWaitForFrame // 0x8A
	ActionSetTarget
	ActionGoToLabel
	ActionWaitForFrame2

	ActionPush

	ActionJump
	ActionGetURL2

	ActionIf
	ActionCall
	ActionGotoFrame2
)
View Source
const (
	FilterDropShadow = FilterId(iota)
	FilterBlur
	FilterGlow
	FilterBevel
	FilterGradientGlow
	FilterConvolution
	FilterColorMatrix
	FilterGradientBevel
)
View Source
const (
	GradientSpreadPad = GradientSpreadMode(iota)
	GradientSpreadReflect
	GradientSpreadRepeat
	GradientSpreadReserved
)
View Source
const (
	GradientInterpolationRGB = GradientInterpolationMode(iota)
	GradientInterpolationLinearRGB
	GradientInterpolationReserved2
	GradientInterpolationReserved3
)
View Source
const (
	RecordTypeEndShape = RecordType(iota)
	RecordTypeStyleChange
	RecordTypeStraightEdge
	RecordTypeCurvedEdge
)
View Source
const (
	FillStyleSolid = FillStyleType(0x00)

	FillStyleLinearGradient = FillStyleType(0x10)

	FillStyleRadialGradient      = FillStyleType(0x12)
	FillStyleFocalRadialGradient = FillStyleType(0x13)

	FillStyleRepeatingBitmap            = FillStyleType(0x40)
	FillStyleClippedBitmap              = FillStyleType(0x41)
	FillStyleNonSmoothedRepeatingBitmap = FillStyleType(0x42)
	FillStyleNonSmoothedClippedBitmap   = FillStyleType(0x43)
)

Variables

This section is empty.

Functions

func DecodeImageBits

func DecodeImageBits(data []byte, width, height int, format ImageBitsFormat, paletteSize int, hasAlpha bool) (image.Image, error)

func DecodeImageBitsJPEG

func DecodeImageBitsJPEG(imageData []byte, alphaData []byte) (image.Image, error)

Types

type ACTIONRECORD

type ACTIONRECORD struct {
	ActionCode ActionCode
	Length     uint16  `swfCondition:"HasActionLength()"`
	Data       []uint8 `swfCount:"Length"`
	// contains filtered or unexported fields
}

func (*ACTIONRECORD) HasActionLength

func (a *ACTIONRECORD) HasActionLength(ctx types.ReaderContext) bool

type ActionCode

type ActionCode uint8

type BEVELFILTER

type BEVELFILTER struct {
	ShadowColor     types.RGBA
	HighLightColor  types.RGBA
	BlurX, BlurY    types.Fixed16
	Angle           types.Fixed16
	Distance        types.Fixed16
	Strength        types.Fixed8
	InnerShadow     bool
	Knockout        bool
	CompositeSource bool
	OnTop           bool
	Passes          uint8 `swfBits:",4"`
}

type BLURFILTER

type BLURFILTER struct {
	BlurX, BlurY types.Fixed16
	Passes       uint8 `swfBits:",5"`
	Reserved     uint8 `swfBits:",3"`
}

type CLIPACTIONRECORD

type CLIPACTIONRECORD struct {
	EventFlags       CLIPEVENTFLAGS
	ActionRecordSize uint32
	KeyCode          uint8
	Actions          []ACTIONRECORD
}

func (*CLIPACTIONRECORD) SWFRead

func (clipRecord *CLIPACTIONRECORD) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type CLIPACTIONRECORDS

type CLIPACTIONRECORDS []CLIPACTIONRECORD

func (*CLIPACTIONRECORDS) SWFRead

func (records *CLIPACTIONRECORDS) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type CLIPACTIONS

type CLIPACTIONS struct {
	Reserved      uint16
	AllEventFlags CLIPEVENTFLAGS
	Records       CLIPACTIONRECORDS
}

type CLIPEVENTFLAGS

type CLIPEVENTFLAGS struct {
	KeyUp      bool
	KeyDown    bool
	MouseUp    bool
	MouseDown  bool
	MouseMove  bool
	Unload     bool
	EnterFrame bool
	Load       bool

	DragOver       bool
	RollOut        bool
	RollOver       bool
	ReleaseOutside bool
	Release        bool
	Press          bool
	Initialize     bool
	EventData      bool

	Reserved1 uint8 `swfBits:",5" swfCondition:"IsSWF6OrGreater()"`
	Construct bool  `swfCondition:"IsSWF6OrGreater()"`
	KeyPress  bool  `swfCondition:"IsSWF6OrGreater()"`
	DragOut   bool  `swfCondition:"IsSWF6OrGreater()"`

	Reserved2 uint8 `swfBits:",8" swfCondition:"IsSWF6OrGreater()"`
	// contains filtered or unexported fields
}

func (*CLIPEVENTFLAGS) IsEnd

func (f *CLIPEVENTFLAGS) IsEnd() bool

func (*CLIPEVENTFLAGS) IsSWF6OrGreater

func (f *CLIPEVENTFLAGS) IsSWF6OrGreater(ctx types.ReaderContext) bool

type COLORMATRIXFILTER

type COLORMATRIXFILTER struct {
	Matrix [20]float32
}

type CONVOLUTIONFILTER

type CONVOLUTIONFILTER struct {
	MatrixX, MatrixY uint8
	Divisor          float32
	Bias             float32
	Matrix           []float32 `swfCount:"MatrixSize()"`
	DefaultColor     types.RGBA
	Reserved         uint8 `swfBits:",6"`
	Clamp            bool
	PreserveAlpha    bool
	// contains filtered or unexported fields
}

func (*CONVOLUTIONFILTER) MatrixSize

func (f *CONVOLUTIONFILTER) MatrixSize(ctx types.ReaderContext) uint64

type CurvedEdgeRecord

type CurvedEdgeRecord struct {
	NumBits uint8 `swfBits:",4"`

	ControlDeltaX, ControlDeltaY types.Twip `swfBits:"NumBits+2,signed"`
	AnchorDeltaX, AnchorDeltaY   types.Twip `swfBits:"NumBits+2,signed"`
	// contains filtered or unexported fields
}

func (*CurvedEdgeRecord) RecordType

func (s *CurvedEdgeRecord) RecordType() RecordType

func (*CurvedEdgeRecord) SWFRead

func (s *CurvedEdgeRecord) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type DROPSHADOWFILTER

type DROPSHADOWFILTER struct {
	DropShadowColor types.RGBA
	BlurX, BlurY    types.Fixed16
	Angle           types.Fixed16
	Distance        types.Fixed16
	Strength        types.Fixed8
	InnerShadow     bool
	Knockout        bool
	CompositeSource bool
	Passes          uint8 `swfBits:",5"`
}

type EndShapeRecord

type EndShapeRecord struct {
}

func (*EndShapeRecord) RecordType

func (s *EndShapeRecord) RecordType() RecordType

type FILLSTYLE

type FILLSTYLE struct {
	FillStyleType FillStyleType

	Color types.Color `swfCondition:"HasRGB()"`

	GradientMatrix types.MATRIX  `swfCondition:"HasGradientMatrix()"`
	Gradient       GRADIENT      `swfCondition:"HasGradient()"`
	FocalGradient  FOCALGRADIENT `swfCondition:"HasFocalGradient()"`

	BitmapId     uint16       `swfCondition:"HasBitmap()"`
	BitmapMatrix types.MATRIX `swfCondition:"HasBitmap()"`
	// contains filtered or unexported fields
}

func (*FILLSTYLE) HasBitmap

func (s *FILLSTYLE) HasBitmap(ctx types.ReaderContext) bool

func (*FILLSTYLE) HasFocalGradient

func (s *FILLSTYLE) HasFocalGradient(ctx types.ReaderContext) bool

func (*FILLSTYLE) HasGradient

func (s *FILLSTYLE) HasGradient(ctx types.ReaderContext) bool

func (*FILLSTYLE) HasGradientMatrix

func (s *FILLSTYLE) HasGradientMatrix(ctx types.ReaderContext) bool

func (*FILLSTYLE) HasRGB

func (s *FILLSTYLE) HasRGB(ctx types.ReaderContext) bool

func (*FILLSTYLE) SWFDefault

func (s *FILLSTYLE) SWFDefault(ctx types.ReaderContext)

type FILLSTYLEARRAY

type FILLSTYLEARRAY struct {
	FillStyleCount         uint8
	FillStyleCountExtended uint16      `swfCondition:"HasFillStyleCountExtended()"`
	FillStyles             []FILLSTYLE `swfCount:"FillStylesLength()"`
	// contains filtered or unexported fields
}

func (*FILLSTYLEARRAY) FillStylesLength

func (t *FILLSTYLEARRAY) FillStylesLength(ctx types.ReaderContext) uint64

func (*FILLSTYLEARRAY) HasFillStyleCountExtended

func (t *FILLSTYLEARRAY) HasFillStyleCountExtended(ctx types.ReaderContext) bool

type FILTER

type FILTER struct {
	ID   FilterId
	Data any
}

func (*FILTER) SWFRead

func (f *FILTER) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type FILTERLIST

type FILTERLIST struct {
	NumberOfFilters uint8
	Filters         []FILTER `swfCount:"NumberOfFilters"`
	// contains filtered or unexported fields
}

type FOCALGRADIENT

type FOCALGRADIENT struct {
	SpreadMode        GradientSpreadMode        `swfBits:",2"`
	InterpolationMode GradientInterpolationMode `swfBits:",2"`
	NumGradients      uint8                     `swfBits:",4"`
	Records           []GRADRECORD              `swfCount:"NumGradients"`
	FocalPoint        types.Fixed8

	GradientCheck struct{} `swfCondition:"GradientCheckField()"`
	// contains filtered or unexported fields
}

func (*FOCALGRADIENT) GradientCheckField

func (g *FOCALGRADIENT) GradientCheckField(ctx types.ReaderContext) bool

type FillStyleType

type FillStyleType uint8

func (*FillStyleType) SWFRead

func (t *FillStyleType) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type FilterId

type FilterId uint8

type GLOWFILTER

type GLOWFILTER struct {
	GlowColor       types.RGBA
	BlurX, BlurY    types.Fixed16
	Strength        types.Fixed8
	InnerGlob       bool
	Knockout        bool
	CompositeSource bool
	Passes          uint8 `swfBits:",5"`
}

type GLYPHENTRY

type GLYPHENTRY struct {
	Index   uint32 `swfBits:"GlyphBits"`
	Advance int32  `swfBits:"AdvanceBits,signed"`
}

type GRADIENT

type GRADIENT struct {
	SpreadMode        GradientSpreadMode        `swfBits:",2"`
	InterpolationMode GradientInterpolationMode `swfBits:",2"`
	NumGradients      uint8                     `swfBits:",4"`
	Records           []GRADRECORD              `swfCount:"NumGradients"`

	GradientCheck struct{} `swfCondition:"GradientCheckField()"`
	// contains filtered or unexported fields
}

func (*GRADIENT) GradientCheckField

func (g *GRADIENT) GradientCheckField(ctx types.ReaderContext) bool

type GRADIENTBEVELFILTER

type GRADIENTBEVELFILTER struct {
	NumColors       uint8
	GradientColors  []types.RGBA `swfCount:"NumColors"`
	GradientRatio   []uint8      `swfCount:"NumColors"`
	BlurX, BlurY    types.Fixed16
	Angle           types.Fixed16
	Distance        types.Fixed16
	Strength        types.Fixed8
	InnerShadow     bool
	Knockout        bool
	CompositeSource bool
	OnTop           bool
	Passes          uint8 `swfBits:",4"`
	// contains filtered or unexported fields
}

type GRADIENTGLOWFILTER

type GRADIENTGLOWFILTER struct {
	NumColors       uint8
	GradientColors  []types.RGBA `swfCount:"NumColors"`
	GradientRatio   []uint8      `swfCount:"NumColors"`
	BlurX, BlurY    types.Fixed16
	Angle           types.Fixed16
	Distance        types.Fixed16
	Strength        types.Fixed8
	InnerShadow     bool
	Knockout        bool
	CompositeSource bool
	OnTop           bool
	Passes          uint8 `swfBits:",4"`
	// contains filtered or unexported fields
}

type GRADRECORD

type GRADRECORD struct {
	Ratio uint8
	Color types.Color
}

func (*GRADRECORD) SWFDefault

func (g *GRADRECORD) SWFDefault(ctx types.ReaderContext)

type GradientInterpolationMode

type GradientInterpolationMode uint8

type GradientSpreadMode

type GradientSpreadMode uint8

type ImageBitsFormat

type ImageBitsFormat uint8
const (
	ImageBitsFormatPaletted ImageBitsFormat = 3
	ImageBitsFormatRGB15    ImageBitsFormat = 4
	ImageBitsFormatRGB32    ImageBitsFormat = 5
)

type KERNINGRECORD

type KERNINGRECORD struct {
	KerningCodeLeft8   uint8  `swfCondition:"!Flag.WideCodes"`
	KerningCodeLeft16  uint16 `swfCondition:"Flag.WideCodes"`
	KerningCodeRight8  uint8  `swfCondition:"!Flag.WideCodes"`
	KerningCodeRight16 uint16 `swfCondition:"Flag.WideCodes"`
	KerningAdjustment  int16
}

type LINESTYLE

type LINESTYLE struct {
	Width uint16
	Color types.Color
}

func (*LINESTYLE) SWFDefault

func (s *LINESTYLE) SWFDefault(ctx types.ReaderContext)

type LINESTYLE2

type LINESTYLE2 struct {
	Width uint16
	Flag  struct {
		StartCapStyle      uint8 `swfBits:",2"`
		JoinStyle          uint8 `swfBits:",2"`
		HasFill            bool
		NoHScale, NoVScale bool
		PixelHinting       bool
		Reserved           uint8 `swfBits:",5"`
		NoClose            bool
		EndCapStyle        uint8 `swfBits:",2"`
	}
	MitterLimitFactor uint16     `swfCondition:"HasMitterLimitFactor()"`
	Color             types.RGBA `swfCondition:"HasColor()"`
	FillType          FILLSTYLE  `swfCondition:"Flag.HasFill"`
	// contains filtered or unexported fields
}

func (*LINESTYLE2) HasColor

func (t *LINESTYLE2) HasColor(ctx types.ReaderContext) bool

func (*LINESTYLE2) HasMitterLimitFactor

func (t *LINESTYLE2) HasMitterLimitFactor(ctx types.ReaderContext) bool

type LINESTYLEARRAY

type LINESTYLEARRAY struct {
	LineStyleCount         uint8
	LineStyleCountExtended uint16       `swfCondition:"HasLineStyleCountExtended()"`
	LineStyles             []LINESTYLE  `swfCondition:"!HasLineStyles2()" swfCount:"LineStylesLength()"`
	LineStyles2            []LINESTYLE2 `swfCondition:"HasLineStyles2()" swfCount:"LineStylesLength()"`
	// contains filtered or unexported fields
}

func (*LINESTYLEARRAY) HasLineStyleCountExtended

func (t *LINESTYLEARRAY) HasLineStyleCountExtended(ctx types.ReaderContext) bool

func (*LINESTYLEARRAY) HasLineStyles2

func (t *LINESTYLEARRAY) HasLineStyles2(ctx types.ReaderContext) bool

func (*LINESTYLEARRAY) LineStylesLength

func (t *LINESTYLEARRAY) LineStylesLength(ctx types.ReaderContext) uint64

type MORPHFILLSTYLE

type MORPHFILLSTYLE struct {
	FillStyleType FillStyleType

	StartColor, EndColor types.RGBA `swfCondition:"HasRGB()"`

	StartGradientMatrix, EndGradientMatrix types.MATRIX  `swfCondition:"HasGradientMatrix()"`
	Gradient                               MORPHGRADIENT `swfCondition:"HasGradient()"`

	BitmapId                           uint16       `swfCondition:"HasBitmap()"`
	StartBitmapMatrix, EndBitmapMatrix types.MATRIX `swfCondition:"HasBitmap()"`
	// contains filtered or unexported fields
}

func (*MORPHFILLSTYLE) HasBitmap

func (s *MORPHFILLSTYLE) HasBitmap(ctx types.ReaderContext) bool

func (*MORPHFILLSTYLE) HasGradient

func (s *MORPHFILLSTYLE) HasGradient(ctx types.ReaderContext) bool

func (*MORPHFILLSTYLE) HasGradientMatrix

func (s *MORPHFILLSTYLE) HasGradientMatrix(ctx types.ReaderContext) bool

func (*MORPHFILLSTYLE) HasRGB

func (s *MORPHFILLSTYLE) HasRGB(ctx types.ReaderContext) bool

type MORPHFILLSTYLEARRAY

type MORPHFILLSTYLEARRAY struct {
	FillStyleCount         uint8
	FillStyleCountExtended uint16           `swfCondition:"HasFillStyleCountExtended()"`
	FillStyles             []MORPHFILLSTYLE `swfCount:"FillStylesLength()"`
	// contains filtered or unexported fields
}

func (*MORPHFILLSTYLEARRAY) FillStylesLength

func (t *MORPHFILLSTYLEARRAY) FillStylesLength(ctx types.ReaderContext) uint64

func (*MORPHFILLSTYLEARRAY) HasFillStyleCountExtended

func (t *MORPHFILLSTYLEARRAY) HasFillStyleCountExtended(ctx types.ReaderContext) bool

type MORPHGRADIENT

type MORPHGRADIENT struct {
	NumGradients uint8
	Records      []MORPHGRADRECORD `swfCount:"NumGradients"`
	// contains filtered or unexported fields
}

func (MORPHGRADIENT) EndGradient

func (g MORPHGRADIENT) EndGradient() (g2 GRADIENT)

func (MORPHGRADIENT) StartGradient

func (g MORPHGRADIENT) StartGradient() (g2 GRADIENT)

type MORPHGRADRECORD

type MORPHGRADRECORD struct {
	StartRatio uint8
	StartColor types.RGBA
	EndRatio   uint8
	EndColor   types.RGBA
}

type MORPHLINESTYLE

type MORPHLINESTYLE struct {
	StartWidth uint16
	StartColor types.RGBA
	EndWidth   uint16
	EndColor   types.RGBA
}

type MORPHLINESTYLE2

type MORPHLINESTYLE2 struct {
	StartWidth, EndWidth uint16
	Flag                 struct {
		StartCapStyle      uint8 `swfBits:",2"`
		JoinStyle          uint8 `swfBits:",2"`
		HasFill            bool
		NoHScale, NoVScale bool
		PixelHinting       bool
		Reserved           uint8 `swfBits:",5"`
		NoClose            bool
		EndCapStyle        uint8 `swfBits:",2"`
	}
	MitterLimitFactor    uint16         `swfCondition:"HasMitterLimitFactor()"`
	StartColor, EndColor types.RGBA     `swfCondition:"!Flag.HasFill"`
	FillType             MORPHFILLSTYLE `swfCondition:"Flag.HasFill"`
	// contains filtered or unexported fields
}

func (*MORPHLINESTYLE2) HasMitterLimitFactor

func (t *MORPHLINESTYLE2) HasMitterLimitFactor(ctx types.ReaderContext) bool

type MORPHLINESTYLEARRAY

type MORPHLINESTYLEARRAY struct {
	LineStyleCount         uint8
	LineStyleCountExtended uint16            `swfCondition:"HasLineStyleCountExtended()"`
	LineStyles             []MORPHLINESTYLE  `swfCondition:"!HasLineStyles2()" swfCount:"LineStylesLength()"`
	LineStyles2            []MORPHLINESTYLE2 `swfCondition:"HasLineStyles2()" swfCount:"LineStylesLength()"`
	// contains filtered or unexported fields
}

func (*MORPHLINESTYLEARRAY) HasLineStyleCountExtended

func (t *MORPHLINESTYLEARRAY) HasLineStyleCountExtended(ctx types.ReaderContext) bool

func (*MORPHLINESTYLEARRAY) HasLineStyles2

func (t *MORPHLINESTYLEARRAY) HasLineStyles2(ctx types.ReaderContext) bool

func (*MORPHLINESTYLEARRAY) LineStylesLength

func (t *MORPHLINESTYLEARRAY) LineStylesLength(ctx types.ReaderContext) uint64

type RecordType

type RecordType uint8

type SHAPE

type SHAPE struct {
	FillBits uint8 `swfBits:",4"`
	LineBits uint8 `swfBits:",4"`
	Records  SHAPERECORDS
	// contains filtered or unexported fields
}

type SHAPERECORD

type SHAPERECORD interface {
	RecordType() RecordType
}

type SHAPERECORDS

type SHAPERECORDS []SHAPERECORD

func (*SHAPERECORDS) SWFRead

func (records *SHAPERECORDS) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type SHAPEWITHSTYLE

type SHAPEWITHSTYLE struct {
	FillStyles FILLSTYLEARRAY
	LineStyles LINESTYLEARRAY
	FillBits   uint8 `swfBits:",4"`
	LineBits   uint8 `swfBits:",4"`
	Records    SHAPERECORDS
	// contains filtered or unexported fields
}

type StraightEdgeRecord

type StraightEdgeRecord struct {
	NumBits uint8 `swfBits:",4"`

	GeneralLine bool
	VertLine    bool `swfCondition:"HasVertLine()"`

	DeltaX types.Twip `swfBits:"NumBits+2,signed" swfCondition:"HasDeltaX()"`
	DeltaY types.Twip `swfBits:"NumBits+2,signed" swfCondition:"HasDeltaY()"`
	// contains filtered or unexported fields
}

func (*StraightEdgeRecord) HasDeltaX

func (s *StraightEdgeRecord) HasDeltaX(ctx types.ReaderContext) bool

func (*StraightEdgeRecord) HasDeltaY

func (s *StraightEdgeRecord) HasDeltaY(ctx types.ReaderContext) bool

func (*StraightEdgeRecord) HasVertLine

func (s *StraightEdgeRecord) HasVertLine(ctx types.ReaderContext) bool

func (*StraightEdgeRecord) RecordType

func (s *StraightEdgeRecord) RecordType() RecordType

func (*StraightEdgeRecord) SWFRead

func (s *StraightEdgeRecord) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type StyleChangeRecord

type StyleChangeRecord struct {
	Flag struct {
		NewStyles  bool
		LineStyle  bool
		FillStyle1 bool
		FillStyle0 bool
		MoveTo     bool
	}

	MoveBits               uint8          `swfBits:",5" swfCondition:"Flag.MoveTo"`
	MoveDeltaX, MoveDeltaY types.Twip     `swfBits:"MoveBits,signed" swfCondition:"Flag.MoveTo"`
	FillStyle0             uint16         `swfBits:"FillBits" swfCondition:"Flag.FillStyle0"`
	FillStyle1             uint16         `swfBits:"FillBits" swfCondition:"Flag.FillStyle1"`
	LineStyle              uint16         `swfBits:"LineBits" swfCondition:"Flag.LineStyle"`
	FillStyles             FILLSTYLEARRAY `swfFlags:"align" swfCondition:"Flag.NewStyles"`
	LineStyles             LINESTYLEARRAY `swfCondition:"Flag.NewStyles"`

	FillBits uint8 `swfBits:",4" swfCondition:"Flag.NewStyles"`
	LineBits uint8 `swfBits:",4" swfCondition:"Flag.NewStyles"`
	// contains filtered or unexported fields
}

func (*StyleChangeRecord) IsEnd

func (rec *StyleChangeRecord) IsEnd() bool

func (*StyleChangeRecord) RecordType

func (rec *StyleChangeRecord) RecordType() RecordType

func (*StyleChangeRecord) SWFRead

func (rec *StyleChangeRecord) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type TEXTRECORD

type TEXTRECORD struct {
	Flag struct {
		Type       bool  `swfFlags:"skip"`
		Reserved   uint8 `swfBits:",3"`
		HasFont    bool
		HasColor   bool
		HasYOffset bool
		HasXOffset bool
	}
	FontId       uint16      `swfCondition:"Flag.HasFont"`
	Color        types.Color `swfCondition:"Flag.HasColor"`
	XOffset      int16       `swfCondition:"Flag.HasXOffset"`
	YOffset      int16       `swfCondition:"Flag.HasYOffset"`
	TextHeight   uint16      `swfCondition:"Flag.HasFont"`
	GlyphCount   uint8
	GlyphEntries []GLYPHENTRY `swfCount:"GlyphCount"`
	GlyphBits    uint8        `swfFlags:"skip"`
	AdvanceBits  uint8        `swfFlags:"skip"`
	// contains filtered or unexported fields
}

func (*TEXTRECORD) SWFDefault

func (t *TEXTRECORD) SWFDefault(ctx types.ReaderContext)

type TEXTRECORDS

type TEXTRECORDS []TEXTRECORD

func (*TEXTRECORDS) SWFRead

func (records *TEXTRECORDS) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type ZONEDATA

type ZONEDATA struct {
	AlignmentCoordinate types.Float16
	Range               types.Float16
}

type ZONERECORD

type ZONERECORD struct {
	NumZoneData uint8
	ZoneData    []ZONEDATA `swfCount:"NumZoneData"`
	Reserved    uint8      `swfBits:",6"`
	MaskY       bool
	MaskX       bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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