pub enum Tag<'a> {
Show 57 variants
ExportAssets(ExportAssets<'a>),
ScriptLimits {
max_recursion_depth: u16,
timeout_in_seconds: u16,
},
ShowFrame,
Protect(Option<&'a SwfStr>),
CsmTextSettings(CsmTextSettings),
DebugId(DebugId),
DefineBinaryData(DefineBinaryData<'a>),
DefineBits {
id: CharacterId,
jpeg_data: &'a [u8],
},
DefineBitsJpeg2 {
id: CharacterId,
jpeg_data: &'a [u8],
},
DefineBitsJpeg3(DefineBitsJpeg3<'a>),
DefineBitsLossless(DefineBitsLossless<'a>),
DefineButton(Box<Button<'a>>),
DefineButton2(Box<Button<'a>>),
DefineButtonColorTransform(ButtonColorTransform),
DefineButtonSound(Box<ButtonSounds>),
DefineEditText(Box<EditText<'a>>),
DefineFont(Box<FontV1>),
DefineFont2(Box<Font<'a>>),
DefineFont4(Font4<'a>),
DefineFontAlignZones {
id: CharacterId,
thickness: FontThickness,
zones: Vec<FontAlignZone>,
},
DefineFontInfo(Box<FontInfo<'a>>),
DefineFontName {
id: CharacterId,
name: &'a SwfStr,
copyright_info: &'a SwfStr,
},
DefineMorphShape(Box<DefineMorphShape>),
DefineScalingGrid {
id: CharacterId,
splitter_rect: Rectangle<Twips>,
},
DefineShape(Shape),
DefineSound(Box<Sound<'a>>),
DefineSprite(Sprite<'a>),
DefineText(Box<Text>),
DefineText2(Box<Text>),
DefineVideoStream(DefineVideoStream),
DoAbc(&'a [u8]),
DoAbc2(DoAbc2<'a>),
DoAction(DoAction<'a>),
DoInitAction {
id: CharacterId,
action_data: &'a [u8],
},
EnableDebugger(&'a SwfStr),
EnableTelemetry {
password_hash: &'a [u8],
},
End,
Metadata(&'a SwfStr),
ImportAssets {
url: &'a SwfStr,
imports: Vec<ExportedAsset<'a>>,
},
JpegTables(JpegTables<'a>),
NameCharacter(NameCharacter<'a>),
SetBackgroundColor(SetBackgroundColor),
SetTabIndex {
depth: Depth,
tab_index: u16,
},
SoundStreamBlock(SoundStreamBlock<'a>),
SoundStreamHead(Box<SoundStreamHead>),
SoundStreamHead2(Box<SoundStreamHead>),
StartSound(StartSound),
StartSound2 {
class_name: &'a SwfStr,
sound_info: Box<SoundInfo>,
},
SymbolClass(Vec<SymbolClassLink<'a>>),
PlaceObject(Box<PlaceObject<'a>>),
RemoveObject(RemoveObject),
VideoFrame(VideoFrame<'a>),
FileAttributes(FileAttributes),
FrameLabel(FrameLabel<'a>),
DefineSceneAndFrameLabelData(DefineSceneAndFrameLabelData<'a>),
ProductInfo(ProductInfo),
Unknown {
tag_code: u16,
data: &'a [u8],
},
}
Expand description
Represents a tag in an SWF file.
The SWF format is made up of a stream of tags. Each tag either defines a character (Graphic, Sound, MovieClip), or places/modifies an instance of these characters on the display list.
Variants§
ExportAssets(ExportAssets<'a>)
ScriptLimits
ShowFrame
Protect(Option<&'a SwfStr>)
CsmTextSettings(CsmTextSettings)
DebugId(DebugId)
DefineBinaryData(DefineBinaryData<'a>)
DefineBits
DefineBitsJpeg2
DefineBitsJpeg3(DefineBitsJpeg3<'a>)
DefineBitsLossless(DefineBitsLossless<'a>)
DefineButton(Box<Button<'a>>)
DefineButton2(Box<Button<'a>>)
DefineButtonColorTransform(ButtonColorTransform)
DefineButtonSound(Box<ButtonSounds>)
DefineEditText(Box<EditText<'a>>)
DefineFont(Box<FontV1>)
DefineFont2(Box<Font<'a>>)
DefineFont4(Font4<'a>)
DefineFontAlignZones
DefineFontInfo(Box<FontInfo<'a>>)
DefineFontName
DefineMorphShape(Box<DefineMorphShape>)
DefineScalingGrid
DefineShape(Shape)
DefineSound(Box<Sound<'a>>)
DefineSprite(Sprite<'a>)
DefineText(Box<Text>)
DefineText2(Box<Text>)
DefineVideoStream(DefineVideoStream)
DoAbc(&'a [u8])
DoAbc2(DoAbc2<'a>)
DoAction(DoAction<'a>)
DoInitAction
EnableDebugger(&'a SwfStr)
EnableTelemetry
End
Metadata(&'a SwfStr)
ImportAssets
JpegTables(JpegTables<'a>)
NameCharacter(NameCharacter<'a>)
SetBackgroundColor(SetBackgroundColor)
SetTabIndex
SoundStreamBlock(SoundStreamBlock<'a>)
SoundStreamHead(Box<SoundStreamHead>)
SoundStreamHead2(Box<SoundStreamHead>)
StartSound(StartSound)
StartSound2
SymbolClass(Vec<SymbolClassLink<'a>>)
PlaceObject(Box<PlaceObject<'a>>)
RemoveObject(RemoveObject)
VideoFrame(VideoFrame<'a>)
FileAttributes(FileAttributes)
FrameLabel(FrameLabel<'a>)
DefineSceneAndFrameLabelData(DefineSceneAndFrameLabelData<'a>)
ProductInfo(ProductInfo)
Unknown
Trait Implementations§
impl<'a> StructuralPartialEq for Tag<'a>
Auto Trait Implementations§
impl<'a> Freeze for Tag<'a>
impl<'a> RefUnwindSafe for Tag<'a>
impl<'a> Send for Tag<'a>
impl<'a> Sync for Tag<'a>
impl<'a> Unpin for Tag<'a>
impl<'a> UnwindSafe for Tag<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more