Gnash  0.8.11dev
DefineButtonCxformTag.h
Go to the documentation of this file.
1 // DefineButtonCxformTag.h: parse SWF2 button SWFCxForm tag.
2 //
3 // Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
4 // Free Software Foundation, Inc.
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 
20 #ifndef GNASH_SWF_DEFINEBUTTONCXFORMTAG_H
21 #define GNASH_SWF_DEFINEBUTTONCXFORMTAG_H
22 
23 #include "SWF.h" // for TagType definition
24 
25 namespace gnash {
26  class SWFStream;
27  class movie_definition;
28 }
29 
30 namespace gnash {
31 namespace SWF {
32 
34 //
39 {
40 public:
41 
42  static void loader(SWFStream& in, TagType tag, movie_definition& m,
43  const RunResources& /*r*/);
44 
45 };
46 
47 } // namespace gnash::SWF
48 } // namespace gnash
49 
50 
51 #endif // GNASH_SWF_DEFINEBUTTONCXFORMTAG_H
52 
53 
54 // Local Variables:
55 // mode: C++
56 // indent-tabs-mode: t
57 // End:
gnash::SWF::DefineButtonTag::ButtonRecords
std::vector< ButtonRecord > ButtonRecords
Definition: DefineButtonTag.h:205
gnash::log_swferror
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
gnash::SWF::TagType
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
gnash::SWF::DefinitionTag
Immutable data representing the definition of a movie display element.
Definition: DefinitionTag.h:48
gnash::typeName
std::string typeName(const T &inst)
Definition: utility.h:93
_
#define _(String)
Definition: log.h:44
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::key::m
@ m
Definition: GnashKey.h:159
utility.h
gnash::SWF::DefineButtonTag
A class for parsing DefineButton and DefineButton2 tags.
Definition: DefineButtonTag.h:198
gnash::movie_definition
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
IF_VERBOSE_MALFORMED_SWF
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
DefineButtonTag.h
DefineButtonCxformTag.h
gnash::RunResources
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
gnash::SWF::DefineButtonCxformTag::loader
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &)
Definition: DefineButtonCxformTag.cpp:32
IF_VERBOSE_PARSE
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
gnash::log_parse
void log_parse(StringType msg, Args... args)
Definition: log.h:313
SWF.h
gnash::SWFStream::read_u16
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
RunResources.h
gnash::SWF::DefineButtonTag::buttonRecords
ButtonRecords & buttonRecords()
Definition: DefineButtonTag.h:216
movie_definition.h
gnash::SWF::ButtonRecord
A class for parsing ButtonRecord, used by DefineButton and DefineButton2.
Definition: DefineButtonTag.h:54
gnash::SWFStream
SWF stream wrapper class.
Definition: SWFStream.h:59
gnash::SWF::DefineButtonCxformTag
A simple rgb SWFCxForm for SWF2 buttons, superseded by DefineButton2.
Definition: DefineButtonCxformTag.h:39
gnash::SWFStream::ensureBytes
void ensureBytes(unsigned long needed)
Ensure the requested number of bytes are available for an aligned read in the currently opened tag.
Definition: SWFStream.cpp:50
gnash::key::SWF
@ SWF
Definition: GnashKey.h:331
SWFStream.h
gnash::SWF::DEFINEBUTTONCXFORM
@ DEFINEBUTTONCXFORM
Definition: SWF.h:55