Gnash  0.8.11dev
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
gnash Namespace Reference

Anonymous namespace for callbacks, local functions, event handlers etc. More...

Namespaces

 abc
 ABC-only resources for parsing and execution.
 
 amf
 Functions and classes for handling AMF.
 
 clocktime
 
 fontlib
 Library management.
 
 geometry
 
 gui
 Named constructors.
 
 image
 Image handling functions and classes.
 
 key
 
 media
 Gnash media handling subsystem (libmedia)
 
 mergesort
 
 noseek_fd_adapter
 
 NSV
 Named String Values.
 
 plugin
 
 Qt4GuiPrefs
 
 renderer
 
 rtmp
 
 sound
 Gnash sound handling subsystem (libsound)
 
 stats
 
 SWF
 SWF format parsing classes.
 
 URLAccessManager
 Manage a list of URL access configuration.
 
 utf8
 Utilities to convert between std::string and std::wstring.
 
 zlib_adapter
 Code to wrap zlib compression/decompression around an IOChannel stream.
 

Classes

class  action_buffer
 A code segment. More...
 
class  ActionException
 An ActionScript error exception. More...
 
class  ActionExec
 Executor of an action_buffer. More...
 
class  ActionLimitException
 An ActionScript limit exception. More...
 
class  ActionParserException
 
class  ActionTypeError
 An ActionScript type error. More...
 
class  ActiveRelay
 A native type that requires periodic updates from the core (movie_root). More...
 
struct  AddStyles
 Style handler. More...
 
class  agg_bitmap_info
 
class  agg_mask_style_handler
 
class  AggStyle
 
class  AOS4AggGlue
 
class  AOS4CairoGlue
 
class  AOS4Glue
 
class  AOS4Gui
 
class  AquaGlue
 
class  AquaGui
 
class  AquaOglGlue
 
class  as_environment
 Provides information about timeline context. More...
 
class  as_function
 ActionScript Function, either builtin or SWF-defined. More...
 
class  as_object
 The base class for all ActionScript objects. More...
 
class  as_value
 ActionScript value type. More...
 
class  AsBroadcaster
 AsBroadcaster facilities. More...
 
class  asException
 
class  BevelFilter
 
class  Bitmap
 
class  BitmapData_as
 Implements the BitmapData native type. More...
 
class  BitmapFill
 A BitmapFill. More...
 
class  BitmapFilter
 
class  BitmapMovie
 A top-level movie displaying a still bitmap. More...
 
class  BitmapMovieDefinition
 A "movie" definition for a bitmap file. More...
 
class  BitsReader
 BitsReader is used to encapsulate bit-packed buffer reads. More...
 
class  BlurFilter
 
class  BufferedAudioStreamer
 Buffered AudioStreamer. More...
 
class  builtin_function
 This is a special type of function implementing AS-code in C++. More...
 
class  Button
 Button implements Flash buttons. More...
 
class  CachedBitmap
 A CachedBitmap is created by the renderer in a format of its choosing. More...
 
class  CallFrame
 A CallFrame is an element of a CallStack. More...
 
class  CharacterDictionary
 The Characters dictionary associated with each SWF file. More...
 
class  CharacterProxy
 A proxy for DisplayObject pointers. More...
 
class  ClassHierarchy
 Register all of the ActionScript classes, with their dependencies. More...
 
class  CodeStream
 
class  CodeStreamException
 
class  ColorMatrixFilter
 
class  ColorTransform_as
 
class  ConvolutionFilter
 
struct  CreatePointer
 Return a pointer to a type. More...
 
class  CustomMessage
 A custom form of communication with the host application. More...
 
class  Date_as
 
class  DelayedFunctionCall
 This class is used to queue a function call action. More...
 
struct  DepthComparator
 
class  DeviceGlue
 
class  DisplayList
 A list of on-stage DisplayObjects, ordered by depth. More...
 
class  DisplayObject
 DisplayObject is the base class for all DisplayList objects. More...
 
class  DisplayObjectContainer
 
class  DragState
 What is being dragged and how. More...
 
class  DrawingWidget
 
class  DropShadowFilter
 
class  DumpGui
 
class  DynamicShape
 The DynamicShape class represents a mutable shape. More...
 
class  Edge
 Defines an edge with a control point and an anchor point. More...
 
class  EmbedWidget
 
class  event_id
 A class to identify 'static' SWF events (system events). More...
 
class  EventCode
 Event code. More...
 
class  EventDevice
 
class  ExecutableCode
 Any executable code. More...
 
class  Exists
 
class  Extension
 
struct  ExternalInterface
 
class  FillStyle
 FillStyle describes the various fill styles for shapes. More...
 
class  filter_factory
 
class  FltkAggGlue
 
class  FltkCairoGlue
 
class  FltkGui
 
class  fn_call
 Parameters/environment for builtin or user-defined functions callable from ActionScript. More...
 
class  Font
 A Font resource. More...
 
class  FrameGuard
 
class  FreetypeGlyphsProvider
 Truetype font rasterizer/converter based on freetype library. More...
 
class  FsCallback
 Abstract base class for FS handlers. More...
 
class  Function
 A simple SWF-defined Function. More...
 
class  Function2
 Function2 adds extra sauce to ordinary Functions. More...
 
class  FunctionArgs
 A class to contain transferable arguments for a fn_call. More...
 
class  GC
 Garbage collector singleton. More...
 
class  GcResource
 Collectable resource. More...
 
class  GcRoot
 Abstract class to allow the GC to store "roots" into a container. More...
 
class  GetterSetter
 Holder for getter/setter functions. More...
 
class  Global_as
 The Global object ultimately contains all objects in an ActionScript run. More...
 
class  GlobalCode
 Global code (out of any function) More...
 
class  GlowFilter
 
class  GnashException
 Top-level gnash exception. More...
 
class  GnashFactory
 A generic factory class for registering and retrieving objects by key. More...
 
class  GnashNPVariant
 This class holds ownership of (a copy of) an NPVariant. More...
 
class  GnashPluginScriptObject
 
class  GnashTexture
 OpenGL texture abstraction. More...
 
class  GnashTextureFormat
 OpenGL texture format. More...
 
class  GnashVaapiImage
 GnashImage implementation using a VA surface. More...
 
class  GnashVaapiImageProxy
 
class  GnashVaapiTexture
 OpenGL texture abstraction. More...
 
class  GradientBevelFilter
 
class  GradientFill
 A GradientFill. More...
 
class  GradientGlowFilter
 
class  GradientRecord
 
class  GtkAggGlue
 
class  GtkAggVaapiGlue
 
class  GtkCairoGlue
 
class  GtkExt
 
class  GtkGlExtGlue
 
class  GtkGlue
 
class  GtkGui
 
class  Gui
 Parent class from which all GUI implementations will depend. More...
 
class  HaikuAggGlue
 
class  HaikuGui
 
class  HostFunctionReport
 
class  HostInterface
 Abstract base class for hosting app handler. More...
 
class  HostMessage
 Built-in forms of communication with the host application. More...
 
class  IncrementalRename
 
class  InputDevice
 
class  InteractiveObject
 The base class for interactive objects. More...
 
class  InterruptableVirtualClock
 A VirtualClock wrapper adding pause/resume capabilities. More...
 
class  IOChannel
 A virtual IO channel. More...
 
class  IOException
 Exception signalling an IO error. More...
 
struct  IsDisplayObject
 Check that the 'this' pointer is a DisplayObject. More...
 
class  IsEnumerable
 
class  IsStrictArray
 A visitor to check whether an array is strict or not. More...
 
class  IsVisible
 Function objects for visiting properties. More...
 
class  KdeAggGlue
 
class  KdeGlue
 
class  KdeGui
 
class  KdeOpenGLGlue
 
class  kerning_pair
 
class  KeyVisitor
 An abstract key visitor. More...
 
struct  linear_rgb_interpolator
 Interpolate in the linear RGB colorspace. More...
 
class  LineStyle
 For the outside of outline shapes, or just bare lines. More...
 
class  LoadVariablesThread
 A manager for loadVariable requests. More...
 
class  LogFile
 
class  ManualClock
 A manually advanced clock. More...
 
class  MediaException
 An exception from MediaHandler subsystem. More...
 
class  MorphShape
 A DisplayObject that tweens between two shapes. More...
 
class  Mouse_as
 
struct  MouseButtonState
 Helper to generate mouse events, given mouse state & history. More...
 
class  MouseDevice
 
class  Movie
 A top-level, standalone Movie that can be loaded and played. More...
 
class  movie_definition
 Client program's interface to the definition of a movie or sprite. More...
 
class  movie_root
 This class represents the 'Stage' and top-level movie. More...
 
class  MovieClip
 A MovieClip is a container for DisplayObjects. More...
 
class  MovieFactory
 
class  MovieLibrary
 Library of SWF movies indexed by URL strings. More...
 
class  MovieLoader
 Movie loader. More...
 
class  NamingPolicy
 
class  NativeFunction
 This class implements functions native to the player. More...
 
class  NetConnection_as
 NetConnection ActionScript class. More...
 
class  NetStream_as
 NetStream_as ActionScript class. More...
 
class  NetworkAdapter
 Code to use libcurl as an IOChannel stream. More...
 
class  NetworkException
 
class  nsPluginInstance
 
class  NullGui
 Null GUI, used when rendering is disabled. More...
 
struct  ObjectURI
 A URI for describing as_objects. More...
 
class  OverwriteExisting
 
class  ParserException
 An SWF parsing exception. More...
 
class  Path
 A subset of a shape, a series of edges sharing a single set of styles. More...
 
class  PathParser
 
class  Player
 
class  PlayHead
 The playback controller. More...
 
class  PoolGuard
 
class  Property
 An abstract property. More...
 
class  PropertyList
 Set of properties associated with an ActionScript object. More...
 
class  PropertyVisitor
 An abstract property visitor. More...
 
class  PropFlags
 Flags defining the level of protection of a member. More...
 
class  Qt4AggGlue
 
class  Qt4CairoGlue
 
class  Qt4Glue
 
class  Qt4Gui
 
class  Qt4OglGlue
 
class  qwidget
 
class  RcInitFile
 
class  ref_counted
 For stuff that's tricky to keep track of w/r/t ownership & cleanup. The only use for this class seems to be for putting derived classes in smart_ptr. More...
 
class  Relay
 This is the base class for type-specific object data. More...
 
class  Renderer
 Base class for render handlers. More...
 
class  Renderer_agg_base
 
class  Renderer_cairo
 
class  rgba
 A basic RGBA type. More...
 
class  RunResources
 Class to group together per-run and external resources for Gnash. More...
 
class  SafeStack
 
class  ScreenShotter
 Handles screen dumps. More...
 
class  SdlAggGlue
 
class  SdlCairoGlue
 
class  SdlGlue
 
class  SDLGui
 
class  SdlOglGlue
 
class  Shape
 For DisplayObjects that don't store unusual state in their instances. More...
 
class  SharedLib
 TODO: document this class. More...
 
class  SharedMem
 
class  SharedObjectLibrary
 
class  SimpleBuffer
 A simple buffer of bytes. More...
 
class  Socket
 A simple IOChannel subclass for reading and writing sockets. More...
 
struct  SolidFill
 A SolidFill containing one color. More...
 
class  sound_sample
 An identifier for a sound sample managed by a sound_handler. More...
 
class  SoundException
 An exception from SoundHandler subsystem. More...
 
class  sprite_definition
 Holds the immutable data for a sprite, as read from as SWF stream. @ should not derive from movie_definition, probably! More...
 
class  StackException
 
class  StaticText
 Static text fields, SWF-defined with read-only text. More...
 
class  StreamProvider
 A StreamProvider makes IOChannels available to the core on request. More...
 
class  String_as
 
class  string_table
 A general use string table. More...
 
class  StringNoCaseEqual
 A case-insensitive string equality operator. More...
 
class  StringNoCaseLessThan
 A case-insensitive string comparator. More...
 
class  StyleHandler
 
class  swf_event
 For embedding event handlers in place_object_2. More...
 
class  SWFCtype
 Facet for SWF-compatible case conversion. More...
 
class  SWFCxForm
 Color transformation record. More...
 
class  SWFMatrix
 
class  SWFMovie
 Stateful Movie object (a special kind of sprite) More...
 
class  SWFMovieDefinition
 Immutable definition of a SWF movie's contents. More...
 
class  SWFMovieLoader
 Helper class handling start and execution of a loading thread. More...
 
class  SWFParser
 The SWFParser parses tags from a SWFStream. More...
 
class  SWFRect
 Rectangle class, see swf defined rectangle record. More...
 
class  SWFStream
 SWF stream wrapper class. More...
 
class  SystemClock
 A system-clock based virtual clock. More...
 
class  TargetGuard
 
class  TextField
 An instance of a DefineEditTextTag. More...
 
class  TextFormat_as
 The TextFormat_as Relay type stores text properties. More...
 
struct  ThisIsNative
 Check that the 'this' pointer has a particular native type ('Relay'). More...
 
class  Timer
 An interval timer. More...
 
class  TouchDevice
 
class  Transform
 The Transform class expresses a stage in a cumulative transformation. More...
 
class  Trigger
 A trigger that can be associated with a property name. More...
 
class  TryBlock
 
class  UinputDevice
 
struct  UnivocalPath
 
class  URL
 Uniform Resource Locator. More...
 
class  UserFunction
 A UserFunction is a callable function defined in ActionScript. More...
 
class  VaapiContext
 VA context abstraction. More...
 
class  VaapiContextData
 VA context user-data. More...
 
class  VaapiDisplay
 VA display abstraction. More...
 
struct  VaapiDisplayGLX
 VA/GLX display representation. More...
 
struct  VaapiDisplayX11
 VA/X11 display representation. More...
 
struct  VaapiException
 VA exception abstraction. More...
 
class  VaapiGlobalContext
 VA API global context. More...
 
class  VaapiImage
 VA image abstraction. More...
 
struct  VaapiRectangle
 VA rectangle abstraction. More...
 
class  VaapiSubpicture
 VA subpicture abstraction. More...
 
class  VaapiSurface
 VA surface abstraction. More...
 
class  VaapiSurfaceGLX
 VA/GLX surface abstraction. More...
 
class  VaapiSurfaceImplBase
 VA surface base representation. More...
 
class  VaapiSurfaceProxy
 VA surface proxy used to release surface to context. More...
 
struct  ValidThis
 Check that the 'this' pointer is not null. More...
 
class  Video
 VideoStream ActionScript object. More...
 
class  VirtualClock
 A class used to virtualize time flow. More...
 
class  VM
 The AVM1 virtual machine. More...
 
class  WallClockTimer
 General-purpose wall-clock timer. More...
 
class  With
 
class  X11Display
 X11 display. More...
 
class  XML_as
 Implements XML (AS2) and flash.xml.XMLDocument (AS3) class. More...
 
class  XMLNode_as
 A node in an XML tree. More...
 

Typedefs

typedef geometry::Point2d point
 
typedef geometry::SnappingRanges2d< std::int32_t > InvalidatedRanges
 Standard snapping 2d ranges type for invalidated bounds calculation. More...
 
typedef std::vector< std::pair< ObjectURI, as_value > > SortedPropertyList
 This is used to hold an intermediate copy of an as_object's properties. More...
 
typedef std::vector< const char * > ConstantPool
 An indexed list of strings (must match the definition in action_buffer.h) More...
 
typedef std::vector< std::unique_ptr< BitmapFilter > > Filters
 
typedef std::pair< FillStyle, boost::optional< FillStyle > > OptionalFillPair
 Either a single or a morph-pair FillStyle. More...
 
typedef as_value(* as_c_function_ptr) (const fn_call &fn)
 
typedef std::vector< CallFrameCallStack
 
typedef std::vector< PathPathVec
 
typedef std::vector< const Path * > PathPtrVec
 
typedef GLfloat oglCoord
 
typedef std::vector< geometry::Range2d< int > > ClipBounds
 

Enumerations

enum  gnash_cursor_type { CURSOR_HAND, CURSOR_NORMAL, CURSOR_INPUT }
 Enumerates mouse cursor types. More...
 
enum  FileType {
  GNASH_FILETYPE_JPEG, GNASH_FILETYPE_PNG, GNASH_FILETYPE_GIF, GNASH_FILETYPE_SWF,
  GNASH_FILETYPE_FLV, GNASH_FILETYPE_UNKNOWN
}
 
enum  Quality { QUALITY_LOW, QUALITY_MEDIUM, QUALITY_HIGH, QUALITY_BEST }
 
enum  primitive_types { PTYPE_STRING, PTYPE_NUMBER, PTYPE_BOOLEAN }
 These are the primitive types, see the ECMAScript reference. More...
 
enum  CapStyle { CAP_ROUND = 0, CAP_NONE = 1, CAP_SQUARE = 2 }
 
enum  JoinStyle { JOIN_ROUND = 0, JOIN_BEVEL = 1, JOIN_MITER = 2 }
 
enum  filter_types {
  DROP_SHADOW = 0, BLUR = 1, GLOW = 2, BEVEL = 3,
  GRADIENT_GLOW = 4, CONVOLUTION = 5, COLOR_MATRIX = 6, GRADIENT_BEVEL = 7
}
 
enum  VaapiCodec {
  VAAPI_CODEC_UNKNOWN, VAAPI_CODEC_MPEG2, VAAPI_CODEC_MPEG4, VAAPI_CODEC_H264,
  VAAPI_CODEC_VC1
}
 VA codec. More...
 
enum  { GNASH_TEXTURE_VAAPI = 1 << 0 }
 Texture flags. More...
 

Functions

as_value dbus_ext_setsockname (const fn_call &fn)
 
void dbus_class_init (as_object &obj)
 
as_value dejagnu_pass (const fn_call &fn)
 
as_value dejagnu_fail (const fn_call &fn)
 
as_value dejagnu_totals (const fn_call &fn)
 
void dejagnu_class_init (as_object &obj)
 
std::unique_ptr< as_objectinit_dejagnu_instance ()
 Return an instance. More...
 
as_value fileio_fopen (const fn_call &fn)
 
as_value fileio_fread (const fn_call &fn)
 
as_value fileio_fgetc (const fn_call &fn)
 
as_value fileio_fgets (const fn_call &fn)
 
as_value fileio_gets (const fn_call &fn)
 
as_value fileio_fwrite (const fn_call &fn)
 
as_value fileio_fputc (const fn_call &fn)
 
as_value fileio_fputs (const fn_call &fn)
 
as_value fileio_puts (const fn_call &fn)
 
as_value fileio_fclose (const fn_call &fn)
 
as_value fileio_getchar (const fn_call &fn)
 
as_value fileio_putchar (const fn_call &fn)
 
as_value fileio_fflush (const fn_call &fn)
 
as_value fileio_ftell (const fn_call &fn)
 
as_value fileio_feof (const fn_call &fn)
 
as_value fileio_fseek (const fn_call &fn)
 
as_value fileio_unlink (const fn_call &fn)
 
as_value fileio_asyncmode (const fn_call &fn)
 
as_value fileio_scandir (const fn_call &fn)
 
void fileio_class_init (as_object &where, const ObjectURI &)
 
as_value gtkext_window_new (const fn_call &fn)
 
as_value gtkext_signal_connect (const fn_call &fn)
 
as_value gtkext_container_set_border_width (const fn_call &fn)
 
as_value gtkext_button_new_with_label (const fn_call &fn)
 
as_value gtkext_signal_connect_swapped (const fn_call &fn)
 
as_value gtkext_container_add (const fn_call &fn)
 
as_value gtkext_widget_show (const fn_call &fn)
 
as_value gtkext_main (const fn_call &fn)
 
void dump_callbacks (map< string, as_value > &calls)
 
std::unique_ptr< as_objectinit_gtkext_instance ()
 Return an instance. More...
 
void gtkext_class_init (as_object &obj)
 
as_value lirc_ext_init (const fn_call &fn)
 
as_value lirc_ext_getkey (const fn_call &fn)
 
as_value lirc_ext_getbutton (const fn_call &fn)
 
void lirc_class_init (as_object &obj)
 
as_value mysql_connect (const fn_call &fn)
 
as_value mysql_qetData (const fn_call &fn)
 
as_value mysql_disconnect (const fn_call &fn)
 
as_value mysql_query (const fn_call &fn)
 
as_value mysql_row (const fn_call &fn)
 
as_value mysql_fields (const fn_call &fn)
 
as_value mysql_fetch (const fn_call &fn)
 
as_value mysql_store (const fn_call &fn)
 
as_value mysql_free (const fn_call &fn)
 
void mysql_class_init (as_object &obj)
 
std::unique_ptr< GuicreateAOS4Gui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
 
pascal OSStatus DoWindowClose (EventHandlerCallRef nextHandler, EventRef theEvent, void *userData)
 
void DoAdvanceMovie (EventLoopTimerRef inTimer, void *data)
 
std::unique_ptr< GuicreateAQUAGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
 
void terminate_signal (int)
 
std::unique_ptr< GuicreateDumpGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
 
std::unique_ptr< GuicreateFLTKGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
 
bool cairoFormatFromVisual (const GdkVisual *visual, cairo_format_t *format)
 
std::unique_ptr< GuicreateGTKGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
 
std::unique_ptr< GuicreateGTKGui (unsigned long xid, float scale, bool loop, RunResources &r)
 
std::unique_ptr< GuicreateKDEGui (unsigned long xid, float scale, bool loop, RunResources &r)
 
std::unique_ptr< GuicreateQt4Gui (unsigned long xid, float scale, bool loop, RunResources &r)
 
std::unique_ptr< GuicreateSDLGui (unsigned long xid, float scale, bool loop, RunResources &r)
 
std::unique_ptr< GuicreateFLTKGui (unsigned long xid, float scale, bool loop, RunResources &r)
 
std::unique_ptr< GuicreateAQUAGui (unsigned long xid, float scale, bool loop, RunResources &r)
 
std::unique_ptr< GuicreateRISCOSGui (unsigned long xid, float scale, bool loop, RunResources &r)
 
std::unique_ptr< GuicreateAOS4Gui (unsigned long xid, float scale, bool loop, RunResources &r)
 
std::unique_ptr< GuicreateHaikuGui (unsigned long xid, float scale, bool loop, RunResources &r)
 
std::unique_ptr< GuicreateDumpGui (unsigned long xid, float scale, bool loop, RunResources &r)
 
std::unique_ptr< GuicreateHaikuGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
 
std::unique_ptr< GuicreateKDEGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
 
std::unique_ptr< GuicreateQt4Gui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
 
FileType typeFromFileName (const std::string &filename)
 Guess an appropriate file type from the filename. More...
 
std::unique_ptr< GuicreateSDLGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
 
template<typename Container , typename Predicate >
void EraseIf (Container &c, Predicate p)
 Erase elements from an associative container based on a predicate. More...
 
template<typename T , size_t N>
size_t arraySize (T(&)[N])
 Get the size of an array without passing a pointer by mistake. More...
 
template<typename T , typename U >
void foreachSecond (T begin, T end, U op)
 Call a functor on the second element of each element in a range. More...
 
bool mkdirRecursive (const std::string &filename)
 Create a directory for a given filename. More...
 
int mkdirUserPermissions (const std::string &dirname)
 Create a directory, granting owner rwx permissions. More...
 
bool isFinite (double d)
 
template<typename T >
bool isNaN (const T &num)
 
double infinite_to_zero (double x)
 
template<typename T >
clamp (T i, T min, T max)
 
template<typename T >
lerp (T a, T b, T f)
 
int frnd (float f)
 
double twipsToPixels (int i)
 
template<size_t Factor>
std::int32_t truncateWithFactor (double a)
 
std::int32_t pixelsToTwips (double a)
 
void gnashSleep (time_t useconds)
 Sleep compatibly for the specified number of microseconds. More...
 
std::string hexify (const unsigned char *bytes, size_t length, bool ascii)
 Convert a sequence of bytes to hex or ascii format. More...
 
void processLog_trace (const boost::format &fmt)
 
void processLog_debug (const boost::format &fmt)
 
void processLog_abc (const boost::format &fmt)
 
void processLog_parse (const boost::format &fmt)
 
void processLog_network (const boost::format &fmt)
 
void processLog_error (const boost::format &fmt)
 
void processLog_unimpl (const boost::format &fmt)
 
void processLog_security (const boost::format &fmt)
 
void processLog_swferror (const boost::format &fmt)
 
void processLog_aserror (const boost::format &fmt)
 
void processLog_action (const boost::format &fmt)
 
template<typename FuncType >
void log_impl (boost::format &fmt, FuncType func)
 
template<typename FuncType , typename Arg , typename... Args>
void log_impl (boost::format &fmt, FuncType processFunc, Arg arg, Args... args)
 
template<typename StringType , typename FuncType , typename... Args>
void log_impl (StringType msg, FuncType func, Args... args)
 
template<typename StringType , typename... Args>
void log_network (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void log_error (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void log_unimpl (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void log_trace (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void log_debug (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void log_action (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void log_parse (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void log_security (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void log_swferror (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void log_aserror (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void log_abc (StringType msg, Args... args)
 
void intrusive_ptr_add_ref (const ref_counted *o)
 
void intrusive_ptr_release (const ref_counted *o)
 
bool attached (const SharedMem &mem)
 Check if the SharedMem has been attached. More...
 
bool equal (string_table &st, string_table::key a, string_table::key b, bool caseless)
 Check whether two keys are equivalent. More...
 
std::unique_ptr< IOChannelmakeFileChannel (FILE *fp, bool close)
 Creates an IOChannel wrapper around a C stream. More...
 
std::unique_ptr< IOChannelmakeFileChannel (const char *filepath, const char *mode)
 Creates an IOChannel by opening the given file in the given mode. More...
 
std::ostream & operator<< (std::ostream &o, const URL &u)
 
template<class T >
std::string typeName (const T &inst)
 
as_objectfindObject (const as_environment &ctx, const std::string &path, const as_environment::ScopeStack *scope=nullptr)
 Find the object referenced by the given path. More...
 
as_value getVariable (const as_environment &ctx, const std::string &varname, const as_environment::ScopeStack &scope, as_object **retTarget=nullptr)
 Return the (possibly undefined) value of the named var. More...
 
void setVariable (const as_environment &ctx, const std::string &path, const as_value &val, const as_environment::ScopeStack &scope)
 Given a path to variable, set its value. More...
 
bool delVariable (const as_environment &ctx, const std::string &varname, const as_environment::ScopeStack &scope)
 Delete a variable, without support for the path, using a ScopeStack. More...
 
bool parsePath (const std::string &var_path_in, std::string &path, std::string &var)
 
DisplayObjectfindTarget (const as_environment &env, const std::string &path)
 Find the DisplayObject referenced by the given path. More...
 
string_tablegetStringTable (const as_environment &env)
 
movie_rootgetRoot (const as_environment &env)
 
Global_asgetGlobal (const as_environment &env)
 
int getSWFVersion (const as_environment &env)
 
VMgetVM (const as_environment &env)
 
as_objectconstructInstance (as_function &ctor, const as_environment &env, fn_call::Args &args)
 
as_objectconstructInstance (as_function &ctor, const as_environment &env, FunctionArgs< as_value > &args)
 Construct a new object from the given constructor. More...
 
std::string getURLEncodedVars (as_object &o)
 Get url-encoded variables. More...
 
SortedPropertyList enumerateProperties (as_object &o)
 Enumerate all non-hidden properties to the passed container. More...
 
as_objectgetPathElement (as_object &o, const ObjectURI &uri)
 Resolve the given relative path component. More...
 
void sendEvent (as_object &o, const as_environment &env, const ObjectURI &name)
 Send a system event. More...
 
as_objectgetObjectWithPrototype (Global_as &gl, const ObjectURI &c)
 
VMgetVM (const as_object &o)
 Get the VM from an as_object. More...
 
movie_rootgetRoot (const as_object &o)
 Get the movie_root from an as_object. More...
 
string_tablegetStringTable (const as_object &o)
 Get the string_table from an as_object. More...
 
const RunResourcesgetRunResources (const as_object &o)
 Get the RunResources from an as_object. More...
 
int getSWFVersion (const as_object &o)
 Get the executing VM version from an as_object. More...
 
Global_asgetGlobal (const as_object &o)
 Get the Global object from an as_object. More...
 
as_value getMember (as_object &o, const ObjectURI &uri)
 Get a member of an object using AS lookup rules. More...
 
as_value getOwnProperty (as_object &o, const ObjectURI &uri)
 Get an own member of an object. More...
 
template<typename T >
T * get (as_object *o)
 Extract the DisplayObject attached to an object. More...
 
bool hasOwnProperty (as_object &o, const ObjectURI &uri)
 Return true if this object has the named property. More...
 
template<typename T >
bool isNativeType (const as_object *obj, T *&relay)
 Check whether the object is an instance of a known type. More...
 
bool caseless (const as_object &o)
 Return whether property matching is caseless. More...
 
bool parseNonDecimalInt (const std::string &s, double &d, bool whole)
 
std::string doubleToString (double val, int radix=10)
 Convert numeric value to string value, following ECMA-262 specification. More...
 
std::ostream & operator<< (std::ostream &os, const as_value &v)
 Stream operator. More...
 
template<typename T >
bool isInf (const T &num)
 
void setNaN (as_value &v)
 Set a value to NaN. More...
 
void accessibility_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Accessibility class. More...
 
void registerAccessibilityNative (as_object &global)
 
void checkArrayLength (as_object &array, const ObjectURI &uri, const as_value &val)
 Genuine arrays handle the length property in a special way. More...
 
size_t arrayLength (as_object &array)
 Get the length of an object as though it were an array. More...
 
void registerArrayNative (as_object &global)
 
void array_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global.Array object. More...
 
ObjectURI arrayKey (VM &vm, size_t i)
 Convert an integral value into an ObjectURI. More...
 
template<typename T >
void foreachArray (as_object &array, T &pred)
 
void attachAsBroadcasterStaticInterface (as_object &o)
 
SWFMatrix toSWFMatrix (as_object &o)
 Convert an object to a SWFMatrix. More...
 
SWFCxForm toCxForm (const ColorTransform_as &tr)
 Convert a ColorTransform_as to a SWFCxForm record. More...
 
void boolean_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Boolean class. More...
 
void registerBooleanNative (as_object &global)
 
void camera_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Camera class. More...
 
void registerCameraNative (as_object &global)
 
void registerColorNative (as_object &o)
 
void color_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Color class. More...
 
void contextmenu_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global ContextMenu class. More...
 
void contextmenuitem_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global ContextMenuItem class. More...
 
void date_class_init (as_object &global, const ObjectURI &uri)
 
void registerDateNative (as_object &global)
 
void Error_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Error class. More...
 
void bitmapdata_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global BitmapData class. More...
 
void registerBitmapDataNative (as_object &global)
 
void flash_display_package_init (as_object &where, const ObjectURI &uri)
 
void flash_external_package_init (as_object &where, const ObjectURI &uri)
 
void registerExternalInterfaceNative (as_object &global)
 
void externalinterface_class_init (gnash::as_object &where, const gnash::ObjectURI &uri)
 Initialize the global ExternalInterface class. More...
 
void bevelfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.BevelFilter is a new BitmapFilter. More...
 
void bitmapfilter_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global BitmapFilter class. More...
 
void registerBitmapFilterNative (as_object &global)
 
void registerBitmapClass (as_object &where, Global_as::ASFunction ctor, Global_as::Properties p, const ObjectURI &uri)
 Convenience function only for BitmapFilter subclasses. More...
 
void blurfilter_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global BlurFilter class. More...
 
void colormatrixfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.ColorMatrixFilter is a new BitmapFilter. More...
 
void convolutionfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.ConvolutionFilter is a new BitmapFilter. More...
 
void displacementmapfilter_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global DisplacementMapFilter class. More...
 
void dropshadowfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.DropShadowFilter is a new BitmapFilter. More...
 
void flash_filters_package_init (as_object &where, const ObjectURI &uri)
 
void glowfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.GlowFilter is a new BitmapFilter. More...
 
void gradientbevelfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.GradientBevelFilter is a new BitmapFilter. More...
 
void gradientglowfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.GradientGlowFilter is a new BitmapFilter. More...
 
void flash_package_init (as_object &where, const ObjectURI &uri)
 
void colortransform_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global ColorTransform class. More...
 
void registerColorTransformNative (as_object &global)
 
void flash_geom_package_init (as_object &where, const ObjectURI &uri)
 
void matrix_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Matrix class. More...
 
void point_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Point class. More...
 
void rectangle_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Rectangle class. More...
 
void transform_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Transform class. More...
 
void filereference_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global FileReference class. More...
 
as_value filereferencelist_ctor (const fn_call &fn)
 
void filereferencelist_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global FileReferenceList class. More...
 
void flash_net_package_init (as_object &where, const ObjectURI &uri)
 
void flash_text_package_init (as_object &where, const ObjectURI &uri)
 
void textrenderer_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global TextRenderer class. More...
 
void registerFunctionNative (as_object &global)
 Register Function native functions. More...
 
void function_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Function constructor. More...
 
as_objectcreateObject (const Global_as &gl)
 
as_objectregisterBuiltinObject (as_object &where, Global_as::Properties p, const ObjectURI &uri)
 Register a built-in object. More...
 
as_objectregisterBuiltinClass (as_object &where, Global_as::ASFunction ctor, Global_as::Properties p, Global_as::Properties c, const ObjectURI &uri)
 Register a built-in class. More...
 
DSOEXPORT as_value invoke (const as_value &method, const as_environment &env, as_object *this_ptr, fn_call::Args &args, as_object *super=nullptr, const movie_definition *callerDef=nullptr)
 Call an as_value on an as_object. More...
 
as_value callMethod (fn_call::Args &args, as_object *obj, const ObjectURI &uri)
 Call a member function of this object in an AS-compatible way. More...
 
template<typename Param , typename... Params>
as_value callMethod (fn_call::Args &args, as_object *obj, const ObjectURI &uri, Param param, Params... params)
 
template<typename... Params>
as_value callMethod (as_object *obj, const ObjectURI &uri, Params... params)
 
as_functiongetClassConstructor (const fn_call &fn, const std::string &s)
 Convenience function for finding a class constructor. More...
 
as_value emptyFunction (const fn_call &)
 
as_value key_is_accessible (const fn_call &)
 
as_value key_get_ascii (const fn_call &fn)
 Return the ascii number of the last key pressed. More...
 
as_value key_get_code (const fn_call &fn)
 Returns the keycode of the last key pressed. More...
 
as_value key_is_down (const fn_call &fn)
 Return true if the specified (first arg keycode) key is pressed. More...
 
as_value key_is_toggled (const fn_call &)
 Given the keycode of NUM_LOCK or CAPSLOCK, returns true if the associated state is on. More...
 
void registerKeyNative (as_object &global)
 
void attachKeyInterface (as_object &o)
 
void key_class_init (as_object &where, const ObjectURI &uri)
 
void attachLoadableInterface (as_object &where, int flags)
 Attach some common AS code for Loadable objects. More...
 
void registerLoadableNative (as_object &global)
 Register methods as native for use by XML_as and LoadVars_as. More...
 
void loadvars_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global LoadVars class. More...
 
void writeLong (std::uint8_t *&ptr, std::uint32_t i)
 
std::uint32_t readLong (const std::uint8_t *buf)
 
template<typename T , size_t N>
std::string fromByteString (T(&buf)[N])
 
void localconnection_class_init (as_object &where, const ObjectURI &uri)
 
void registerLocalConnectionNative (as_object &global)
 
void registerMathNative (as_object &proto)
 
void math_class_init (as_object &where, const ObjectURI &uri)
 
void microphone_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Microphone class. More...
 
void registerMicrophoneNative (as_object &global)
 
void mouse_class_init (as_object &where, const ObjectURI &uri)
 
void movieclip_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global MovieClip class. More...
 
void registerMovieClipNative (as_object &where)
 Register ASNative MovieClip methods (AS2 only). More...
 
void registerMovieClipLoaderNative (as_object &global)
 
void moviecliploader_class_init (as_object &where, const ObjectURI &uri)
 Extern. More...
 
void netconnection_class_init (as_object &where, const ObjectURI &uri)
 
void netstream_class_init (as_object &where, const ObjectURI &uri)
 
void registerNetStreamNative (as_object &global)
 
void number_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Number class. More...
 
void registerNumberNative (as_object &global)
 
void registerObjectNative (as_object &global)
 
void initObjectClass (as_object *proto, as_object &global, const ObjectURI &uri)
 Initialize the global Object class. More...
 
void selection_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Selection class. More...
 
void registerSelectionNative (as_object &global)
 Register native selection methods. More...
 
void sharedobject_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global SharedObject class. More...
 
void registerSharedObjectNative (as_object &o)
 
void sound_class_init (as_object &where, const ObjectURI &uri)
 
void registerSoundNative (as_object &global)
 
void stage_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Stage class. More...
 
void registerStageNative (as_object &o)
 This is the Stage ActionScript object. More...
 
void registerStringNative (as_object &global)
 
void string_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global String class. More...
 
void system_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global System class. More...
 
void registerSystemNative (as_object &where)
 
as_objectcreateTextFieldObject (Global_as &gl)
 Native function to create a plain object with TextField properties. More...
 
void textfield_class_init (as_object &where, const ObjectURI &uri)
 This provides the prototype and static methods for TextField. More...
 
void registerTextFieldNative (as_object &global)
 
void registerTextFormatNative (as_object &o)
 
void textformat_class_init (as_object &global, const ObjectURI &uri)
 
void textsnapshot_class_init (as_object &where, const ObjectURI &uri)
 
void registerTextSnapshotNative (as_object &global)
 
as_objectcreateVideoObject (Global_as &gl)
 Native function to create a plain object with Video properties. More...
 
void video_class_init (as_object &global, const ObjectURI &uri)
 
void registerVideoNative (as_object &global)
 
void escapeXML (std::string &text)
 Escape using XML entities. More...
 
void unescapeXML (std::string &text)
 
void xml_class_init (as_object &where, const ObjectURI &uri)
 Register the XML class. More...
 
void registerXMLNative (as_object &where)
 Register XML native functions. More...
 
void registerXMLNodeNative (as_object &where)
 Register ASnative methods. More...
 
void xmlnode_class_init (as_object &where, const ObjectURI &uri)
 
void xmlsocket_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global XMLSocket class. More...
 
void registerXMLSocketNative (as_object &global)
 
void button_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Button class. More...
 
void registerButtonNative (as_object &global)
 
std::ostream & operator<< (std::ostream &o, const Button::MouseState &st)
 
DisplayObjectfindDisplayObjectByTarget (const std::string &tgtstr, movie_root &mr)
 
std::ostream & operator<< (std::ostream &os, const ConstantPool &p)
 
std::ostream & operator<< (std::ostream &os, const DisplayList &dl)
 
as_value getHeight (DisplayObject &o)
 
void setHeight (DisplayObject &o, const as_value &val)
 
void setIndexedProperty (size_t index, DisplayObject &o, const as_value &val)
 Set a property by its numeric index. More...
 
void getIndexedProperty (size_t index, DisplayObject &o, as_value &val)
 Get a property by its numeric index. More...
 
bool getDisplayObjectProperty (DisplayObject &obj, const ObjectURI &uri, as_value &val)
 DisplayObject property lookup. More...
 
bool setDisplayObjectProperty (DisplayObject &obj, const ObjectURI &uri, const as_value &val)
 Set special properties. More...
 
std::ostream & operator<< (std::ostream &o, DisplayObject::BlendMode bm)
 Stream operator for DisplayObject blend mode. More...
 
bool isReferenceable (const DisplayObject &d)
 Returns true if the DisplayObject is referenceable in ActionScript. More...
 
void copyMatrix (const DisplayObject &from, DisplayObject &to)
 Copy SWFMatrix and caches from given DisplayObjecta. More...
 
SWFMatrix getWorldMatrix (const DisplayObject &d, bool includeRoot=true)
 Get concatenated SWFMatrix (all ancestor transforms and our SWFMatrix) More...
 
SWFCxForm getWorldCxForm (const DisplayObject &d)
 Get concatenated color transform of a DisplayObject. More...
 
const SWFMatrixgetMatrix (const DisplayObject &o)
 Get local transform SWFMatrix for this DisplayObject. More...
 
const SWFCxFormgetCxForm (const DisplayObject &o)
 
as_objectgetObject (const DisplayObject *d)
 Return the as_object associated with a DisplayObject if it exists. More...
 
bool isKeyEvent (const event_id &e)
 Check whether an event is a keyboard event. More...
 
bool isButtonEvent (const event_id &e)
 Check whether an event is a button-like event. More...
 
std::ostream & operator<< (std::ostream &o, const event_id &ev)
 
bool operator== (const event_id &a, const event_id &b)
 Return whether two event_ids are equal. More...
 
bool operator< (const event_id &a, const event_id &b)
 Comparator for use in stdlib containers. More...
 
SWFMatrix gradientMatrix (GradientFill::Type t, const SWFMatrix &m)
 
void setLerp (FillStyle &f, const FillStyle &a, const FillStyle &b, double t)
 Set the FillStyle to a lerp of a and b. More...
 
std::ostream & operator<< (std::ostream &os, const BitmapFill::SmoothingPolicy &p)
 Output operator for bitmap smoothing policy. More...
 
std::ostream & operator<< (std::ostream &o, GradientFill::Type t)
 Output operator for GradientFill type. More...
 
std::ostream & operator<< (std::ostream &o, GradientFill::SpreadMode t)
 Output operator for GradientFill spread mode. More...
 
std::ostream & operator<< (std::ostream &o, GradientFill::InterpolationMode t)
 Output operator for GradientFill interpolation mode. More...
 
std::ostream & operator<< (std::ostream &os, const FillStyle &fs)
 Output operator for FillStyles. More...
 
bool operator< (const kerning_pair &p1, const kerning_pair &p2)
 
as_objectgetArguments (Function &callee, as_object &args, const fn_call &fn, as_object *caller)
 Add properties to an 'arguments' object. More...
 
std::ostream & operator<< (std::ostream &os, const HostMessage &m)
 Stream a description of any host interface message type. More...
 
std::ostream & operator<< (std::ostream &os, const CustomMessage &m)
 
std::ostream & operator<< (std::ostream &os, HostMessage::KnownEvent e)
 Stream a description of an expected message. More...
 
void setLerp (LineStyle &s, const LineStyle &ls1, const LineStyle &ls2, double ratio)
 
bool isLevelTarget (int version, const std::string &name, unsigned int &levelno)
 Return true if the given string can be interpreted as a _level name. More...
 
short stringToStageAlign (const std::string &str)
 
string_table::key getName (const ObjectURI &o)
 Get the name element of an ObjectURI. More...
 
std::ostream & operator<< (std::ostream &o, const CharacterDictionary &cd)
 
SWFMatrix readSWFMatrix (SWFStream &in)
 Read a SWFMatrix from input stream. More...
 
rgba readRGBA (SWFStream &in)
 Read an RGBA rgba from input stream. More...
 
rgba readRGB (SWFStream &in)
 Read an RGB rgba from input stream. More...
 
SWFRect readRect (SWFStream &in)
 Read a bit-packed rectangle from an SWF stream. More...
 
OptionalFillPair readFills (SWFStream &in, SWF::TagType t, movie_definition &m, bool readMorph)
 Read FillStyles from a stream. More...
 
SWFCxForm readCxFormRGB (SWFStream &in)
 Read a RGB CxForm from the input stream. More...
 
SWFCxForm readCxFormRGBA (SWFStream &in)
 Read a CxForm with alpha from the input stream. More...
 
bool readOnly (const Property &prop)
 is this a read-only member ? More...
 
bool visible (const Property &prop, int version)
 Is this member supposed to be visible by a VM of given version ? More...
 
std::ostream & operator<< (std::ostream &os, const PropFlags &fl)
 
rgba lerp (const rgba &a, const rgba &b, float f)
 Used for morphing. More...
 
rgba colorFromHexString (const std::string &color)
 Create an RGBA value from a hex string (e.g. FF0000) More...
 
std::ostream & operator<< (std::ostream &os, const rgba &r)
 
std::ostream & operator<< (std::ostream &os, const SWFCxForm &cx)
 
bool operator== (const SWFCxForm &a, const SWFCxForm &b)
 
bool operator!= (const SWFCxForm &a, const SWFCxForm &b)
 
bool invisible (const SWFCxForm &cx)
 Returns true when the SWFCxForm leads to alpha == 0. More...
 
std::ostream & operator<< (std::ostream &o, const SWFMatrix &m)
 
bool operator== (const SWFMatrix &a, const SWFMatrix &b)
 
std::ostream & operator<< (std::ostream &os, const SWFRect &r)
 
Transform operator* (const Transform &a, const Transform &b)
 Concatenate two transforms. More...
 
void declareLocal (CallFrame &c, const ObjectURI &name)
 Declare a local variable in this CallFrame. More...
 
void setLocal (CallFrame &c, const ObjectURI &name, const as_value &val)
 Set a local variable in this CallFrame. More...
 
std::ostream & operator<< (std::ostream &o, const CallFrame &fr)
 
template<typename T >
T::value_type * ensure (const fn_call &fn)
 Templated function to check the validity of a function call. More...
 
string_tablegetStringTable (const fn_call &fn)
 
movie_rootgetRoot (const fn_call &fn)
 
int getSWFVersion (const fn_call &fn)
 
VMgetVM (const fn_call &fn)
 
Global_asgetGlobal (const fn_call &fn)
 
void newAdd (as_value &op1, const as_value &op2, const VM &vm)
 Carry out ActionNewAdd. More...
 
void subtract (as_value &op1, const as_value &op2, const VM &vm)
 Carry out ActionSubtract. More...
 
as_value newLessThan (const as_value &op1, const as_value &op2, const VM &vm)
 Carry out ActionSubtract. More...
 
bool equals (const as_value &a, const as_value &b, const VM &vm)
 Check if two values are equal. More...
 
bool toBool (const as_value &v, const VM &vm)
 Convert an as_value to boolean type. More...
 
double toNumber (const as_value &v, const VM &vm)
 Convert an as_value to a double. More...
 
as_objecttoObject (const as_value &v, VM &vm)
 Convert an as_value to an object. More...
 
std::int32_t toInt (const as_value &val, const VM &vm)
 AS2-compatible conversion to 32bit integer. More...
 
as_valueconvertToNumber (as_value &v, const VM &vm)
 Force type to number. More...
 
as_valueconvertToString (as_value &v, const VM &vm)
 Force type to string. More...
 
as_valueconvertToBoolean (as_value &v, const VM &vm)
 Force type to bool. More...
 
as_valueconvertToPrimitive (as_value &v, const VM &vm)
 Convert to the appropriate primitive type. More...
 
ObjectURI getURI (const VM &vm, const std::string &str, bool lowerCaseHint=false)
 
ObjectURI getURI (const VM &, NSV::NamedStrings s)
 
const std::string & toString (VM &vm, const ObjectURI &uri)
 
void vaapi_set_is_enabled (bool enabled)
 Enable video acceleration (with VA API) More...
 
bool vaapi_is_enabled ()
 Check whether video acceleration is enabled. More...
 
void DSOEXPORT vaapi_dprintf (const char *format,...)
 Debug output. More...
 
bool vaapi_check_status (VAStatus status, const char *msg)
 Check VA status for success or print out an error. More...
 
const char * string_of_FOURCC (std::uint32_t fourcc)
 Return a string representation of a FOURCC. More...
 
const char * string_of_VAProfile (VAProfile profile)
 Return a string representation of a VAProfile. More...
 
const char * string_of_VAEntrypoint (VAEntrypoint entrypoint)
 Return a string representation of a VAEntrypoint. More...
 
double linearToSRGB (double s)
 Convert linear RGB colorspace to sRGB. More...
 
template<typename T >
cdiff (T a, T b, double ratio)
 
bool is_little_endian_host ()
 
DSOEXPORT Renderer_agg_basecreate_Renderer_agg (const char *pixelformat)
 Create a render handler. More...
 
DSOEXPORT const char * agg_detect_pixel_format (unsigned int rofs, unsigned int rsize, unsigned int gofs, unsigned int gsize, unsigned int bofs, unsigned int bsize, unsigned int bpp)
 
render_handler * create_render_handler_gles1 (bool init, OglGlue *glue)
 
bool SetVariableCallback (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
bool GetVariableCallback (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
bool GotoFrame (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
bool IsPlaying (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
 
bool LoadMovie (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
bool Pan (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
bool PercentLoaded (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
 
bool Play (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
 
bool Rewind (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
 
bool SetZoomRect (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
bool StopPlay (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
 
bool Zoom (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
bool TotalFrames (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
 
bool remoteCallback (NPObject *npobj, NPIdentifier name, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
const uint32_t & GetNPStringLen (const NPString &str)
 
const NPUTF8 * GetNPStringChars (const NPString &str)
 
void CopyVariantValue (const NPVariant &from, NPVariant &to)
 
std::string NPStringToString (const NPString &str)
 Construct a std::string from an NPString. More...
 
std::string NPVariantToString (const NPVariant &val)
 Construct a std::string from an NPVariant. More...
 
bool HasScripting ()
 
gboolean cleanup_childpid (gpointer data)
 
gboolean remove_handler (GIOChannel *, GIOCondition, gpointer)
 
std::string getGnashExecutable ()
 
void create_standalone_launcher (const std::string &page_url, const std::string &swf_url, const std::map< std::string, std::string > &params)
 
template<std::size_t N>
void close_fds (const int(&except)[N])
 
void wait_for_gdb ()
 
void printNPVariant (const NPVariant *value)
 

Variables

LogFiledbglogfile = LogFile::getDefaultInstance()
 
struct lirc_config * config
 
WindowRef myWindow = NULL
 
std::sig_atomic_t terminate_request = false
 
const int32 GNASH_PULSE = 'GPLS'
 
const int32 GNASH_SEND_PULSE = 'GSPL'
 
const int32 GNASH_QUITTING = 'GQUI'
 
const int GNASH_MOUSE_CLICKED = 'GMCL'
 
const int GNASH_MOUSE_MOVED = 'GMMV'
 
const int GNASH_KEY_EVENT = 'GKKE'
 
const int GNASH_RESIZE = 'GRSZ'
 
const int GNASH_HIDDEN = 'GHID'
 
const int GNASH_SHOWN = 'GSHN'
 
const int GNASH_SET_FULLSCREEN = 'GSFS'
 
const int GNASH_UNSET_FULLSCREEN = 'GUFS'
 
NPBool plugInitialized = FALSE
 
std::string cookiefile
 

Detailed Description

Anonymous namespace for callbacks, local functions, event handlers etc.

Here follows handler registration code.

Anonymous namespace for generic algorithm functors.

String class interface.

SharedObject AS interface.

Functors for use with foreachArray.

Local functors.

Helper for notifying listeners.

Function objects for foreachArray()

This file should also be included for the following system functions:

Win32 implementation for getTicks.

/// Dialogues /// ///

stat() fstat() lstat() dup() readdir()

This file handles DefineFont, DefineFontInfo, DefineFontInfo2, DefineFont2, and DefineFont3. They are all handled in one file because a DefineFont2 or 3 tag contains practically the same as a DefineFont plus DefineFontInfo or DefineFontInfo2.

Note
This file is a simple base class for any GUI glue layer code That needs to use libdevice devices. Currently this is used by both the GTK and Framebuffer GUIs for OpenVG, OpenGLES1, and OpenGLES2.
This file is the base class for all low level rendering and display devices. These devices must be probed and initialized first, before any renderering or window creation happens. The derived classes for this base class are then used by the renderer to determine functionality.

A Renderer that uses the Anti-Grain Geometry Toolkit (antigrain.com) and renders directly to a buffer (for example to the framebuffer). This backend is completely independent of any hardware. It can be used for rendering to the Linux FrameBuffer device, or be blitted inside a window (regardless of what operating system). It should also be no problem to render into a file... This file uses very heavily templates and is optimized mainly for speed, meaning that the compiler generates very, very, very much specialized code. That's good for speed but bloats up the resulting machine code.

Typedef Documentation

§ as_c_function_ptr

typedef as_value(* gnash::as_c_function_ptr) (const fn_call &fn)

§ CallStack

typedef std::vector<CallFrame> gnash::CallStack

§ ClipBounds

typedef std::vector<geometry::Range2d<int> > gnash::ClipBounds

§ ConstantPool

typedef std::vector<const char*> gnash::ConstantPool

An indexed list of strings (must match the definition in action_buffer.h)

§ Filters

typedef std::vector<std::unique_ptr<BitmapFilter> > gnash::Filters

§ InvalidatedRanges

Standard snapping 2d ranges type for invalidated bounds calculation.

§ oglCoord

typedef GLfloat gnash::oglCoord

§ OptionalFillPair

typedef std::pair<FillStyle, boost::optional<FillStyle> > gnash::OptionalFillPair

Either a single or a morph-pair FillStyle.

§ PathPtrVec

typedef std::vector<const Path*> gnash::PathPtrVec

§ PathVec

typedef std::vector< Path > gnash::PathVec

§ point

§ SortedPropertyList

typedef std::vector<std::pair<ObjectURI, as_value> > gnash::SortedPropertyList

This is used to hold an intermediate copy of an as_object's properties.

AS enumerates in reverse order of creation because these values are pushed to the stack. The first value to be popped is then the oldest property.

Enumeration Type Documentation

§ anonymous enum

anonymous enum

Texture flags.

Enumerator
GNASH_TEXTURE_VAAPI 

§ CapStyle

Enumerator
CAP_ROUND 
CAP_NONE 
CAP_SQUARE 

§ FileType

Enumerator
GNASH_FILETYPE_JPEG 
GNASH_FILETYPE_PNG 
GNASH_FILETYPE_GIF 
GNASH_FILETYPE_SWF 
GNASH_FILETYPE_FLV 
GNASH_FILETYPE_UNKNOWN 

§ filter_types

Enumerator
DROP_SHADOW 
BLUR 
GLOW 
BEVEL 
GRADIENT_GLOW 
CONVOLUTION 
COLOR_MATRIX 
GRADIENT_BEVEL 

§ gnash_cursor_type

Enumerates mouse cursor types.

Enumerator
CURSOR_HAND 
CURSOR_NORMAL 
CURSOR_INPUT 

§ JoinStyle

Enumerator
JOIN_ROUND 
JOIN_BEVEL 
JOIN_MITER 

§ primitive_types

These are the primitive types, see the ECMAScript reference.

Enumerator
PTYPE_STRING 
PTYPE_NUMBER 
PTYPE_BOOLEAN 

§ Quality

Enumerator
QUALITY_LOW 
QUALITY_MEDIUM 
QUALITY_HIGH 
QUALITY_BEST 

§ VaapiCodec

VA codec.

Enumerator
VAAPI_CODEC_UNKNOWN 
VAAPI_CODEC_MPEG2 
VAAPI_CODEC_MPEG4 
VAAPI_CODEC_H264 
VAAPI_CODEC_VC1 

Function Documentation

§ accessibility_class_init()

void gnash::accessibility_class_init ( as_object where,
const ObjectURI uri 
)

§ agg_detect_pixel_format()

DSOEXPORT const char * gnash::agg_detect_pixel_format ( unsigned int  rofs,
unsigned int  rsize,
unsigned int  gofs,
unsigned int  gsize,
unsigned int  bofs,
unsigned int  bsize,
unsigned int  bpp 
)

Detect pixel format based on bit mask. If the pixel format is unknown, NULL is returned. Note that a successfully detected pixel format does not necessarily mean that the pixel format is available (compiled in). The bit offsets are assumed to be in host byte order!

References is_little_endian_host().

Referenced by gnash::GtkAggGlue::createRenderHandler(), gnash::gui::FBAggGlue::createRenderHandler(), and gnash::Renderer_agg_base::initTestBuffer().

§ array_class_init()

void gnash::array_class_init ( as_object where,
const ObjectURI uri 
)

§ arrayKey()

ObjectURI gnash::arrayKey ( VM vm,
size_t  i 
)

§ arrayLength()

size_t gnash::arrayLength ( as_object array)

Get the length of an object as though it were an array.

It may well be an array, but this also works on normal objects with a length property

Parameters
arrayThe object whose array length is needed.
Returns
The array length of the object or 0 if no length is found.

References getOwnProperty(), getVM(), gnash::as_value::is_undefined(), length, gnash::NSV::PROP_LENGTH, and toInt().

Referenced by arrayKey(), checkArrayLength(), externalinterface_class_init(), foreachArray(), and registerMovieClipNative().

§ arraySize()

template<typename T , size_t N>
size_t gnash::arraySize ( T(&)  [N])

§ attachAsBroadcasterStaticInterface()

void gnash::attachAsBroadcasterStaticInterface ( as_object o)

§ attached()

bool gnash::attached ( const SharedMem mem)
inline

Check if the SharedMem has been attached.

This only checks whether the attach operation was successful, not whether the shared memory still exists and is still attached where it was initially. It is always possible for other processes to remove it while Gnash is using it, but there is nothing we can do about this.

References gnash::SharedMem::begin().

Referenced by registerLocalConnectionNative().

§ attachKeyInterface()

void gnash::attachKeyInterface ( as_object o)

§ attachLoadableInterface()

void gnash::attachLoadableInterface ( as_object where,
int  flags 
)

Attach some common AS code for Loadable objects.

This implements built-in functions.

References gnash::Global_as::createFunction(), getGlobal(), and gnash::as_object::init_member().

Referenced by loadvars_class_init(), and registerXMLNative().

§ bevelfilter_class_init()

void gnash::bevelfilter_class_init ( as_object where,
const ObjectURI uri 
)

§ bitmapdata_class_init()

void gnash::bitmapdata_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global BitmapData class.

References gnash::as_object::init_destructive_property().

§ bitmapfilter_class_init()

void gnash::bitmapfilter_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global BitmapFilter class.

References gnash::as_object::init_destructive_property().

§ blurfilter_class_init()

void gnash::blurfilter_class_init ( as_object where,
const ObjectURI uri 
)

§ boolean_class_init()

void gnash::boolean_class_init ( as_object where,
const ObjectURI uri 
)

§ button_class_init()

void gnash::button_class_init ( as_object global,
const ObjectURI uri 
)

§ cairoFormatFromVisual()

bool gnash::cairoFormatFromVisual ( const GdkVisual *  visual,
cairo_format_t *  format 
)

§ callMethod() [1/3]

as_value gnash::callMethod ( fn_call::Args args,
as_object obj,
const ObjectURI uri 
)
inline

Call a member function of this object in an AS-compatible way.

This is a variadic function to cope with a varying number of arguments. Its signature is as follows: as_value callMethod(as_object* obj, const ObjectURI& uri, const as_value& arg1, ..., const as_value& argN); If the member function exists and is a function, invoke() is called on the member with the object as the this pointer.

Parameters
objThe object to call the method on. This may be null, in which case the call is a no-op. This is because calling methods on null or non-objects in AS is harmless.
nameThe name of the method.
arg0..argNThe arguments to pass
Returns
The return value of the call (possibly undefined).

References gnash::as_object::get_member(), gnash::Global_as::getVM(), and invoke().

Referenced by arrayKey(), callMethod(), gnash::MovieLoader::clear(), gnash::XMLNode_as::clearChildren(), color_class_init(), gnash::movie_root::display(), gnash::DelayedFunctionCall::execute(), gnash::abc::Machine::execute(), externalinterface_class_init(), filereference_class_init(), getArguments(), gnash::TextField::getTextAlignment(), gnash_view_call(), gnash::AsBroadcaster::init(), gnash::AsBroadcaster::initialize(), initObjectClass(), key_class_init(), gnash::movie_root::keyEvent(), loadvars_class_init(), matrix_class_init(), mouse_class_init(), gnash::movie_root::mouseWheel(), moviecliploader_class_init(), mysql_fetch(), mysql_qetData(), gnash::NetConnection_as::notifyStatus(), gnash::amf::Reader::operator()(), gnash::movie_root::LoadCallback::processLoad(), rectangle_class_init(), registerMovieClipNative(), registerNetStreamNative(), registerSoundNative(), registerTextFieldNative(), registerXMLNative(), registerXMLSocketNative(), selection_class_init(), gnash::movie_root::setDimensions(), gnash::movie_root::setFocus(), gnash::movie_root::setStageDisplayState(), gnash::movie_root::setStageScaleMode(), string_class_init(), textfield_class_init(), and gnash::NetConnection_as::update().

§ callMethod() [2/3]

template<typename Param , typename... Params>
as_value gnash::callMethod ( fn_call::Args args,
as_object obj,
const ObjectURI uri,
Param  param,
Params...  params 
)
inline

References callMethod().

§ callMethod() [3/3]

template<typename... Params>
as_value gnash::callMethod ( as_object obj,
const ObjectURI uri,
Params...  params 
)
inline

References callMethod().

§ camera_class_init()

void gnash::camera_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global Camera class.

References emptyFunction(), and registerBuiltinClass().

Referenced by gnash::Global_as::makeObject().

§ caseless()

bool gnash::caseless ( const as_object o)
inline

§ cdiff()

template<typename T >
T gnash::cdiff ( a,
b,
double  ratio 
)

§ checkArrayLength()

void gnash::checkArrayLength ( as_object array,
const ObjectURI uri,
const as_value val 
)

Genuine arrays handle the length property in a special way.

The only distinction between Arrays and Objects is that the length property is changed when an element is added, and that changing the length can result in deleted properties.

References arrayLength(), caseless(), getStringTable(), getURI(), getVM(), gnash::NSV::PROP_LENGTH, toInt(), and gnash::ObjectURI::toString().

Referenced by gnash::as_object::set_member(), and gnash::IsStrictArray::strict().

§ clamp()

template<typename T >
T gnash::clamp ( i,
min,
max 
)
inline

§ cleanup_childpid()

gboolean gnash::cleanup_childpid ( gpointer  data)

§ close_fds()

template<std::size_t N>
void gnash::close_fds ( const int(&)  except[N])

References log_debug().

§ color_class_init()

void gnash::color_class_init ( as_object where,
const ObjectURI uri 
)

§ colorFromHexString()

rgba gnash::colorFromHexString ( const std::string &  color)

Create an RGBA value from a hex string (e.g. FF0000)

Parameters
colorA hex string in 'rrbbgg' format. This must contain only a valid hexadecimal number. It is the caller's responsibility to check it.

References _, log_error(), and gnash::rgba::parseRGB().

Referenced by gnash::TextField::setFont().

§ colormatrixfilter_class_init()

void gnash::colormatrixfilter_class_init ( as_object where,
const ObjectURI uri 
)

The prototype of flash.filters.ColorMatrixFilter is a new BitmapFilter.

Initialize the global ColorMatrixFilter class.

References gnash::as_object::init_property(), gnash::key::o, gnash::PropFlags::onlySWF8Up, registerBitmapClass(), gnash::as_object::setRelay(), and UNUSED.

§ colortransform_class_init()

void gnash::colortransform_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global ColorTransform class.

References gnash::as_object::init_destructive_property().

Referenced by gnash::ColorTransform_as::getGreenOffset().

§ constructInstance() [1/2]

as_object* gnash::constructInstance ( as_function ctor,
const as_environment env,
fn_call::Args args 
)

§ constructInstance() [2/2]

as_object* gnash::constructInstance ( as_function ctor,
const as_environment env,
FunctionArgs< as_value > &  args 
)

Construct a new object from the given constructor.

This function takes care of creating the new object and assigning the proto property. The construct() function is then called with the new object as its 'this' object.

Parameters
ctorThe constructor to run.
envThe environment to use for the function call.
argThe arguments to pass to the constructor function.
Returns
A newly-created object constructed by the specified function.

§ contextmenu_class_init()

void gnash::contextmenu_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global ContextMenu class.

References gnash::key::c, and registerBuiltinClass().

Referenced by gnash::Global_as::makeObject().

§ contextmenuitem_class_init()

void gnash::contextmenuitem_class_init ( as_object where,
const ObjectURI uri 
)

§ convertToBoolean()

as_value & gnash::convertToBoolean ( as_value v,
const VM vm 
)

Force type to bool.

Parameters
vThe value to change to a bool type.
vmThe VM to use for the conversion.
Returns
The value passed as v.

References gnash::VM::getSWFVersion(), gnash::as_value::set_bool(), gnash::as_value::to_bool(), and test::v.

§ convertToNumber()

as_value & gnash::convertToNumber ( as_value v,
const VM vm 
)

Force type to number.

Parameters
vThe value to change to a number type.
vmThe VM to use for the conversion.
Returns
The value passed as v.

References gnash::VM::getSWFVersion(), gnash::as_value::set_double(), gnash::as_value::to_number(), and test::v.

Referenced by gnash::SWF::SWFHandlers::execute().

§ convertToPrimitive()

as_value & gnash::convertToPrimitive ( as_value v,
const VM vm 
)

Convert to the appropriate primitive type.

Parameters
vThe value to change to a primitive type.
vmThe VM to use for the conversion.
Returns
The value passed as v.

References gnash::as_value::defaultPrimitive(), gnash::VM::getSWFVersion(), gnash::key::t, gnash::as_value::to_primitive(), and test::v.

Referenced by newAdd().

§ convertToString()

as_value & gnash::convertToString ( as_value v,
const VM vm 
)

Force type to string.

Parameters
vThe value to change to a string type.
vmThe VM to use for the conversion.
Returns
The value passed as v.

References gnash::VM::getSWFVersion(), gnash::as_value::set_string(), gnash::as_value::to_string(), and test::v.

Referenced by newAdd().

§ convolutionfilter_class_init()

void gnash::convolutionfilter_class_init ( as_object where,
const ObjectURI uri 
)

The prototype of flash.filters.ConvolutionFilter is a new BitmapFilter.

Initialize the global ConvolutionFilter class.

References __PRETTY_FUNCTION__, gnash::as_object::init_property(), log_unimpl(), gnash::key::o, registerBitmapClass(), gnash::as_object::setRelay(), and UNUSED.

§ copyMatrix()

void gnash::copyMatrix ( const DisplayObject from,
DisplayObject to 
)

Copy SWFMatrix and caches from given DisplayObjecta.

Parameters
fromThe DisplayObject to copy from
toThe DisplayObject to copy to.

§ CopyVariantValue()

void gnash::CopyVariantValue ( const NPVariant &  from,
NPVariant &  to 
)
inline

Makes a deep copy of a NPVariant.

Parameters
fromThe source NPVariant to copy values from.
toThe destination NPVariant.

References GetNPStringChars(), GetNPStringLen(), NPN_MemAlloc(), and NPN_RetainObject().

Referenced by gnash::GnashNPVariant::copy(), gnash::GnashNPVariant::GnashNPVariant(), and gnash::GnashNPVariant::operator=().

§ create_render_handler_gles1()

render_handler* gnash::create_render_handler_gles1 ( bool  init,
OglGlue *  glue 
)

§ create_Renderer_agg()

DSOEXPORT Renderer_agg_base * gnash::create_Renderer_agg ( const char *  pixelformat)

§ create_standalone_launcher()

void gnash::create_standalone_launcher ( const std::string &  page_url,
const std::string &  swf_url,
const std::map< std::string, std::string > &  params 
)

§ createAOS4Gui() [1/2]

std::unique_ptr<Gui> gnash::createAOS4Gui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)

§ createAOS4Gui() [2/2]

std::unique_ptr<Gui> gnash::createAOS4Gui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

§ createAQUAGui() [1/2]

std::unique_ptr<Gui> gnash::createAQUAGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)

§ createAQUAGui() [2/2]

std::unique_ptr<Gui> gnash::createAQUAGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

§ createDumpGui() [1/2]

std::unique_ptr<Gui> gnash::createDumpGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)

§ createDumpGui() [2/2]

std::unique_ptr<Gui> gnash::createDumpGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

§ createFLTKGui() [1/2]

std::unique_ptr<Gui> gnash::createFLTKGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)

§ createFLTKGui() [2/2]

std::unique_ptr<Gui> gnash::createFLTKGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

§ createGTKGui() [1/2]

std::unique_ptr<Gui> gnash::createGTKGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)

§ createGTKGui() [2/2]

std::unique_ptr<Gui> gnash::createGTKGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

§ createHaikuGui() [1/2]

std::unique_ptr<Gui> gnash::createHaikuGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)

§ createHaikuGui() [2/2]

std::unique_ptr<Gui> gnash::createHaikuGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

§ createKDEGui() [1/2]

std::unique_ptr<Gui> gnash::createKDEGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)

§ createKDEGui() [2/2]

std::unique_ptr<Gui> gnash::createKDEGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

§ createObject()

DSOTEXPORT as_object * gnash::createObject ( const Global_as gl)

§ createQt4Gui() [1/2]

std::unique_ptr<Gui> gnash::createQt4Gui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)

§ createQt4Gui() [2/2]

std::unique_ptr<Gui> gnash::createQt4Gui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

§ createRISCOSGui()

std::unique_ptr<Gui> gnash::createRISCOSGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

§ createSDLGui() [1/2]

std::unique_ptr<Gui> gnash::createSDLGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)

§ createSDLGui() [2/2]

std::unique_ptr<Gui> gnash::createSDLGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

§ createTextFieldObject()

as_object * gnash::createTextFieldObject ( Global_as gl)

Native function to create a plain object with TextField properties.

This function calls the TextField constructor.

References gnash::NSV::CLASS_TEXT_FIELD, constructInstance(), getMember(), getVM(), and gnash::as_value::to_function().

Referenced by gnash::SWF::DefineEditTextTag::createDisplayObject(), and registerTextFieldNative().

§ createVideoObject()

as_object * gnash::createVideoObject ( Global_as gl)

Native function to create a plain object with Video properties.

This adds properties to the prototype, but does not add a Video DisplayObject.

References gnash::NSV::CLASS_VIDEO, gnash::as_object::get_prototype(), and getObjectWithPrototype().

Referenced by gnash::SWF::DefineVideoStreamTag::createDisplayObject().

§ date_class_init()

void gnash::date_class_init ( as_object global,
const ObjectURI uri 
)

§ dbus_class_init()

void gnash::dbus_class_init ( as_object obj)

References createObject(), and getGlobal().

§ dbus_ext_setsockname()

as_value gnash::dbus_ext_setsockname ( const fn_call fn)

§ declareLocal()

void gnash::declareLocal ( CallFrame c,
const ObjectURI name 
)

Declare a local variable in this CallFrame.

The variable is declared and set to undefined if it doesn't exist already.

Parameters
cThe CallFrame to set the variable in.
nameThe name of the variable to declare.

References hasOwnProperty(), gnash::CallFrame::locals(), and gnash::as_object::set_member().

Referenced by gnash::Function2::call(), gnash::Function::call(), and gnash::CallFrame::hasRegisters().

§ dejagnu_class_init()

void gnash::dejagnu_class_init ( as_object obj)

§ dejagnu_fail()

as_value gnash::dejagnu_fail ( const fn_call fn)

§ dejagnu_pass()

as_value gnash::dejagnu_pass ( const fn_call fn)

§ dejagnu_totals()

as_value gnash::dejagnu_totals ( const fn_call fn)

§ delVariable()

bool gnash::delVariable ( const as_environment ctx,
const std::string &  varname,
const as_environment::ScopeStack scope 
)

Delete a variable, without support for the path, using a ScopeStack.

Parameters
ctxTimeline context to use for variable finding.
varnameVariable name. Must not contain path elements.
scopeThe Scope stack to use for lookups.

References gnash::as_object::delProperty(), getObject(), getURI(), gnash::as_environment::getVM(), gnash::key::i, and gnash::as_environment::target().

Referenced by gnash::ActionExec::delVariable(), gnash::ActionExec::getScopeStack(), and gnash::as_environment::stack_size().

§ displacementmapfilter_class_init()

void gnash::displacementmapfilter_class_init ( as_object where,
const ObjectURI uri 
)

§ DoAdvanceMovie()

void gnash::DoAdvanceMovie ( EventLoopTimerRef  inTimer,
void *  data 
)

References data.

Referenced by gnash::AquaGui::run().

§ doubleToString()

std::string gnash::doubleToString ( double  val,
int  radix 
)

§ DoWindowClose()

pascal OSStatus gnash::DoWindowClose ( EventHandlerCallRef  nextHandler,
EventRef  theEvent,
void *  userData 
)

§ dropshadowfilter_class_init()

void gnash::dropshadowfilter_class_init ( as_object where,
const ObjectURI uri 
)

§ dump_callbacks()

void gnash::dump_callbacks ( map< string, as_value > &  calls)

§ emptyFunction()

as_value gnash::emptyFunction ( const fn_call )
inline

§ ensure()

template<typename T >
T::value_type* gnash::ensure ( const fn_call fn)

Templated function to check the validity of a function call.

It throws an exception if the condition is not fulfilled, it throws an ActionTypeError, resulting in the function call being aborted and an undefined as_value returned. Note that not carrying out a function because the this pointer is undefined is not ActionScript behaviour in most cases. To avoid spreading its usage outside AS function implementations, this function now takes a fn_call as an argument.

Template Parameters
TA struct defining a value_type and an operator() that checks the as_object's validity. A pointer to the value_type is returned on success, an exception thrown on failure.
Parameters
fnThe function whose 'this' pointer should be checked.
Returns
If the cast succeeds, the pointer cast to the requested type.

References source, gnash::key::T, gnash::fn_call::this_ptr, and typeName().

Referenced by registerSoundNative().

§ enumerateProperties()

SortedPropertyList gnash::enumerateProperties ( as_object o)

Enumerate all non-hidden properties to the passed container.

NB: it is likely that this call will change the object, as accessing property values may call getter-setters. The enumeration recurses through the prototype chain. This implementation will keep track of visited object to avoid infinite loops in the prototype chain. NOTE: the Adobe player just chokes in this case. Note that the last element of the returned container is the oldest property, so iterate in reverse to mimic AS behaviour.

Parameters
oThe object whose properties should be enumerated.
Returns
A list of properties in reverse creation order.

References gnash::key::e, and gnash::as_object::visitProperties().

Referenced by getURLEncodedVars(), loadvars_class_init(), and xmlnode_class_init().

§ equal()

DSOEXPORT bool gnash::equal ( string_table st,
string_table::key  a,
string_table::key  b,
bool  caseless 
)

Check whether two keys are equivalent.

This function provides a simple way to check for equivalence either in a case sensitive or case-insensitive way. It is mainly for convenience, to reduce conditionals in the code. If the comparison is case-sensitive, the keys are equivalent if they are equal.

Parameters
stThe string table to use
aOne key to check
bThe other key to check
caselessWhether to compare in a case-insensitive way.
Returns
True if the keys are equivalent.

References gnash::string_table::noCase().

Referenced by gnash::MovieFactory::clear(), gnash::rtmp::RTMP::close(), gnash::media::MediaHandler::isFLV(), gnash::SWF::DefineBitsTag::loader(), gnash::media::FLVParser::parseNextChunk(), registerLocalConnectionNative(), registerXMLNative(), gnash::media::gst::MediaParserGst::rememberVideoFrame(), and gnash::XML_as::toString().

§ equals()

bool gnash::equals ( const as_value a,
const as_value b,
const VM vm 
)

Check if two values are equal.

Note that conversions are performed as necessary, which can result in function calls, which can have any conceivable side effect. The order of the values affects the order the conversions are performed in, so can under some circumstances change the result of the comparison. Equality comparisons depend strongly on the SWF version.

Parameters
aThe first value to compare
bThe second value to compare
vmThe VM to use for the comparison.
Returns
Whether the values are considered equal.

References gnash::as_value::equals(), and gnash::VM::getSWFVersion().

Referenced by externalinterface_class_init(), gnash::AsBroadcaster::init(), point_class_init(), rectangle_class_init(), and gnash::as_value::unflag_exception().

§ EraseIf()

template<typename Container , typename Predicate >
void gnash::EraseIf ( Container &  c,
Predicate  p 
)

Erase elements from an associative container based on a predicate.

This removes elements from a container such as a map if they fulfil a particular condition. Because keys of associative container are const, we can't do this using iterators, because we can't write to them.

References gnash::key::e, gnash::key::i, and gnash::key::p.

Referenced by gnash::as_object::set_prototype().

§ Error_class_init()

void gnash::Error_class_init ( as_object where,
const ObjectURI uri 
)

§ escapeXML()

void gnash::escapeXML ( std::string &  text)

Escape using XML entities.

Note this is not the same as a URL escape.

Referenced by gnash::XMLNode_as::clearChildren(), externalinterface_class_init(), gnash::XML_as::ignoreWhite(), and registerXMLNative().

§ externalinterface_class_init()

void gnash::externalinterface_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global ExternalInterface class.

References _, __FUNCTION__, gnash::movie_root::addExternalCallback(), gnash::StreamProvider::allow(), gnash::fn_call::arg(), arrayKey(), arrayLength(), gnash::StreamProvider::baseURL(), gnash::movie_root::callExternalJavascript(), callMethod(), gnash::Global_as::createClass(), gnash::Global_as::createFunction(), createObject(), gnash::key::e, emptyFunction(), gnash::fn_call::env(), equals(), escapeXML(), findObject(), foreachArray(), gnash::as_object::get_member(), gnash::movie_root::getAllowScriptAccess(), gnash::fn_call::getArgs(), gnash::movie_root::getControlFD(), getGlobal(), gnash::movie_root::getHostFD(), gnash::movie_root::getLevel(), getMember(), gnash::VM::getNative(), getObject(), getOwnProperty(), getRoot(), getStringTable(), getSWFVersion(), getURI(), getVM(), hasOwnProperty(), gnash::URL::hostname(), gnash::key::i, gnash::as_object::init_destructive_property(), gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::as_value::is_bool(), gnash::as_value::is_null(), gnash::as_value::is_number(), gnash::as_value::is_object(), gnash::as_value::is_string(), gnash::as_value::is_undefined(), log_debug(), LOG_ONCE, log_security(), log_unimpl(), gnash::key::m, MAXHOSTNAMELEN, gnash::key::n, name, gnash::fn_call::nargs, newAdd(), gnash::key::o, gnash::PropFlags::onlySWF8Up, gnash::ExternalInterface::parseXML(), gnash::NSV::PROP_AS_SET_PROP_FLAGS, gnash::NSV::PROP_LENGTH, gnash::NSV::PROP_TO_STRING, gnash::key::r, gnash::movie_root::runResources(), gnash::movie_root::SCRIPT_ACCESS_ALWAYS, gnash::movie_root::SCRIPT_ACCESS_NEVER, gnash::movie_root::SCRIPT_ACCESS_SAME_DOMAIN, gnash::as_value::set_null(), gnash::URL::str(), gnash::RunResources::streamProvider(), gnash::as_value::to_string(), toBool(), toNumber(), toObject(), unescapeXML(), test::v, and gnash::as_object::visitKeys().

§ fileio_asyncmode()

as_value gnash::fileio_asyncmode ( const fn_call fn)

§ fileio_class_init()

void gnash::fileio_class_init ( as_object where,
const ObjectURI  
)

References createObject(), and getGlobal().

§ fileio_fclose()

as_value gnash::fileio_fclose ( const fn_call fn)

§ fileio_feof()

as_value gnash::fileio_feof ( const fn_call fn)

References gnash::key::b.

§ fileio_fflush()

as_value gnash::fileio_fflush ( const fn_call fn)

§ fileio_fgetc()

as_value gnash::fileio_fgetc ( const fn_call fn)

References gnash::key::i.

§ fileio_fgets()

as_value gnash::fileio_fgets ( const fn_call fn)

§ fileio_fopen()

as_value gnash::fileio_fopen ( const fn_call fn)

§ fileio_fputc()

as_value gnash::fileio_fputc ( const fn_call fn)

§ fileio_fputs()

as_value gnash::fileio_fputs ( const fn_call fn)

References gnash::fn_call::arg().

§ fileio_fread()

as_value gnash::fileio_fread ( const fn_call fn)

§ fileio_fseek()

as_value gnash::fileio_fseek ( const fn_call fn)

§ fileio_ftell()

as_value gnash::fileio_ftell ( const fn_call fn)

References gnash::key::i.

§ fileio_fwrite()

as_value gnash::fileio_fwrite ( const fn_call fn)

References gnash::fn_call::arg().

§ fileio_getchar()

as_value gnash::fileio_getchar ( const fn_call fn)

References gnash::key::i.

§ fileio_gets()

as_value gnash::fileio_gets ( const fn_call fn)

§ fileio_putchar()

as_value gnash::fileio_putchar ( const fn_call fn)

References gnash::fn_call::arg(), and x.

§ fileio_puts()

as_value gnash::fileio_puts ( const fn_call fn)

References gnash::fn_call::arg().

§ fileio_scandir()

as_value gnash::fileio_scandir ( const fn_call fn)

§ fileio_unlink()

as_value gnash::fileio_unlink ( const fn_call fn)

References gnash::fn_call::arg().

§ filereference_class_init()

void gnash::filereference_class_init ( as_object where,
const ObjectURI uri 
)

§ filereferencelist_class_init()

void gnash::filereferencelist_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global FileReferenceList class.

References filereferencelist_ctor(), and registerBuiltinClass().

§ filereferencelist_ctor()

as_value gnash::filereferencelist_ctor ( const fn_call fn)

§ findDisplayObjectByTarget()

DisplayObject * gnash::findDisplayObjectByTarget ( const std::string &  tgtstr,
movie_root mr 
)

§ findObject()

DSOEXPORT as_object * gnash::findObject ( const as_environment ctx,
const std::string &  path,
const as_environment::ScopeStack scope = nullptr 
)

§ findTarget()

DisplayObject * gnash::findTarget ( const as_environment env,
const std::string &  path 
)

Find the DisplayObject referenced by the given path.

Supports both /slash/syntax and dot.syntax. This is a wrapper round findObject(). Note that only AS-referenceable DisplayObjects can be found by path, so that the returned object (if it exists) will have an associated as_object. This logic can't be reflected in the return type.

References findObject().

Referenced by color_class_init(), gnash::SWF::SWFHandlers::execute(), moviecliploader_class_init(), registerMovieClipNative(), registerSelectionNative(), and gnash::as_environment::stack_size().

§ flash_display_package_init()

void gnash::flash_display_package_init ( as_object where,
const ObjectURI uri 
)

§ flash_external_package_init()

void gnash::flash_external_package_init ( as_object where,
const ObjectURI uri 
)

§ flash_filters_package_init()

void gnash::flash_filters_package_init ( as_object where,
const ObjectURI uri 
)

§ flash_geom_package_init()

void gnash::flash_geom_package_init ( as_object where,
const ObjectURI uri 
)

§ flash_net_package_init()

void gnash::flash_net_package_init ( as_object where,
const ObjectURI uri 
)

§ flash_package_init()

void gnash::flash_package_init ( as_object where,
const ObjectURI uri 
)

§ flash_text_package_init()

void gnash::flash_text_package_init ( as_object where,
const ObjectURI uri 
)

§ foreachArray()

template<typename T >
void gnash::foreachArray ( as_object array,
T &  pred 
)

§ foreachSecond()

template<typename T , typename U >
void gnash::foreachSecond ( begin,
end,
op 
)

Call a functor on the second element of each element in a range.

Template Parameters
TAn iterator type satisfying the requirements of a forward iterator
UThe type of the functor op.
Parameters
beginThe start of the range to call op on.
endThe end of the range to call op on.
opThe function to call on each second element.

References gnash::key::_1, gnash::renderer::opengl::for_each(), and second.

Referenced by gnash::SharedObjectLibrary::markReachableResources(), gnash::movie_root::markReachableResources(), gnash::movie_root::processInvoke(), and gnash::movie_root::registerButton().

§ frnd()

int gnash::frnd ( float  f)
inline

§ fromByteString()

template<typename T , size_t N>
std::string gnash::fromByteString ( T(&)  buf[N])

A null byte after the marker or at the beginning of the listeners signifies the end of the list.

§ function_class_init()

void gnash::function_class_init ( as_object where,
const ObjectURI uri 
)

§ get()

template<typename T >
T* gnash::get ( as_object o)

Extract the DisplayObject attached to an object.

Returns
0 if no DisplayObject is attached, or if it is not the requested type
Parameters
oThe object to check.

References gnash::as_object::displayObject(), and gnash::key::T.

Referenced by gnash::abc::AbcBlock::AbcBlock(), gnash::abc::Class::addValue(), gnash::abc::Method::addValue(), gnash::abc::Class::initPrototype(), gnash::NetworkAdapter::makeStream(), and registerTextFormatNative().

§ getArguments()

as_object * gnash::getArguments ( Function callee,
as_object args,
const fn_call fn,
as_object caller 
)

Add properties to an 'arguments' object.

The 'arguments' variable is an array with an additional 'callee' member, set to the function being called.

References gnash::fn_call::arg(), callMethod(), gnash::key::i, gnash::as_object::init_member(), gnash::fn_call::nargs, gnash::NSV::PROP_CALLEE, gnash::NSV::PROP_CALLER, and gnash::NSV::PROP_PUSH.

Referenced by gnash::Function2::call(), and gnash::Function::call().

§ getClassConstructor()

as_function* gnash::getClassConstructor ( const fn_call fn,
const std::string &  s 
)
inline

Convenience function for finding a class constructor.

Only currently useful in AS2.

References gnash::fn_call::env(), findObject(), gnash::key::s, and gnash::as_value::to_function().

Referenced by arrayKey(), matrix_class_init(), point_class_init(), and rectangle_class_init().

§ getCxForm()

const SWFCxForm& gnash::getCxForm ( const DisplayObject o)
inline

§ getDisplayObjectProperty()

bool gnash::getDisplayObjectProperty ( DisplayObject obj,
const ObjectURI uri,
as_value val 
)

DisplayObject property lookup.

Get special properties.

This function is only called on the first object in the inheritance chain after the object's own properties have been checked. In AS2, any DisplayObject marks the end of the inheritance chain for lookups. Lookup order: 1. _level0.._level9

  1. Objects on the DisplayList of a MovieClip
  2. DisplayObject magic properties (_x, _y etc).
  3. MovieClips' TextField variables (this is probably not the best way to do it, but as it is done like this, this must be called here. It will cause an infinite recursion otherwise.

This gets the magic properties of DisplayObjects and handles special MovieClip properties such as DisplayList members.

Parameters
keyThe uri of the property to get.
objThe DisplayObject whose property should be got
valAn as_value to be set to the value of the property.

References caseless(), gnash::DisplayObject::getAsRoot(), gnash::MovieClip::getDisplayListObject(), getGlobal(), gnash::movie_root::getLevel(), getName(), getObject(), getRoot(), getStringTable(), getSWFVersion(), gnash::MovieClip::getTextFieldVariables(), isLevelTarget(), gnash::ObjectURI::noCase(), gnash::key::o, gnash::NSV::PROP_uGLOBAL, gnash::NSV::PROP_uROOT, gnash::DisplayObject::to_movie(), and gnash::ObjectURI::toString().

Referenced by gnash::as_object::get_member().

§ getGlobal() [1/3]

Global_as& gnash::getGlobal ( const fn_call fn)
inline

§ getGlobal() [2/3]

DSOTEXPORT Global_as & gnash::getGlobal ( const as_environment env)

References gnash::VM::getGlobal(), and gnash::as_environment::getVM().

Referenced by accessibility_class_init(), gnash::MovieClip::add_display_object(), array_class_init(), arrayKey(), attachAsBroadcasterStaticInterface(), attachKeyInterface(), attachLoadableInterface(), boolean_class_init(), button_class_init(), gnash::Function2::call(), gnash::Function::call(), gnash::movie_root::callExternalCallback(), gnash::BufferedAudioStreamer::cleanAudioQueue(), color_class_init(), constructInstance(), contextmenuitem_class_init(), date_class_init(), dbus_class_init(), dejagnu_class_init(), displacementmapfilter_class_init(), gnash::MovieClip::duplicateMovieClip(), Error_class_init(), externalinterface_class_init(), fileio_class_init(), fileio_scandir(), filereference_class_init(), function_class_init(), gnash::as_object::get_super(), gnash::NetStream_as::get_video(), getDisplayObjectProperty(), gnash::VM::getSharedObjectLibrary(), getVM(), gtkext_container_add(), gtkext_container_set_border_width(), gtkext_signal_connect(), gtkext_signal_connect_swapped(), gtkext_widget_show(), gnash::AsBroadcaster::initialize(), initObjectClass(), gnash::SWF::ButtonRecord::instantiate(), key_class_init(), lirc_class_init(), loadvars_class_init(), gnash::Global_as::makeObject(), matrix_class_init(), mouse_class_init(), movieclip_class_init(), moviecliploader_class_init(), mysql_class_init(), mysql_fetch(), gnash::NetConnection_as::notifyStatus(), number_class_init(), point_class_init(), rectangle_class_init(), registerBitmapClass(), registerBitmapDataNative(), registerBuiltinClass(), registerBuiltinObject(), registerCameraNative(), registerColorTransformNative(), registerDateNative(), registerMicrophoneNative(), registerMovieClipNative(), registerSharedObjectNative(), registerSoundNative(), registerSystemNative(), registerTextFieldNative(), registerXMLNative(), registerXMLSocketNative(), gnash::MovieClip::replace_display_object(), selection_class_init(), sharedobject_class_init(), sound_class_init(), string_class_init(), textfield_class_init(), textformat_class_init(), textrenderer_class_init(), transform_class_init(), gnash::NetConnection_as::update(), video_class_init(), xml_class_init(), and xmlnode_class_init().

§ getGlobal() [3/3]

DSOTEXPORT Global_as & gnash::getGlobal ( const as_object o)

Get the Global object from an as_object.

References gnash::VM::getGlobal(), and gnash::as_object::vm().

§ getGnashExecutable()

std::string gnash::getGnashExecutable ( )

References log_error().

§ getHeight()

as_value gnash::getHeight ( DisplayObject o)

§ getIndexedProperty()

void gnash::getIndexedProperty ( size_t  index,
DisplayObject o,
as_value val 
)

Get a property by its numeric index.

Used by ASHandlers to get the DisplayObject properties indexed by number

Parameters
indexThe index of the property to get.
oThe DisplayObject whose property should be got
valAn as_value to be set to the value of the property.

References gnash::key::o, gnash::key::s, and gnash::as_value::set_undefined().

Referenced by gnash::SWF::SWFHandlers::execute().

§ getMatrix()

const SWFMatrix& gnash::getMatrix ( const DisplayObject o)
inline

§ getMember()

as_value gnash::getMember ( as_object o,
const ObjectURI uri 
)
inline

§ getName()

string_table::key gnash::getName ( const ObjectURI o)
inline

§ GetNPStringChars()

const NPUTF8* gnash::GetNPStringChars ( const NPString &  str)
inline

§ GetNPStringLen()

const uint32_t& gnash::GetNPStringLen ( const NPString &  str)
inline

§ getObject()

as_object* gnash::getObject ( const DisplayObject d)
inline

Return the as_object associated with a DisplayObject if it exists.

Parameters
dThe DisplayObject to check. May be null.
Returns
null if either the DisplayObject or the associated object is null. Otherwise the associated object.

References gnash::key::o, gnash::DisplayObject::object(), and gnash::SWF::operator<<().

Referenced by gnash::MovieClip::add_display_object(), gnash::DisplayObject::allowHandCursor(), gnash::Function2::call(), gnash::MovieClip::call_frame_actions(), gnash::MovieLoader::clear(), gnash::MovieClip::construct(), gnash::MovieClip::constructAsScriptObject(), delVariable(), gnash::MovieClip::duplicateMovieClip(), gnash::SWF::DoABCTag::executeActions(), gnash::SWF::SymbolClassTag::executeActions(), gnash::SWF::StreamSoundBlockTag::executeActions(), gnash::SWF::StartSoundTag::executeActions(), gnash::SWF::ScriptLimitsTag::executeState(), externalinterface_class_init(), gnash::movie_root::findCharacterByTarget(), findObject(), gnash::MovieClip::get_frame_number(), gnash::TextField::get_htmltext_value(), gnash::TextField::get_text_value(), gnash::MovieClip::getBounds(), gnash::TextField::getDefinitionVersion(), gnash::MovieClip::getDisplayListObject(), getDisplayObjectProperty(), gnash::ActionExec::getTarget(), gnash::DisplayObject::getTargetPath(), gnash::TextField::getTextAlignment(), gnash::ActionExec::getThisPointer(), getVariable(), gnash_view_call(), gnash::MovieClip::handleFocus(), gnash::SWF::ButtonRecord::instantiate(), gnash::Button::isEnabled(), gnash::MovieClip::loadVariables(), gnash::Button::mouseEvent(), gnash::movie_root::mouseWheel(), gnash::MovieClip::notifyEvent(), parsePath(), gnash::MovieClip::pathElement(), gnash::DisplayObject::pathElement(), gnash::movie_root::processInvoke(), gnash::MovieClip::queueLoad(), registerMovieClipNative(), gnash::MovieClip::replace_display_object(), gnash::TextField::replaceSelection(), gnash::movie_root::setFocus(), setHeight(), gnash::MovieClip::setTextFieldVariables(), gnash::TextField::setTextValue(), gnash::MovieClip::setVariables(), gnash::as_value::to_object(), gnash::Button::trackAsMenu(), gnash::MovieClip::trackAsMenu(), gnash::TextField::updateText(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().

§ getObjectWithPrototype()

DSOTEXPORT as_object * gnash::getObjectWithPrototype ( Global_as gl,
const ObjectURI c 
)

§ getOwnProperty()

as_value gnash::getOwnProperty ( as_object o,
const ObjectURI uri 
)
inline

Get an own member of an object.

This is a wrapper round as_object::getOwnProperty that returns undefined if the member is not found. Note: this requires two steps in ActionScript (hasOwnProperty + lookup), so is probably only for use in native functions.

Parameters
uriProperty identifier.
oThe object whose own member is required.
Returns
Value of the member (possibly undefined), or undefined if not found. Use get_member if you need to know whether it was found or not.

References gnash::as_object::getOwnProperty(), gnash::Property::getValue(), and gnash::key::p.

Referenced by arrayKey(), arrayLength(), gnash::Global_as::createClass(), gnash::Global_as::createFunction(), externalinterface_class_init(), foreachArray(), and gnash::VM::getNative().

§ getPathElement()

as_object * gnash::getPathElement ( as_object o,
const ObjectURI uri 
)

Resolve the given relative path component.

Path components are only objects, if the given string points to a non-object member, NULL is returned.

Main use if for getvariable and settarget resolution, currently implemented in as_environment.

References gnash::as_object::get_member(), getVM(), gnash::as_value::is_object(), and toObject().

Referenced by gnash::movie_root::findCharacterByTarget(), gnash::IsEnumerable::operator()(), and parsePath().

§ getRoot() [1/3]

movie_root& gnash::getRoot ( const fn_call fn)
inline

§ getRoot() [2/3]

movie_root & gnash::getRoot ( const as_environment env)

§ getRoot() [3/3]

DSOTEXPORT movie_root & gnash::getRoot ( const as_object o)

§ getRunResources()

const RunResources & gnash::getRunResources ( const as_object o)

§ getStringTable() [1/3]

string_table& gnash::getStringTable ( const fn_call fn)
inline

§ getStringTable() [2/3]

string_table & gnash::getStringTable ( const as_environment env)

§ getStringTable() [3/3]

DSOTEXPORT string_table & gnash::getStringTable ( const as_object o)

§ getSWFVersion() [1/3]

int gnash::getSWFVersion ( const fn_call fn)
inline

§ getSWFVersion() [2/3]

int gnash::getSWFVersion ( const as_environment env)

§ getSWFVersion() [3/3]

int gnash::getSWFVersion ( const as_object o)

Get the executing VM version from an as_object.

References gnash::VM::getSWFVersion(), and gnash::as_object::vm().

§ getURI() [1/2]

ObjectURI gnash::getURI ( const VM vm,
const std::string &  str,
bool  lowerCaseHint = false 
)
inline

References gnash::string_table::find(), gnash::VM::getStringTable(), and UNUSED.

Referenced by gnash::MovieClip::add_display_object(), gnash::as_object::add_property(), arrayKey(), checkArrayLength(), color_class_init(), contextmenuitem_class_init(), delVariable(), gnash::movie_root::display(), gnash::MovieClip::duplicateMovieClip(), Error_class_init(), externalinterface_class_init(), gnash::movie_root::findCharacterByTarget(), findObject(), gnash::TextField::getDefinitionVersion(), gnash::DisplayObject::getNextUnnamedInstanceName(), getVariable(), gnash_view_call(), gnash::AsBroadcaster::init(), gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::as_object::init_readonly_property(), initObjectClass(), gnash::movie_root::keyEvent(), loadvars_class_init(), gnash::Global_as::makeObject(), matrix_class_init(), gnash::movie_root::mouseWheel(), moviecliploader_class_init(), gnash::amf::Reader::operator()(), parsePath(), gnash::movie_root::processInvoke(), rectangle_class_init(), registerBitmapClass(), gnash::Global_as::registerClasses(), registerColorTransformNative(), registerDateNative(), registerLocalConnectionNative(), registerMovieClipNative(), registerSharedObjectNative(), registerSoundNative(), registerSystemNative(), registerTextFieldNative(), registerXMLNative(), gnash::MovieClip::replace_display_object(), gnash::DumpGui::run(), gnash::XMLNode_as::setAttribute(), gnash::movie_root::setDimensions(), gnash::ActionExec::setLocalVariable(), gnash::as_object::setPropFlags(), setVariable(), gnash::MovieClip::setVariables(), gnash::Button::trackAsMenu(), gnash::MovieClip::trackAsMenu(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().

§ getURI() [2/2]

ObjectURI gnash::getURI ( const VM ,
NSV::NamedStrings  s 
)
inline

§ getURLEncodedVars()

std::string gnash::getURLEncodedVars ( as_object o)

Get url-encoded variables.

This method will be used for loadVariables and loadMovie calls, to encode variables for sending over a network. Variables starting with a dollar sign will be skipped, as non-enumerable ones.

Parameters
oThe object whose properties should be encoded.
Returns
the url-encoded variables string without any leading delimiter.

References data, gnash::key::e, gnash::URL::encode(), enumerateProperties(), getStringTable(), gnash::key::i, and name.

Referenced by gnash::MovieClip::loadVariables(), gnash::IsEnumerable::operator()(), and registerMovieClipNative().

§ getVariable()

as_value gnash::getVariable ( const as_environment ctx,
const std::string &  varname,
const as_environment::ScopeStack scope,
as_object **  retTarget = nullptr 
)

Return the (possibly undefined) value of the named var.

Parameters
ctxTimeline context to use for variable finding.
varnameVariable name. Can contain path elements.
scopeThe Scope stack to use for lookups.
retTargetIf not null, the pointer will be set to the actual object containing the found variable (if found).

References gnash::key::d, gnash::as_object::displayObject(), findObject(), gnash::as_object::get_member(), getObject(), getURI(), gnash::as_environment::getVM(), gnash::key::m, parsePath(), path, gnash::as_environment::target(), and gnash::DisplayObject::to_movie().

Referenced by gnash::ActionExec::getScopeStack(), gnash::ActionExec::getVariable(), gnash::movie_root::processInvoke(), and gnash::as_environment::stack_size().

§ GetVariableCallback()

bool gnash::GetVariableCallback ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)

§ getVM() [1/3]

VM& gnash::getVM ( const as_environment env)
inline

References DSOTEXPORT, getGlobal(), getRoot(), getStringTable(), getSWFVersion(), and gnash::as_environment::getVM().

Referenced by gnash::ActionExec::ActionExec(), gnash::MovieClip::add_display_object(), gnash::PropertyList::addDestructiveGetter(), gnash::PropertyList::addGetterSetter(), gnash::abc::Class::addMethod(), gnash::DisplayObject::allowHandCursor(), array_class_init(), arrayKey(), arrayLength(), attachAsBroadcasterStaticInterface(), attachKeyInterface(), bevelfilter_class_init(), gnash::DisplayObject::blendMode(), blurfilter_class_init(), boolean_class_init(), gnash::builtin_function::call(), gnash::Trigger::call(), gnash::Function2::call(), gnash::Function::call(), gnash::MovieClip::call_frame_actions(), checkArrayLength(), gnash::BufferedAudioStreamer::cleanAudioQueue(), gnash::Timer::clearInterval(), color_class_init(), gnash::as_function::construct(), gnash::MovieClip::constructAsScriptObject(), contextmenuitem_class_init(), gnash::Global_as::createArray(), createTextFieldObject(), gnash::PropertyList::delProperty(), dropshadowfilter_class_init(), gnash::MovieClip::duplicateMovieClip(), Error_class_init(), gnash::SWF::SWFHandlers::execute(), gnash::EventCode::execute(), gnash::abc::Machine::execute(), gnash::SWF::DoABCTag::executeActions(), gnash::SWF::SymbolClassTag::executeActions(), gnash::Timer::executeAndReset(), externalinterface_class_init(), fileio_asyncmode(), fileio_fputc(), fileio_fseek(), fileio_scandir(), foreachArray(), function_class_init(), gnash::MovieClip::get_frame_number(), gnash::as_object::get_member(), gnash::as_object::get_prototype(), gnash::MovieClip::getBounds(), gnash::TextField::getDefinitionVersion(), getObjectWithPrototype(), getPathElement(), gnash::PropertyList::getProperty(), gnash::Property::getValue(), glowfilter_class_init(), gradientbevelfilter_class_init(), gradientglowfilter_class_init(), gnash::MovieClip::handleFocus(), gnash::AsBroadcaster::init(), gnash::AsBroadcaster::initialize(), initObjectClass(), gnash::as_object::instanceOf(), gnash::Button::isEnabled(), key_is_down(), loadvars_class_init(), math_class_init(), matrix_class_init(), mouse_class_init(), moviecliploader_class_init(), mysql_qetData(), number_class_init(), gnash::XMLNode_as::object(), gnash::amf::Reader::operator()(), gnash::ActionExec::operator()(), gnash::MovieClip::pathElement(), point_class_init(), rectangle_class_init(), registerAccessibilityNative(), registerArrayNative(), registerBitmapClass(), registerBitmapDataNative(), registerBitmapFilterNative(), registerBooleanNative(), registerButtonNative(), registerCameraNative(), registerColorNative(), registerColorTransformNative(), registerDateNative(), registerExternalInterfaceNative(), registerFunctionNative(), registerKeyNative(), registerLoadableNative(), registerLocalConnectionNative(), registerMathNative(), registerMicrophoneNative(), registerMovieClipLoaderNative(), registerMovieClipNative(), gnash::Mouse_as::registerNative(), gnash::AsBroadcaster::registerNative(), registerNetStreamNative(), registerNumberNative(), registerObjectNative(), registerSelectionNative(), registerSharedObjectNative(), registerSoundNative(), registerStageNative(), registerStringNative(), registerSystemNative(), registerTextFieldNative(), registerTextFormatNative(), registerTextSnapshotNative(), registerVideoNative(), registerXMLNative(), registerXMLNodeNative(), registerXMLSocketNative(), gnash::MovieClip::replace_display_object(), gnash::XMLNode_as::setAttribute(), gnash::PropertyList::setFlags(), setHeight(), gnash::ActionExec::setLocalVariable(), gnash::PropertyList::setValue(), gnash::Property::setValue(), gnash::MovieClip::setVariables(), string_class_init(), textformat_class_init(), gnash::as_value::to_primitive(), toSWFMatrix(), gnash::Button::trackAsMenu(), gnash::MovieClip::trackAsMenu(), transform_class_init(), gnash::NetConnection_as::update(), xml_class_init(), xmlnode_class_init(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().

§ getVM() [2/3]

VM& gnash::getVM ( const fn_call fn)
inline

§ getVM() [3/3]

DSOTEXPORT VM & gnash::getVM ( const as_object o)

Get the VM from an as_object.

References gnash::as_object::vm().

§ getWorldCxForm()

SWFCxForm gnash::getWorldCxForm ( const DisplayObject d)
inline

Get concatenated color transform of a DisplayObject.

Maps from our local space into normal color space.

References gnash::SWFCxForm::concatenate(), getCxForm(), and gnash::DisplayObject::parent().

§ getWorldMatrix()

SWFMatrix gnash::getWorldMatrix ( const DisplayObject d,
bool  includeRoot = true 
)
inline

§ glowfilter_class_init()

void gnash::glowfilter_class_init ( as_object where,
const ObjectURI uri 
)

§ gnashSleep()

void gnash::gnashSleep ( time_t  useconds)
inline

§ GotoFrame()

bool gnash::GotoFrame ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)

§ gradientbevelfilter_class_init()

void gnash::gradientbevelfilter_class_init ( as_object where,
const ObjectURI uri 
)

§ gradientglowfilter_class_init()

void gnash::gradientglowfilter_class_init ( as_object where,
const ObjectURI uri 
)

§ gradientMatrix()

SWFMatrix gnash::gradientMatrix ( GradientFill::Type  t,
const SWFMatrix m 
)

§ gtkext_button_new_with_label()

as_value gnash::gtkext_button_new_with_label ( const fn_call fn)

§ gtkext_class_init()

void gnash::gtkext_class_init ( as_object obj)

§ gtkext_container_add()

as_value gnash::gtkext_container_add ( const fn_call fn)

§ gtkext_container_set_border_width()

as_value gnash::gtkext_container_set_border_width ( const fn_call fn)

§ gtkext_main()

as_value gnash::gtkext_main ( const fn_call fn)

§ gtkext_signal_connect()

as_value gnash::gtkext_signal_connect ( const fn_call fn)

§ gtkext_signal_connect_swapped()

as_value gnash::gtkext_signal_connect_swapped ( const fn_call fn)

§ gtkext_widget_show()

as_value gnash::gtkext_widget_show ( const fn_call fn)

§ gtkext_window_new()

as_value gnash::gtkext_window_new ( const fn_call fn)

§ hasOwnProperty()

bool gnash::hasOwnProperty ( as_object o,
const ObjectURI uri 
)
inline

Return true if this object has the named property.

Parameters
oThe object whose property should be searched for.
uriProperty identifier.
Returns
true if the object has the property, false otherwise.

References gnash::key::c, DSOTEXPORT, getObjectWithPrototype(), and gnash::as_object::getOwnProperty().

Referenced by declareLocal(), externalinterface_class_init(), and initObjectClass().

§ HasScripting()

bool gnash::HasScripting ( )
inline

References NPNFuncs.

Referenced by remove_handler().

§ hexify()

DSOEXPORT std::string gnash::hexify ( const unsigned char *  bytes,
size_t  length,
bool  ascii 
)

Convert a sequence of bytes to hex or ascii format.

Parameters
bytesthe array of bytes to process
lengththe number of bytes to read. Callers are responsible for checking that length does not exceed the array size.
asciiwhether to return in ascii or space-separated hex format.
Returns
a string representation of the byte sequence.

Referenced by dump_shm(), handleInvoke(), log_abc(), gnash::action_buffer::readConstantPool(), and gnash::rtmp::RTMP::sendPacket().

§ infinite_to_zero()

double gnash::infinite_to_zero ( double  x)
inline

§ init_dejagnu_instance()

std::unique_ptr<as_object> gnash::init_dejagnu_instance ( )

Return an instance.

§ init_gtkext_instance()

std::unique_ptr< as_object > gnash::init_gtkext_instance ( )

Return an instance.

Referenced by gnash::GtkExt::setWindow().

§ initObjectClass()

void gnash::initObjectClass ( as_object proto,
as_object where,
const ObjectURI uri 
)

§ intrusive_ptr_add_ref()

void gnash::intrusive_ptr_add_ref ( const ref_counted o)
inline

§ intrusive_ptr_release()

void gnash::intrusive_ptr_release ( const ref_counted o)
inline

§ invisible()

bool gnash::invisible ( const SWFCxForm cx)
inline

Returns true when the SWFCxForm leads to alpha == 0.

Not the _alpha property, but the visible alpha related to dislpay. The two might be completely different. eg. mc._alpha ranges in [-32768, 32767], but the alpha on screen ranges in [0, 255]

References gnash::SWFCxForm::aa, gnash::SWFCxForm::ab, and operator<<().

Referenced by gnash::MovieClip::add_invalidated_bounds().

§ invoke()

DSOEXPORT as_value gnash::invoke ( const as_value method,
const as_environment env,
as_object this_ptr,
fn_call::Args args,
as_object super = nullptr,
const movie_definition callerDef = nullptr 
)
inline

§ is_little_endian_host()

bool gnash::is_little_endian_host ( )

§ isButtonEvent()

bool gnash::isButtonEvent ( const event_id e)

§ isFinite()

bool gnash::isFinite ( double  d)
inline

§ isInf()

template<typename T >
bool gnash::isInf ( const T &  num)
inline

§ isKeyEvent()

bool gnash::isKeyEvent ( const event_id e)

Check whether an event is a keyboard event.

Parameters
eThe event to check
Returns
True if it is

References gnash::event_id::id(), gnash::event_id::KEY_DOWN, gnash::event_id::KEY_PRESS, and gnash::event_id::KEY_UP.

Referenced by gnash::MovieClip::notifyEvent(), and operator<().

§ isLevelTarget()

bool gnash::isLevelTarget ( int  version,
const std::string &  name,
unsigned int &  levelno 
)

Return true if the given string can be interpreted as a _level name.

Parameters
nameThe target string. Will be considered case-insensitive if VM version is < 7.
levelnoOutput parameter, will be set to the level number, if true is returned

Referenced by gnash::MovieLoader::clear(), getDisplayObjectProperty(), and moviecliploader_class_init().

§ isNaN()

template<typename T >
bool gnash::isNaN ( const T &  num)
inline

§ isNativeType()

template<typename T >
bool gnash::isNativeType ( const as_object obj,
T *&  relay 
)

Check whether the object is an instance of a known type.

This is used to check the type of certain objects when it can't be done through ActionScript and properties. Examples include conversion of Date and String objects.

Template Parameters
TThe expected native type
Parameters
objThe object whose type should be tested
relayThis points to the native type information if the object is of the expected type
Returns
If the object is of the expected type, true; otherwise false.

References gnash::as_object::relay(), and gnash::key::T.

Referenced by gnash::BufferedAudioStreamer::cleanAudioQueue(), gnash::as_value::defaultPrimitive(), registerBitmapDataNative(), registerColorTransformNative(), registerMovieClipNative(), registerTextFieldNative(), registerVideoNative(), registerXMLNative(), gnash::as_value::to_string(), transform_class_init(), and xmlnode_class_init().

§ IsPlaying()

bool gnash::IsPlaying ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)

§ isReferenceable()

bool gnash::isReferenceable ( const DisplayObject d)
inline

§ key_class_init()

void gnash::key_class_init ( as_object where,
const ObjectURI uri 
)

§ key_get_ascii()

as_value gnash::key_get_ascii ( const fn_call fn)

Return the ascii number of the last key pressed.

References gnash::key::ASCII, gnash::key::codeMap, getRoot(), and gnash::movie_root::lastKeyEvent().

Referenced by registerKeyNative().

§ key_get_code()

as_value gnash::key_get_code ( const fn_call fn)

Returns the keycode of the last key pressed.

References gnash::key::codeMap, getRoot(), gnash::key::KEY, and gnash::movie_root::lastKeyEvent().

Referenced by registerKeyNative().

§ key_is_accessible()

as_value gnash::key_is_accessible ( const fn_call )

References _, and log_unimpl().

Referenced by attachKeyInterface().

§ key_is_down()

as_value gnash::key_is_down ( const fn_call fn)

§ key_is_toggled()

as_value gnash::key_is_toggled ( const fn_call )

Given the keycode of NUM_LOCK or CAPSLOCK, returns true if the associated state is on.

References _, and log_unimpl().

Referenced by registerKeyNative().

§ lerp() [1/2]

rgba DSOEXPORT gnash::lerp ( const rgba a,
const rgba b,
float  f 
)

§ lerp() [2/2]

template<typename T >
T gnash::lerp ( a,
b,
f 
)
inline

§ linearToSRGB()

double gnash::linearToSRGB ( double  s)

Convert linear RGB colorspace to sRGB.

References gnash::key::a, gnash::key::s, and gnash::key::T.

Referenced by cdiff().

§ lirc_class_init()

void gnash::lirc_class_init ( as_object obj)

References createObject(), and getGlobal().

§ lirc_ext_getbutton()

as_value gnash::lirc_ext_getbutton ( const fn_call fn)

§ lirc_ext_getkey()

as_value gnash::lirc_ext_getkey ( const fn_call fn)

§ lirc_ext_init()

as_value gnash::lirc_ext_init ( const fn_call fn)

§ LoadMovie()

bool gnash::LoadMovie ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)

§ loadvars_class_init()

void gnash::loadvars_class_init ( as_object where,
const ObjectURI uri 
)

§ localconnection_class_init()

void gnash::localconnection_class_init ( as_object where,
const ObjectURI uri 
)

§ log_abc()

template<typename StringType , typename... Args>
void gnash::log_abc ( StringType  msg,
Args...  args 
)
inline

§ log_action()

template<typename StringType , typename... Args>
void gnash::log_action ( StringType  msg,
Args...  args 
)
inline

§ log_aserror()

template<typename StringType , typename... Args>
void gnash::log_aserror ( StringType  msg,
Args...  args 
)
inline

References log_impl().

Referenced by arrayKey(), gnash::NetConnection_as::call(), gnash::MovieClip::call_frame_actions(), gnash::BufferedAudioStreamer::cleanAudioQueue(), color_class_init(), gnash::Button::construct(), gnash::movie_root::dropLevel(), gnash::MovieClip::duplicateMovieClip(), gnash::SWF::SWFHandlers::execute(), gnash::abc::Machine::execute(), fileio_fopen(), findObject(), function_class_init(), gnash::as_object::get_member(), gnash::MovieClip::goto_frame(), gnash::AsBroadcaster::init(), initObjectClass(), gnash::XMLNode_as::insertBefore(), invoke(), key_is_down(), gnash::Global_as::makeObject(), matrix_class_init(), moviecliploader_class_init(), mysql_fetch(), mysql_qetData(), mysql_query(), parsePath(), gnash::NetStream_as::play(), point_class_init(), gnash::as_object::prototypeOf(), gnash::ActionExec::pushWith(), rectangle_class_init(), registerBitmapDataNative(), registerColorTransformNative(), registerDateNative(), registerLocalConnectionNative(), registerMovieClipNative(), registerSelectionNative(), registerSharedObjectNative(), registerSoundNative(), registerStageNative(), registerTextFieldNative(), registerVideoNative(), registerXMLNative(), registerXMLSocketNative(), gnash::MovieClip::removeMovieClip(), gnash::as_object::set_member(), gnash::TextField::setFont(), setHeight(), setIndexedProperty(), setVariable(), string_class_init(), gnash::DisplayList::swapDepths(), gnash::movie_root::swapLevels(), textformat_class_init(), transform_class_init(), gnash::NetConnection_as::update(), xmlnode_class_init(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().

§ log_debug()

template<typename StringType , typename... Args>
void gnash::log_debug ( StringType  msg,
Args...  args 
)
inline

References log_impl().

Referenced by gnash::VaapiContext::acquireSurface(), gnash::movie_root::add_invalidated_bounds(), gnash::as_object::add_property(), gnash::GC::addCollectable(), gnash::sprite_definition::addControlTag(), gnash::PropertyList::addDestructiveGetter(), gnash::PropertyList::addGetterSetter(), gnash::GnashPluginScriptObject::AddMethod(), gnash::MovieClip::advance(), gnash::PlayHead::advanceIfConsumed(), gnash::TouchDevice::apply_ts_calibration(), gnash::renderer::openvg::OpenVGBitmap::applyPatternBitmap(), gnash::SharedMem::attach(), gnash::BufferedAudioStreamer::attachAuxStreamer(), gnash::renderer::EGLDevice::attachWindow(), gnash::media::gst::audio_bus_call(), gnash::media::ffmpeg::AudioDecoderFfmpeg::AudioDecoderFfmpeg(), gnash::media::AudioDecoderSimple::AudioDecoderSimple(), gnash::sound::AOS4_sound_handler::audioTask(), gnash::GnashVaapiImage::begin(), gnash::renderer::EGLDevice::bindClient(), gnash::Renderer::bounds_in_clipping_area(), gnash::media::MediaParser::bufferFull(), gnash::media::gst::bus_call(), gnash::MouseDevice::check(), gnash::TouchDevice::check(), gnash::EventDevice::check(), cleanup_childpid(), gnash::MovieLoader::clear(), gnash::XMLNode_as::clearChildren(), gnash::rtmp::RTMP::close(), close_fds(), gnash::MouseDevice::command(), gnash::gui::GtkOvgGlue::configure(), gnash::Socket::connect(), gnash::rtmp::RTMP::connect(), gnash::Socket::connected(), gnash::GnashPluginScriptObject::Construct(), gnash::MovieClip::construct(), gnash::MovieClip::constructAsScriptObject(), create_Renderer_agg(), gnash::sound::sound_handler::create_sound(), gnash::gui::FBAggGlue::createRenderHandler(), gnash::gui::FBOvgGlue::createRenderHandler(), gnash::media::ffmpeg::AudioDecoderFfmpeg::decode(), gnash::sound::sound_handler::delete_sound(), gnash::BufferedAudioStreamer::detachAuxStreamer(), gnash::Video::display(), gnash::TextField::display(), gnash::movie_root::display(), gnash::SWF::TextRecord::displayRecords(), gnash::BitmapData_as::draw(), gnash::abc::Namespace::dump(), gnash::renderer::rawfb::RawFBDevice::dump(), gnash::PropertyList::dump(), gnash::as_object::dump_members(), dump_shm(), gnash::sound::EmbedSoundInst::EmbedSoundInst(), gnash::GnashPluginScriptObject::Enumerate(), gnash::SWF::SWFHandlers::execute(), gnash::abc::Machine::execute(), gnash::MovieClip::execute_init_action_buffer(), gnash::SWF::SymbolClassTag::executeActions(), gnash::SWF::DoABCTag::executeActions(), gnash::SWF::ScriptLimitsTag::executeState(), gnash::Extension::Extension(), gnash::ExternalInterface::ExternalEventCheck(), externalinterface_class_init(), gnash::BufferedAudioStreamer::fetch(), gnash::sound::Mkit_sound_handler::fetchSamples(), gnash::sound::SDL_sound_handler::fetchSamples(), gnash::sound::AOS4_sound_handler::fetchSamples(), gnash::sound::sound_handler::fetchSamples(), gnash::SWF::file_attributes_loader(), gnash::movie_root::findCharacterByTarget(), gnash::GC::fuzzyCollect(), gnash::GC::GC(), gnash::media::gst::GstUtil::get_audiosink_element(), gnash::SWFMovieDefinition::get_loading_frame(), gnash::media::gst::MediaParserGst::getBytesLoaded(), gnash::TextField::getDefinitionVersion(), gnash::SharedLib::getDllSymbol(), gnash::media::MediaParser::getId3Info(), gnash::SharedLib::getInitEntry(), gnash::GnashPluginScriptObject::GetProperty(), gnash::movie_root::getRegisteredClass(), gnash::sound::sound_handler::getStreamBlock(), gnash::movie_root::getURL(), gnash::nsPluginInstance::GetValue(), gnash::GnashPluginScriptObject::GetVariable(), GetVariableCallback(), nsPluginInstance::getVersion(), gnash::BitsReader::gotBits(), gnash::MovieClip::goto_frame(), GotoFrame(), handleInvoke(), gnash::rtmp::RTMP::handlePacket(), gnash::GnashPluginScriptObject::HasMethod(), gnash::GnashPluginScriptObject::HasProperty(), gnash::media::ffmpeg::VideoDecoderFfmpeg::height(), gnash::HostFunctionReport::HostFunctionReport(), gnash::SWFMovieDefinition::importResources(), gnash::GtkGui::init(), gnash::gui::GtkOvgGlue::init(), gnash::gui::FBOvgGlue::init(), gnash::renderer::openvg::Renderer_ovg::init(), gnash::Qt4Gui::init(), gnash::gui::FBGui::init(), gnash::MouseDevice::init(), gnash::TouchDevice::init(), gnash::EventDevice::init(), gnash::renderer::rawfb::RawFBDevice::initDevice(), gnash::renderer::EGLDevice::initDevice(), gnash::abc::Machine::initMachine(), gnash::as_object::instanceOf(), gnash::abc::Machine::instantiateClass(), gnash::GnashPluginScriptObject::Invoke(), gnash::GnashPluginScriptObject::InvokeDefault(), IsPlaying(), gnash::SDLGui::key_event(), gnash::SWF::DefineBitsTag::loader(), gnash::SWF::SymbolClassTag::loader(), gnash::MovieLoader::loadMovie(), LoadMovie(), gnash::abc::AbcBlock::locateClass(), gnash::zlib_adapter::make_inflater(), gnash::MovieFactory::makeMovie(), gnash::Global_as::makeObject(), gnash::NetworkAdapter::makeStream(), gnash::media::gst::VideoInputGst::makeWebcamDeviceSelection(), gnash::GcResource::markReachableResources(), gnash::GnashPluginScriptObject::marshalConstruct(), gnash::GnashPluginScriptObject::marshalEnumerate(), gnash::GnashPluginScriptObject::marshalHasMethod(), matrix_class_init(), gnash::media::ffmpeg::MediaParserFfmpeg::MediaParserFfmpeg(), gnash::SWF::metadata_loader(), gnash::MovieLoader::MovieLoader(), newAdd(), gnash::media::MediaParser::nextAudioFrame(), gnash::media::MediaParser::nextVideoFrame(), gnash::Gui::notify_key_event(), gnash::MovieClip::notifyEvent(), gnash::Gui::notifyMouseMove(), NS_PluginInitialize(), NS_PluginShutdown(), gnash::SharedLib::openLib(), gnash::renderer::openvg::OpenVGBitmap::OpenVGBitmap(), gnash::DisplayList::operator!=(), gnash::renderer::openvg::StyleHandler::operator()(), gnash::amf::Reader::operator()(), gnash::ActionExec::operator()(), Pan(), gnash::media::FLVParser::parseNextChunk(), parsePath(), gnash::sound::Mkit_sound_handler::pause(), gnash::sound::AOS4_sound_handler::pause(), gnash::NetStream_as::pause(), gnash::NetStream_as::play(), Play(), gnash::sound::Mkit_sound_handler::plugInputStream(), gnash::sound::SDL_sound_handler::plugInputStream(), gnash::sound::AOS4_sound_handler::plugInputStream(), gnash::sound::sound_handler::plugInputStream(), gnash::MovieClip::pointInVisibleShape(), gnash::SdlAggGlue::prepDrawingArea(), gnash::HaikuAggGlue::prepDrawingArea(), printNPVariant(), gnash::renderer::openvg::Renderer_ovg::printVGParams(), gnash::renderer::openvg::Renderer_ovg::printVGPath(), gnash::MovieLoader::processCompletedRequests(), gnash::movie_root::processInvoke(), gnash::movie_root::pushAction(), gnash::media::MediaParser::pushEncodedAudioFrame(), gnash::media::MediaParser::pushEncodedVideoFrame(), gnash::renderer::EGLDevice::queryEGLConfig(), gnash::GtkGui::quitUI(), gnash::gui::FBGui::quitUI(), gnash::amf::readBoolean(), gnash::ExternalInterface::readBrowser(), gnash::amf::readLongString(), gnash::amf::readNumber(), gnash::GnashPluginScriptObject::readPlayer(), gnash::rtmp::RTMP::readSocket(), gnash::amf::readString(), rectangle_class_init(), registerBitmapClass(), registerBitmapDataNative(), gnash::movie_root::registerButton(), registerColorTransformNative(), gnash::SWFMovieDefinition::registerExport(), registerLocalConnectionNative(), registerMovieClipNative(), registerSharedObjectNative(), registerSoundNative(), registerTextFieldNative(), registerXMLSocketNative(), gnash::VaapiContext::releaseSurface(), gnash::media::gst::MediaParserGst::rememberVideoFrame(), remoteCallback(), remove_handler(), gnash::TextField::removeTextField(), gnash::Renderer::renderToImage(), gnash::media::gst::VideoInputGst::requestMode(), Rewind(), gnash::NullGui::run(), gnash::DumpGui::run(), gnash::Player::run(), gnash::GC::runCycle(), gnash::Extension::scanDir(), gnash::UinputDevice::scanForDevice(), gnash::InputDevice::scanForDevices(), gnash::MouseDevice::scanForDevices(), gnash::TouchDevice::scanForDevices(), gnash::EventDevice::scanForDevices(), gnash::media::ffmpeg::MediaParserFfmpeg::seek(), gnash::media::FLVParser::seek(), gnash::NetStream_as::seek(), sendConnectPacket(), gnash::rtmp::sendCtrl(), gnash::rtmp::RTMP::sendPacket(), sendPausePacket(), sendPlayPacket(), gnash::rtmp::sendServerBW(), gnash::SWF::serialnumber_loader(), gnash::Button::set_current_state(), gnash::DisplayObject::set_invalidated(), gnash::TextField::set_variable_name(), gnash::TextField::setFont(), gnash::renderer::rawfb::RawFBDevice::setGrayscaleLUT8(), gnash::movie_root::setLevel(), gnash::abc::Method::setOwner(), gnash::MovieLoader::setReachable(), gnash::GcResource::setReachable(), gnash::DumpGui::setRenderHandlerSize(), gnash::Player::setScale(), gnash::movie_root::setScriptLimits(), gnash::movie_root::setStageScaleMode(), gnash::MovieClip::setStreamSoundId(), gnash::TextField::setTextFormat(), gnash::TextField::setTextValue(), gnash::PropertyList::setValue(), gnash::GnashPluginScriptObject::SetVariable(), SetVariableCallback(), gnash::media::gst::VideoInputGst::setWebcam(), gnash::nsPluginInstance::SetWindow(), SetZoomRect(), gnash::nsPluginInstance::shut(), gnash::media::MediaParser::startParserThread(), gnash::sound::sound_handler::startSound(), gnash::sound::sound_handler::stopAllEventSounds(), gnash::sound::sound_handler::stopEventSound(), StopPlay(), gnash::sound::sound_handler::stopStreamingSound(), gnash::renderer::EGLDevice::supportsRenderer(), gnash::movie_root::swapLevels(), gnash::movie_root::testInvariant(), textformat_class_init(), gnash::as_value::to_number(), gnash::as_value::to_primitive(), TotalFrames(), transform_class_init(), gnash::MovieClip::unloadChildren(), gnash::sound::Mkit_sound_handler::unpause(), gnash::sound::AOS4_sound_handler::unpause(), gnash::sound::sound_handler::unplugInputStream(), gnash::as_object::unwatch(), gnash::VaapiSurfaceGLX::update(), gnash::GnashVaapiImage::update(), gnash::NetConnection_as::update(), gnash::NetStream_as::update(), gnash::rtmp::RTMP::update(), gnash::VaapiContext::VaapiContext(), gnash::NetConnection_as::validateURL(), gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg(), gnash::media::MediaParser::waitIfNeeded(), gnash::sound::WAVWriter::WAVWriter(), gnash::nsPluginInstance::Write(), gnash::amf::Writer::writeNull(), gnash::amf::Writer::writeUndefined(), Zoom(), gnash::sound::AOS4_sound_handler::~AOS4_sound_handler(), gnash::media::ffmpeg::AudioDecoderFfmpeg::~AudioDecoderFfmpeg(), gnash::media::gst::AudioDecoderGst::~AudioDecoderGst(), gnash::media::gst::AudioInputGst::~AudioInputGst(), gnash::GC::~GC(), gnash::GnashVaapiImage::~GnashVaapiImage(), gnash::Gui::~Gui(), gnash::HostFunctionReport::~HostFunctionReport(), gnash::nsPluginInstance::~nsPluginInstance(), gnash::Player::~Player(), gnash::renderer::rawfb::RawFBDevice::~RawFBDevice(), gnash::sound::SDL_sound_handler::~SDL_sound_handler(), gnash::SharedMem::~SharedMem(), gnash::VaapiContext::~VaapiContext(), gnash::VaapiImage::~VaapiImage(), and gnash::VaapiSurfaceProxy::~VaapiSurfaceProxy().

§ log_error()

template<typename StringType , typename... Args>
void gnash::log_error ( StringType  msg,
Args...  args 
)
inline

References log_impl().

Referenced by gnash::PropertyList::addDestructiveGetter(), gnash::movie_root::addExternalCallback(), gnash::sound::sound_handler::addSoundBlock(), gnash::movie_root::advance(), gnash::URLAccessManager::allow(), gnash::Gui::allowScale(), gnash::renderer::openvg::OpenVGBitmap::applyPatternBitmap(), gnash::SharedMem::attach(), gnash::BufferedAudioStreamer::attachAuxStreamer(), gnash::renderer::rawfb::RawFBDevice::attachWindow(), gnash::renderer::EGLDevice::attachWindow(), gnash::media::gst::audio_bus_call(), gnash::media::gst::AudioDecoderGst::AudioDecoderGst(), gnash::sound::AOS4_sound_handler::audioTask(), gnash::GtkAggVaapiGlue::beforeRendering(), gnash::renderer::EGLDevice::bindClient(), gnash::media::gst::bus_call(), gnash::movie_root::callExternalCallback(), gnash::movie_root::callExternalJavascript(), gnash::movie_root::callInterface(), gnash::MouseDevice::check(), gnash::media::gst::GstUtil::check_missing_plugins(), gnash::MovieLoader::clear(), gnash::MovieFactory::clear(), gnash::rtmp::RTMP::close(), gnash::Font::codeTableLookup(), colorFromHexString(), gnash::SWFMovieDefinition::completeLoad(), gnash::gui::GtkOvgGlue::configure(), gnash::Socket::connect(), gnash::NetConnection_as::connect(), gnash::rtmp::RTMP::connect(), gnash::as_function::construct(), gnash::SWFStream::consumeInput(), gnash::media::gst::VideoConverterGst::convert(), gnash::renderer::EGLDevice::copyPbuffers(), create_Renderer_agg(), gnash::SWF::DefineEditTextTag::createDisplayObject(), gnash::FreetypeGlyphsProvider::createFace(), gnash::media::gst::MediaHandlerGst::createMediaParser(), gnash::media::ffmpeg::MediaHandlerFfmpeg::createMediaParser(), gnash::media::haiku::MediaHandlerHaiku::createMediaParser(), gnash::media::MediaHandler::createMediaParser(), gnash::renderer::EGLDevice::createPbuffer(), gnash::renderer::EGLDevice::createPixmap(), gnash::SdlAggGlue::createRenderHandler(), gnash::AOS4AggGlue::createRenderHandler(), gnash::AOS4CairoGlue::createRenderHandler(), gnash::HaikuAggGlue::createRenderHandler(), gnash::gui::FBAggGlue::createRenderHandler(), gnash::gui::GtkOvgGlue::createRenderHandler(), gnash::media::ffmpeg::MediaHandlerFfmpeg::createVideoConverter(), gnash::media::gst::MediaHandlerGst::createVideoConverter(), gnash::media::haiku::MediaHandlerHaiku::createVideoConverter(), gnash::media::gst::MediaHandlerGst::createVideoDecoder(), gnash::renderer::x11::X11Device::createWindow(), gnash::media::AudioDecoderSpeex::decode(), gnash::media::gst::AudioDecoderGst::decode(), gnash::media::ffmpeg::AudioDecoderFfmpeg::decode(), gnash::media::AudioDecoderSimple::decode(), gnash::SWF::define_sound_loader(), gnash::sound::sound_handler::delete_sound(), gnash::renderer::directfb::DirectFBDevice::DirectFBDevice(), gnash::Video::display(), gnash::movie_root::display(), gnash::Renderer_cairo::drawVideoFrame(), gnash::movie_root::dropLevel(), gnash::renderer::rawfb::RawFBDevice::dump(), gnash::MovieClip::duplicateMovieClip(), gnash::renderer::EGLDevice::EGLDevice(), gnash::sound::StreamingSoundData::eraseActiveSound(), gnash::sound::EmbedSound::eraseActiveSound(), gnash::renderer::opengl::Tesselator::error(), gnash::image::JpegInput::errorOccurred(), gnash::SWF::SWFHandlers::execute(), gnash::abc::Machine::execute(), gnash::SWF::ImportAssetsTag::executeState(), gnash::sound::SDL_sound_handler::fetchSamples(), gnash::abc::Trait::finalize(), gnash::abc::Trait::finalize_mbody(), gnash::Font::ftProvider(), gnash::media::gst::GstUtil::get_audiosink_element(), gnash::media::gst::MediaParserGst::getBytesLoaded(), gnash::media::FLVParser::getBytesLoaded(), gnash::TextField::getDefinitionVersion(), gnash::action_buffer::getDefinitionVersion(), gnash::SharedLib::getDllSymbol(), gnash::renderer::x11::X11Device::getErrorString(), getfdsink(), getGnashExecutable(), gnash::media::ffmpeg::MediaParserFfmpeg::getId3Info(), gnash::media::MediaParser::getId3Info(), gnash::SharedLib::getInitEntry(), gnash::Gui::getQuality(), gnash::StreamProvider::getStream(), gnash::sound::sound_handler::getStreamBlock(), gnash::clocktime::getTimeZoneOffset(), gnash::movie_root::getURL(), gnash::GnashPluginScriptObject::GetVariable(), gnash::Socket::go_to_end(), gnash::MovieClip::goto_frame(), GotoFrame(), handleInvoke(), gnash::rtmp::RTMP::handlePacket(), gnash::media::ffmpeg::VideoDecoderFfmpeg::height(), gnash::SWFMovieDefinition::importResources(), gnash::media::gst::VideoConverterGst::init(), gnash::GtkGui::init(), gnash::GtkAggVaapiGlue::init(), gnash::gui::GtkOvgGlue::init(), gnash::gui::FBAggGlue::init(), gnash::DumpGui::init(), gnash::UinputDevice::init(), gnash::gui::FBOvgGlue::init(), gnash::gui::FBgles1Glue::init(), gnash::nsPluginInstance::init(), gnash::Qt4Gui::init(), gnash::gui::FBGui::init(), gnash::MouseDevice::init(), gnash::movie_root::init(), gnash::TouchDevice::init(), gnash::EventDevice::init(), gnash::as_object::init_member(), gnash::renderer::directfb::DirectFBDevice::initDevice(), gnash::renderer::rawfb::RawFBDevice::initDevice(), gnash::renderer::x11::X11Device::initDevice(), gnash::renderer::EGLDevice::initDevice(), gnash::Extension::initModule(), gnash::Extension::initModuleWithFunc(), initObjectClass(), gnash::Renderer_agg_base::initTestBuffer(), gnash::abc::Machine::instantiateClass(), gnash::GnashPluginScriptObject::Invoke(), IsPlaying(), gnash::movie_root::keyEvent(), gnash::SWF::DefineBitsTag::loader(), gnash::SWF::DoABCTag::loader(), gnash::RcInitFile::loadFiles(), LoadMovie(), gnash::MovieClip::loadVariables(), gnash::abc::AbcBlock::locateClass(), main(), gnash::zlib_adapter::make_inflater(), gnash::MovieFactory::makeMovie(), gnash::renderer::EGLDevice::makePbufferCurrent(), gnash::NetworkAdapter::makeStream(), gnash::media::gst::VideoInputGst::makeWebcamDeviceSelection(), matrix_class_init(), gnash::media::ffmpeg::MediaParserFfmpeg::MediaParserFfmpeg(), gnash::DisplayList::mergeDisplayList(), gnash::Button::mouseEvent(), gnash::DisplayList::moveDisplayObject(), gnash::UinputDevice::moveTo(), NS_PluginInitialize(), gnash::SharedLib::openLib(), gnash::renderer::openvg::OpenVGBitmap::OpenVGBitmap(), gnash::amf::Reader::operator()(), Pan(), gnash::media::FLVParser::parseNextChunk(), parsePath(), gnash::XML_as::parseXML(), gnash::media::ffmpeg::VideoDecoderFfmpeg::peek(), PercentLoaded(), gnash::NetStream_as::play(), Play(), gnash::sound::sound_handler::playStream(), gnash::sound::sound_handler::plugInputStream(), gnash::InteractiveObject::pointInShape(), gnash::SdlAggGlue::prepDrawingArea(), gnash::renderer::directfb::DirectFBDevice::printDirectFB(), gnash::renderer::directfb::DirectFBDevice::printFBScreen(), gnash::renderer::openvg::Renderer_ovg::printVGParams(), gnash::movie_root::processInvoke(), gnash::media::gst::VideoDecoderGst::push(), gnash::movie_root::pushAction(), gnash::renderer::EGLDevice::queryEGLConfig(), gnash::movie_root::queryInterface(), gnash::gui::FBGui::quitUI(), gnash::renderer::rawfb::RawFBDevice::RawFBDevice(), gnash::image::JpegInput::read(), gnash::abc::Trait::read(), gnash::SWFStream::read_short_sfixed(), gnash::ExternalInterface::readBrowser(), gnash::action_buffer::readConstantPool(), gnash::InputDevice::readData(), gnash::image::JpegInput::readHeader(), gnash::SWFMovieDefinition::readHeader(), gnash::image::Input::readImageData(), gnash::GnashPluginScriptObject::readPlayer(), registerLocalConnectionNative(), registerMovieClipNative(), registerSharedObjectNative(), registerSoundNative(), registerXMLNative(), registerXMLSocketNative(), gnash::media::gst::MediaParserGst::rememberVideoFrame(), remoteCallback(), remove_handler(), gnash::TextField::removeTextField(), gnash::GtkAggVaapiGlue::render(), gnash::gui::GtkOvgGlue::render(), gnash::gui::FBAggGlue::render(), gnash::renderer::gles1::Renderer_gles1::Renderer_gles1(), gnash::MovieClip::replace_display_object(), gnash::movie_root::replaceLevel(), gnash::media::gst::VideoInputGst::requestMode(), Rewind(), gnash::PathParser::run(), gnash::Player::run(), gnash::Extension::scanDir(), gnash::UinputDevice::scanForDevice(), gnash::MouseDevice::scanForDevices(), gnash::TouchDevice::scanForDevices(), gnash::EventDevice::scanForDevices(), gnash::media::ffmpeg::MediaParserFfmpeg::seek(), gnash::Socket::seek(), gnash::NetStream_as::seek(), gnash::rtmp::sendCtrl(), gnash::rtmp::sendServerBW(), gnash::LineStyle::set_lerp(), gnash::DeviceGlue::setDevice(), gnash::TextField::setFont(), gnash::renderer::rawfb::RawFBDevice::setGrayscaleLUT8(), gnash::gui::FBAggGlue::setInvalidatedRegion(), gnash::gui::FBOvgGlue::setInvalidatedRegions(), gnash::gui::FBAggGlue::setInvalidatedRegions(), gnash::Gui::setQuality(), gnash::DumpGui::setRenderHandlerSize(), gnash::TextField::setRestrict(), gnash::Player::setScale(), gnash::GnashPluginScriptObject::SetVariable(), gnash::media::gst::VideoInputGst::setWebcam(), gnash::nsPluginInstance::SetWindow(), SetZoomRect(), gnash::SharedLib::SharedLib(), gnash::Gui::start(), gnash::sound::sound_handler::startSound(), gnash::sound::sound_handler::stopEventSound(), StopPlay(), string_class_init(), gnash::renderer::EGLDevice::supportsRenderer(), gnash::DisplayList::swapDepths(), gnash::Socket::tell(), textformat_class_init(), TotalFrames(), gnash::Font::unitsPerEM(), gnash::sound::sound_handler::unplugInputStream(), gnash::GnashVaapiImage::update(), gnash::RcInitFile::updateFile(), gnash::Gui::updateStageMatrix(), gnash::media::gst::VideoInputGst::webcamBreakVideoDisplayLink(), gnash::media::gst::VideoInputGst::webcamBreakVideoSaveLink(), gnash::media::gst::VideoInputGst::webcamCreateSaveBin(), gnash::media::gst::VideoInputGst::webcamMakeVideoDisplayLink(), gnash::media::gst::VideoInputGst::webcamMakeVideoSaveLink(), gnash::nsPluginInstance::Write(), gnash::Socket::write(), gnash::image::Output::writeImageData(), gnash::image::Output::writeImageRGBA(), gnash::amf::writePlainString(), gnash::DumpGui::writeSamples(), gnash::renderer::x11::X11Device::X11Device(), gnash::GtkGui::yesno(), gnash::Gui::yesno(), Zoom(), gnash::sound::AOS4_sound_handler::~AOS4_sound_handler(), gnash::media::gst::AudioDecoderGst::~AudioDecoderGst(), gnash::media::gst::AudioInputGst::~AudioInputGst(), gnash::FreetypeGlyphsProvider::~FreetypeGlyphsProvider(), gnash::ScreenShotter::~ScreenShotter(), gnash::SharedMem::~SharedMem(), gnash::UinputDevice::~UinputDevice(), and gnash::sound::WAVWriter::~WAVWriter().

§ log_impl() [1/3]

template<typename FuncType >
void gnash::log_impl ( boost::format &  fmt,
FuncType  func 
)
inline

§ log_impl() [2/3]

template<typename FuncType , typename Arg , typename... Args>
void gnash::log_impl ( boost::format &  fmt,
FuncType  processFunc,
Arg  arg,
Args...  args 
)
inline

References log_impl().

§ log_impl() [3/3]

template<typename StringType , typename FuncType , typename... Args>
void gnash::log_impl ( StringType  msg,
FuncType  func,
Args...  args 
)
inline

References log_impl().

§ log_network()

template<typename StringType , typename... Args>
void gnash::log_network ( StringType  msg,
Args...  args 
)
inline

References log_impl().

Referenced by gnash::movie_root::getURL().

§ log_parse()

template<typename StringType , typename... Args>
void gnash::log_parse ( StringType  msg,
Args...  args 
)
inline

References log_impl().

Referenced by gnash::SWFMovieDefinition::add_sound_sample(), gnash::SWF::DefineEditTextTag::createDisplayObject(), gnash::SWF::define_sound_loader(), gnash::SWF::ExportAssetsTag::executeState(), gnash::SWF::ImportAssetsTag::executeState(), gnash::SWF::file_attributes_loader(), gnash::CharacterDictionary::getDisplayObject(), gnash::SWF::jpeg_tables_loader(), gnash::SWF::DefineShapeTag::loader(), gnash::SWF::SoundStreamHeadTag::loader(), gnash::SWF::SetTabIndexTag::loader(), gnash::SWF::CSMTextSettingsTag::loader(), gnash::SWF::DefineBitsTag::loader(), gnash::SWF::DefineButtonCxformTag::loader(), gnash::SWF::DefineScalingGridTag::loader(), gnash::SWF::DefineFontAlignZonesTag::loader(), gnash::SWF::DefineTextTag::loader(), gnash::SWF::DefineMorphShapeTag::loader(), gnash::SWF::DefineSceneAndFrameLabelDataTag::loader(), gnash::SWF::ScriptLimitsTag::loader(), gnash::SWF::DoActionTag::loader(), gnash::SWF::SymbolClassTag::loader(), gnash::SWF::RemoveObjectTag::loader(), gnash::SWF::DefineButtonSoundTag::loader(), gnash::SWF::DoInitActionTag::loader(), gnash::SWF::DoABCTag::loader(), gnash::SWF::StartSoundTag::loader(), gnash::SWF::StartSound2Tag::loader(), gnash::SWF::DefineText2Tag::loader(), gnash::SWF::DefineButtonTag::loader(), gnash::SWF::DefineButton2Tag::loader(), gnash::SWF::metadata_loader(), gnash::SWFStream::open_tag(), gnash::abc::Method::print_body(), gnash::filter_factory::read(), gnash::BevelFilter::read(), gnash::SWF::TextRecord::read(), gnash::SWF::SoundInfoRecord::read(), gnash::BlurFilter::read(), gnash::ColorMatrixFilter::read(), gnash::ConvolutionFilter::read(), gnash::DropShadowFilter::read(), gnash::GlowFilter::read(), gnash::GradientBevelFilter::read(), gnash::GradientGlowFilter::read(), gnash::SWF::DefineFontTag::readCodeTable(), readCxFormRGBA(), readFills(), gnash::SWFMovieDefinition::readHeader(), gnash::SWF::reflex_loader(), gnash::SWF::sprite_loader(), and gnash::sprite_definition::~sprite_definition().

§ log_security()

template<typename StringType , typename... Args>
void gnash::log_security ( StringType  msg,
Args...  args 
)
inline

§ log_swferror()

template<typename StringType , typename... Args>
void gnash::log_swferror ( StringType  msg,
Args...  args 
)
inline

References log_impl().

Referenced by gnash::MovieClip::add_display_object(), gnash::sprite_definition::add_font(), gnash::sprite_definition::addBitmap(), gnash::Font::addFontNameInfo(), gnash::SWFMovie::advance(), gnash::MovieClip::advance(), gnash::SWFMovie::construct(), gnash::SWF::DefineEditTextTag::createDisplayObject(), gnash::SWF::define_sound_loader(), gnash::SWF::TextRecord::displayRecords(), gnash::SWF::SWFHandlers::execute(), gnash::SWF::ImportAssetsTag::executeState(), gnash::SWF::frame_label_loader(), gnash::SWFMovieDefinition::get_loading_frame(), gnash::TextField::getDefinitionVersion(), gnash::MovieClip::goto_labeled_frame(), gnash::movie_definition::importResources(), gnash::SWFMovie::initializeCharacter(), gnash::SWF::SoundStreamHeadTag::loader(), gnash::SWF::DefineBitsTag::loader(), gnash::SWF::DefineFontNameTag::loader(), gnash::SWF::DefineButtonCxformTag::loader(), gnash::SWF::VideoFrameTag::loader(), gnash::SWF::DefineFontAlignZonesTag::loader(), gnash::SWF::DefineSceneAndFrameLabelDataTag::loader(), gnash::SWF::DoActionTag::loader(), gnash::SWF::SymbolClassTag::loader(), gnash::SWF::StreamSoundBlockTag::loader(), gnash::SWF::DefineButtonSoundTag::loader(), gnash::SWF::DoInitActionTag::loader(), gnash::SWF::DoABCTag::loader(), gnash::SWF::StartSoundTag::loader(), gnash::SWF::DefineFontInfoTag::loader(), gnash::SWF::DefineButton2Tag::loader(), gnash::DisplayList::moveDisplayObject(), gnash::SWFStream::open_tag(), gnash::ActionExec::operator()(), gnash::filter_factory::read(), gnash::SWF::DefineFontTag::readCodeTable(), readFills(), gnash::SWFMovieDefinition::readHeader(), readRect(), registerSoundNative(), gnash::SWFMovieDefinition::set_jpeg_loader(), gnash::Font::setCodeTable(), gnash::TextField::setFont(), gnash::ActionExec::skip_actions(), gnash::SWF::sprite_loader(), gnash::sound::sound_handler::startSound(), and gnash::sprite_definition::~sprite_definition().

§ log_trace()

template<typename StringType , typename... Args>
void gnash::log_trace ( StringType  msg,
Args...  args 
)
inline

§ log_unimpl()

template<typename StringType , typename... Args>
void gnash::log_unimpl ( StringType  msg,
Args...  args 
)
inline

References log_impl().

Referenced by gnash::ActionExec::adjustNextPC(), gnash::Renderer_cairo::apply_line_style(), gnash::DisplayObject::blendMode(), gnash::media::ffmpeg::MediaHandlerFfmpeg::cameraNames(), gnash::media::haiku::MediaHandlerHaiku::cameraNames(), gnash::EventDevice::check(), gnash::BufferedAudioStreamer::cleanAudioQueue(), gnash::NetConnection_as::connect(), convolutionfilter_class_init(), gnash::SWF::DefineEditTextTag::createDisplayObject(), gnash::renderer::openvg::Renderer_ovg::disable_mask(), displacementmapfilter_class_init(), gnash::renderer::DirectFB::Renderer_DirectFB::drawVideoFrame(), gnash::renderer::openvg::Renderer_ovg::drawVideoFrame(), gnash::renderer::gles1::Renderer_gles1::drawVideoFrame(), gnash::renderer::rawfb::RawFBDevice::dump(), gnash::SWF::SWFHandlers::execute(), gnash::abc::Machine::execute(), gnash::SWF::DefineSceneAndFrameLabelDataTag::executeState(), externalinterface_class_init(), gnash::SWF::file_attributes_loader(), filereference_class_init(), filereferencelist_ctor(), gnash::SWF::frame_label_loader(), gnash::media::ffmpeg::MediaParserFfmpeg::getId3Info(), gnash::DisplayObject::getLoadedMovie(), gnash::rtmp::RTMP::handlePacket(), gnash::Gui::hideMenu(), gnash::EventDevice::init(), key_is_accessible(), key_is_toggled(), gnash::SWF::SoundStreamHeadTag::loader(), gnash::SWF::SetTabIndexTag::loader(), gnash::SWF::CSMTextSettingsTag::loader(), gnash::SWF::DefineScalingGridTag::loader(), gnash::SWF::DefineFontAlignZonesTag::loader(), gnash::SWF::StartSound2Tag::loader(), gnash::SWF::DefineFontInfoTag::loader(), gnash::SWF::DefineButton2Tag::loader(), gnash::MovieFactory::makeMovie(), gnash::Global_as::makeObject(), moviecliploader_class_init(), operator<<(), gnash::media::FLVParser::parseNextChunk(), gnash::StaticText::pointInShape(), gnash::geometry::pointTest(), gnash::movie_root::processInvoke(), gnash::SWF::DefineFontTag::readCodeTable(), rectangle_class_init(), registerAccessibilityNative(), registerBitmapDataNative(), registerMovieClipNative(), registerSharedObjectNative(), registerSoundNative(), registerStageNative(), registerSystemNative(), registerTextFieldNative(), registerVideoNative(), gnash::media::gst::MediaParserGst::rememberVideoFrame(), gnash::Gui::resizeWindow(), gnash::Player::run(), gnash::media::ffmpeg::MediaParserFfmpeg::seek(), gnash::renderer::DirectFB::Renderer_DirectFB::set_antialiased(), gnash::Renderer_cairo::set_antialiased(), gnash::renderer::openvg::Renderer_ovg::set_antialiased(), gnash::renderer::gles1::Renderer_gles1::set_antialiased(), gnash::Gui::setClipboard(), gnash::TextField::setFont(), gnash::Gui::setFullscreen(), gnash::gui::FBGui::showMenu(), gnash::Gui::showMenu(), gnash::gui::FBGui::showMouse(), gnash::Gui::showMouse(), gnash::sound::sound_handler::startSound(), textformat_class_init(), textrenderer_class_init(), transform_class_init(), gnash::MovieClip::unloadMovie(), gnash::Gui::unsetFullscreen(), gnash::NetConnection_as::update(), gnash::Gui::watchFD(), gnash::as_value::writeAMF0(), gnash::media::AudioDecoderSimple::~AudioDecoderSimple(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().

§ makeFileChannel() [1/2]

DSOEXPORT std::unique_ptr< IOChannel > gnash::makeFileChannel ( FILE *  fp,
bool  close 
)

Creates an IOChannel wrapper around a C stream.

Parameters
fpA C stream
closeWhether the C stream should be automatically closed.

Referenced by gnash::StreamProvider::getStream(), makeFileChannel(), and gnash::ScreenShotter::~ScreenShotter().

§ makeFileChannel() [2/2]

DSOEXPORT std::unique_ptr< IOChannel > gnash::makeFileChannel ( const char *  filepath,
const char *  mode 
)

Creates an IOChannel by opening the given file in the given mode.

Parameters
filepathA path to a file in the local filesystem.
modeThe mode the file should be opened in, such as "rb" "w+b" (see std::fopen)
Returns
An IOChannel or NULL if the file could not be opened.

References makeFileChannel().

§ math_class_init()

void gnash::math_class_init ( as_object where,
const ObjectURI uri 
)

§ matrix_class_init()

void gnash::matrix_class_init ( as_object where,
const ObjectURI uri 
)

§ microphone_class_init()

void gnash::microphone_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global Microphone class.

References emptyFunction(), and registerBuiltinClass().

Referenced by gnash::Global_as::makeObject().

§ mkdirRecursive()

DSOEXPORT bool gnash::mkdirRecursive ( const std::string &  filename)

Create a directory for a given filename.

Everything after the last '/' is assumed to be the filename.

Everything after the last '/' is assumed to be the filename.

Parameters
filenameFull file path, may be absolute or relative to CWD

References mkdirUserPermissions(), and gnash::key::t.

Referenced by mkdirUserPermissions(), and gnash::IncrementalRename::operator()().

§ mkdirUserPermissions()

int gnash::mkdirUserPermissions ( const std::string &  dirname)
inline

Create a directory, granting owner rwx permissions.

On non-POSIX systems, just create the directory.

Parameters
dirnameDirectory name, may be absolute or relative to CWD

References DSOEXPORT, and mkdirRecursive().

Referenced by mkdirRecursive().

§ mouse_class_init()

void gnash::mouse_class_init ( as_object where,
const ObjectURI uri 
)

§ movieclip_class_init()

void gnash::movieclip_class_init ( as_object where,
const ObjectURI uri 
)

§ moviecliploader_class_init()

void gnash::moviecliploader_class_init ( as_object where,
const ObjectURI uri 
)

§ mysql_class_init()

void gnash::mysql_class_init ( as_object obj)

§ mysql_connect()

as_value gnash::mysql_connect ( const fn_call fn)

§ mysql_disconnect()

as_value gnash::mysql_disconnect ( const fn_call fn)

§ mysql_fetch()

as_value gnash::mysql_fetch ( const fn_call fn)

§ mysql_fields()

as_value gnash::mysql_fields ( const fn_call fn)

§ mysql_free()

as_value gnash::mysql_free ( const fn_call fn)

§ mysql_qetData()

as_value gnash::mysql_qetData ( const fn_call fn)

§ mysql_query()

as_value gnash::mysql_query ( const fn_call fn)

§ mysql_row()

as_value gnash::mysql_row ( const fn_call fn)

§ mysql_store()

as_value gnash::mysql_store ( const fn_call fn)

§ netconnection_class_init()

void gnash::netconnection_class_init ( as_object where,
const ObjectURI uri 
)

§ netstream_class_init()

void gnash::netstream_class_init ( as_object where,
const ObjectURI uri 
)

§ newAdd()

void gnash::newAdd ( as_value op1,
const as_value op2,
const VM vm 
)

Carry out ActionNewAdd.

VM ops on as_value.

These are currently used in:

  1. VM (AVM1)
  2. Gnash's C++ implementation of ActionScript.

Usage 2 replicates VM behaviour, but does not use the VM's stack or other resources. This can lead to different behaviour, for instance when there are limits on the stack size. Such cases are probably rare.

Parameters
op1The as_value to add to.
op2The as_value to add.
vmThe VM executing the operation. TODO: Consider whether it would be better to pass something other than the VM. But it is a VM operation, so it is logically sound.

It doesn't matter if either of these fail.

References convertToPrimitive(), convertToString(), gnash::key::e, gnash::VM::getSWFVersion(), gnash::as_value::is_string(), log_debug(), gnash::key::r, gnash::as_value::set_double(), gnash::as_value::set_string(), gnash::as_value::to_string(), and toNumber().

Referenced by gnash::abc::Machine::execute(), externalinterface_class_init(), matrix_class_init(), point_class_init(), rectangle_class_init(), and registerColorTransformNative().

§ newLessThan()

as_value gnash::newLessThan ( const as_value op1,
const as_value op2,
const VM vm 
)

Carry out ActionSubtract.

Parameters
op1The first comparand.
op2The second comparand.
vmThe VM executing the operation.

References gnash::key::e, gnash::as_value::is_object(), gnash::as_value::is_sprite(), gnash::as_value::is_string(), isNaN(), gnash::as_value::NUMBER, gnash::as_value::to_primitive(), gnash::as_value::to_string(), and toNumber().

Referenced by gnash::abc::Machine::execute(), and rectangle_class_init().

§ NPStringToString()

std::string gnash::NPStringToString ( const NPString &  str)
inline

Construct a std::string from an NPString.

NPStrings are not guaranteed to be NULL-terminated.

References GetNPStringChars(), and GetNPStringLen().

Referenced by gnash::plugin::ExternalInterface::convertNPVariant(), GetVariableCallback(), main(), NPVariantToString(), printNPVariant(), and SetVariableCallback().

§ NPVariantToString()

std::string gnash::NPVariantToString ( const NPVariant &  val)
inline

Construct a std::string from an NPVariant.

Returns
a std::string containing the string value of the NPVariant, if it is an NPString; otherwise an empty string.

References NPStringToString().

Referenced by remove_handler().

§ number_class_init()

void gnash::number_class_init ( as_object where,
const ObjectURI uri 
)

§ operator!=()

bool gnash::operator!= ( const SWFCxForm a,
const SWFCxForm b 
)
inline

§ operator*()

Transform gnash::operator* ( const Transform a,
const Transform b 
)
inline

Concatenate two transforms.

References gnash::key::b.

§ operator<() [1/2]

bool gnash::operator< ( const kerning_pair p1,
const kerning_pair p2 
)
inline

§ operator<() [2/2]

bool gnash::operator< ( const event_id a,
const event_id b 
)
inline

§ operator<<() [1/22]

DSOEXPORT std::ostream & gnash::operator<< ( std::ostream &  os,
const HostMessage m 
)

Stream a description of any host interface message type.

References gnash::HostMessage::event().

§ operator<<() [2/22]

std::ostream & gnash::operator<< ( std::ostream &  os,
const ConstantPool p 
)

References gnash::key::i.

§ operator<<() [3/22]

DSOEXPORT std::ostream & gnash::operator<< ( std::ostream &  os,
const CustomMessage m 
)

§ operator<<() [4/22]

DSOEXPORT std::ostream & gnash::operator<< ( std::ostream &  os,
HostMessage::KnownEvent  e 
)

§ operator<<() [5/22]

DSOTEXPORT std::ostream & gnash::operator<< ( std::ostream &  os,
const rgba r 
)

§ operator<<() [6/22]

std::ostream & gnash::operator<< ( std::ostream &  os,
const SWFCxForm cx 
)

§ operator<<() [7/22]

std::ostream & gnash::operator<< ( std::ostream &  o,
const CallFrame fr 
)

§ operator<<() [8/22]

std::ostream & gnash::operator<< ( std::ostream &  o,
const event_id ev 
)

§ operator<<() [9/22]

std::ostream& gnash::operator<< ( std::ostream &  os,
const PropFlags fl 
)
inline

§ operator<<() [10/22]

DSOEXPORT std::ostream & gnash::operator<< ( std::ostream &  os,
const BitmapFill::SmoothingPolicy p 
)

§ operator<<() [11/22]

std::ostream & gnash::operator<< ( std::ostream &  o,
GradientFill::Type  t 
)

Output operator for GradientFill type.

References gnash::GradientFill::LINEAR, and gnash::GradientFill::RADIAL.

§ operator<<() [12/22]

std::ostream& gnash::operator<< ( std::ostream &  os,
const SWFRect r 
)
inline

§ operator<<() [13/22]

std::ostream & gnash::operator<< ( std::ostream &  o,
GradientFill::SpreadMode  t 
)

§ operator<<() [14/22]

std::ostream & gnash::operator<< ( std::ostream &  o,
GradientFill::InterpolationMode  t 
)

§ operator<<() [15/22]

std::ostream & gnash::operator<< ( std::ostream &  os,
const FillStyle fs 
)

Output operator for FillStyles.

References gnash::FillStyle::fill.

§ operator<<() [16/22]

DSOTEXPORT std::ostream & gnash::operator<< ( std::ostream &  o,
const SWFMatrix m 
)

§ operator<<() [17/22]

std::ostream& gnash::operator<< ( std::ostream &  o,
const CharacterDictionary cd 
)

References gnash::key::o.

§ operator<<() [18/22]

DSOEXPORT std::ostream & gnash::operator<< ( std::ostream &  o,
const URL u 
)

§ operator<<() [19/22]

std::ostream & gnash::operator<< ( std::ostream &  o,
const Button::MouseState st 
)

§ operator<<() [20/22]

DSOTEXPORT std::ostream & gnash::operator<< ( std::ostream &  os,
const DisplayList dl 
)

§ operator<<() [21/22]

DSOTEXPORT std::ostream & gnash::operator<< ( std::ostream &  o,
const as_value v 
)

§ operator<<() [22/22]

std::ostream & gnash::operator<< ( std::ostream &  o,
DisplayObject::BlendMode  bm 
)

Stream operator for DisplayObject blend mode.

§ operator==() [1/3]

bool gnash::operator== ( const SWFCxForm a,
const SWFCxForm b 
)
inline

§ operator==() [2/3]

bool gnash::operator== ( const event_id a,
const event_id b 
)
inline

Return whether two event_ids are equal.

event_ids are equal if both id and keycode match. Keycode is only relevant for keyboard events, and must be key::INVALID for other event types.

References gnash::event_id::id(), and gnash::event_id::keyCode().

Referenced by gnash::VaapiSurface::clear(), gnash::LoadVariablesThread::completed(), and gnash::as_value::unflag_exception().

§ operator==() [3/3]

bool gnash::operator== ( const SWFMatrix a,
const SWFMatrix b 
)
inline

§ Pan()

bool gnash::Pan ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)

§ parseNonDecimalInt()

bool gnash::parseNonDecimalInt ( const std::string &  s,
double &  d,
bool  whole = true 
)

Try to parse a string into a 32-bit signed int using base 8 or 16. // This function will throw a boost::bad_lexical_cast (or a derived exception) if the passed string cannot be converted.

Parameters
sThe string to parse
dThe 32-bit int represented as a double. This is only a valid number if the return value is true.
wholeIf true, expect the whole string to be valid, i.e. throw if there are any invalid DisplayObjects. If false, returns any valid number up to the first invalid DisplayObject.
Returns
True if the string was non-decimal and successfully parsed.

References gnash::key::d, and start.

Referenced by gnash::Global_as::makeObject(), gnash::as_value::to_number(), and gnash::as_value::unflag_exception().

§ parsePath()

DSOEXPORT bool gnash::parsePath ( const std::string &  var_path,
std::string &  path,
std::string &  var 
)

See if the given variable name is actually a sprite path followed by a variable name. These come in the format:

/path/to/some/sprite/:varname

(or same thing, without the last '/')

or path.to.some.var

If that's the format, puts the path part (no colon or trailing slash) in *path, and the varname part (no colon, no dot) in *var and returns true.

If no colon or dot, returns false and leaves *path & *var alone.

TODO: return an integer: 0 not a path, 1 a slash-based path, 2 a dot-based path

References _, gnash::VM::calling(), gnash::VM::currentCall(), gnash::key::d, gnash::as_object::delProperty(), gnash::as_object::displayObject(), gnash::as_object::get_member(), gnash::as_environment::get_original_target(), gnash::VM::getGlobal(), getObject(), gnash::as_object::getOwnProperty(), getPathElement(), getStringTable(), gnash::VM::getSWFVersion(), getURI(), gnash::as_environment::getVM(), gnash::key::i, IF_VERBOSE_ASCODING_ERRORS, gnash::CallFrame::locals(), log_aserror(), log_debug(), log_error(), name, gnash::key::p, gnash::DisplayObject::pathElement(), gnash::NSV::PROP_THIS, gnash::NSV::PROP_uGLOBAL, gnash::as_value::set_as_object(), gnash::as_object::set_member(), setLocal(), gnash::Property::setValue(), gnash::as_environment::target(), test::uri, and test::v.

Referenced by gnash::TextField::getDefinitionVersion(), getVariable(), gnash::DumpGui::run(), setVariable(), and gnash::as_environment::stack_size().

§ PercentLoaded()

bool gnash::PercentLoaded ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)

§ pixelsToTwips()

std::int32_t gnash::pixelsToTwips ( double  a)
inline

§ Play()

bool gnash::Play ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)

§ point_class_init()

void gnash::point_class_init ( as_object where,
const ObjectURI uri 
)

§ printNPVariant()

void gnash::printNPVariant ( const NPVariant *  value)

§ processLog_abc()

DSOEXPORT void gnash::processLog_abc ( const boost::format &  fmt)

§ processLog_action()

DSOEXPORT void gnash::processLog_action ( const boost::format &  fmt)

§ processLog_aserror()

DSOEXPORT void gnash::processLog_aserror ( const boost::format &  fmt)

§ processLog_debug()

DSOEXPORT void gnash::processLog_debug ( const boost::format &  fmt)

§ processLog_error()

DSOEXPORT void gnash::processLog_error ( const boost::format &  fmt)

§ processLog_network()

DSOEXPORT void gnash::processLog_network ( const boost::format &  fmt)

§ processLog_parse()

DSOEXPORT void gnash::processLog_parse ( const boost::format &  fmt)

§ processLog_security()

DSOEXPORT void gnash::processLog_security ( const boost::format &  fmt)

§ processLog_swferror()

DSOEXPORT void gnash::processLog_swferror ( const boost::format &  fmt)

§ processLog_trace()

DSOEXPORT void gnash::processLog_trace ( const boost::format &  fmt)

§ processLog_unimpl()

DSOEXPORT void gnash::processLog_unimpl ( const boost::format &  fmt)

§ readCxFormRGB()

SWFCxForm gnash::readCxFormRGB ( SWFStream in)

§ readCxFormRGBA()

SWFCxForm gnash::readCxFormRGBA ( SWFStream in)

§ readFills()

OptionalFillPair gnash::readFills ( SWFStream in,
SWF::TagType  t,
movie_definition m,
bool  readMorph 
)

§ readLong()

std::uint32_t gnash::readLong ( const std::uint8_t *  buf)
inline

References gnash::key::s.

§ readOnly()

bool gnash::readOnly ( const Property prop)
inline

§ readRect()

SWFRect gnash::readRect ( SWFStream in)

Read a bit-packed rectangle from an SWF stream.

Format of the bit-packed rectangle is:

bits | name | description ---—+----—+----------------------— 5 | nbits | number of bits used in subsequent values nbits | xmin | minimum X value nbits | xmax | maximum X value nbits | ymin | minimum Y value nbits | ymax | maximum Y value

If max values are less then min values the SWF is malformed; in this case this method will raise an swf_error and set the rectangle to the NULL rectangle. See is_null().

References _, gnash::SWFStream::align(), gnash::SWFStream::ensureBits(), IF_VERBOSE_MALFORMED_SWF, log_swferror(), gnash::SWFStream::read_sint(), and gnash::SWFStream::read_uint().

Referenced by gnash::SWF::DefineEditTextTag::createDisplayObject(), gnash::SWF::DefineMorphShapeTag::display(), gnash::SWF::DefineScalingGridTag::loader(), gnash::SWF::DefineText2Tag::loader(), gnash::SWF::DefineFontTag::readCodeTable(), and gnash::SWFMovieDefinition::readHeader().

§ readRGB()

rgba gnash::readRGB ( SWFStream in)

§ readRGBA()

rgba gnash::readRGBA ( SWFStream in)

§ readSWFMatrix()

SWFMatrix gnash::readSWFMatrix ( SWFStream in)

§ rectangle_class_init()

void gnash::rectangle_class_init ( as_object where,
const ObjectURI uri 
)

§ registerAccessibilityNative()

void gnash::registerAccessibilityNative ( as_object global)

§ registerArrayNative()

void gnash::registerArrayNative ( as_object global)

§ registerBitmapClass()

void gnash::registerBitmapClass ( as_object where,
Global_as::ASFunction  ctor,
Global_as::Properties  p,
const ObjectURI uri 
)

§ registerBitmapDataNative()

void gnash::registerBitmapDataNative ( as_object global)

References _, __FUNCTION__, gnash::key::a, gnash::fn_call::arg(), gnash::key::b, gnash::BitmapData_as::begin(), gnash::image::GnashImage::begin(), gnash::BitmapData_as::BitmapData_as(), gnash::key::c, gnash::BitmapData_as::CHANNEL_ALPHA, gnash::BitmapData_as::CHANNEL_BLUE, clamp(), color, gnash::Transform::colorTransform, constructInstance(), gnash::Global_as::createClass(), createObject(), gnash::Movie::definition(), gnash::BitmapData_as::dispose(), gnash::BitmapData_as::disposed(), gnash::BitmapData_as::draw(), gnash::fn_call::dump_args(), gnash::key::e, gnash::BitmapData_as::end(), gnash::fn_call::env(), gnash::movie_definition::exportID(), fill, findObject(), foreachArray(), gnash::key::g, gnash::as_object::get_member(), gnash::DisplayObject::get_root(), gnash::movie_definition::getBitmap(), getGlobal(), getMember(), gnash::VM::getNative(), getVM(), gnash::key::h, gnash::BitmapData_as::height(), gnash::image::GnashImage::height(), gnash::key::i, IF_VERBOSE_ASCODING_ERRORS, gnash::CachedBitmap::image(), gnash::as_object::init_member(), gnash::as_object::init_readonly_property(), gnash::as_value::is_object(), isNaN(), isNativeType(), log_aserror(), log_debug(), LOG_ONCE, log_unimpl(), gnash::Transform::matrix, gnash::key::n, gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF8Up, pix, gnash::NSV::PROP_HEIGHT, gnash::NSV::PROP_PROTOTYPE, gnash::NSV::PROP_uuPROTOuu, gnash::NSV::PROP_WIDTH, gnash::NSV::PROP_X, gnash::NSV::PROP_Y, gnash::key::r, gnash::VM::registerNative(), gnash::as_object::set_member(), gnash::as_object::setRelay(), source, gnash::key::t, gnash::as_environment::target(), gnash::as_value::to_function(), toBool(), toCxForm(), toInt(), toNumber(), toObject(), toSWFMatrix(), gnash::SWFMatrix::transform(), gnash::BitmapData_as::transparent(), gnash::image::GnashImage::type(), gnash::image::TYPE_RGBA, UNUSED, gnash::BitmapData_as::updateObjects(), test::w, gnash::BitmapData_as::width(), gnash::image::GnashImage::width(), x, and y.

Referenced by gnash::Global_as::makeObject().

§ registerBitmapFilterNative()

void gnash::registerBitmapFilterNative ( as_object global)

§ registerBooleanNative()

void gnash::registerBooleanNative ( as_object global)

§ registerBuiltinClass()

as_object* gnash::registerBuiltinClass ( as_object where,
Global_as::ASFunction  ctor,
Global_as::Properties  p,
Global_as::Properties  c,
const ObjectURI uri 
)
inline

Register a built-in class.

This is used for classes that are part of the player API. In the reference player these classes are always constructed in ActionScript, though their functions may be native, and the constructor may also call native functions.

Parameters
ca pointer to a function that will attach properties to the class itself. These are known as static properties.
pa pointer to a function that will attach properties to the class prototype. These are instance properties.
ctorthe constructor function for the new class.
wherethe object to which the created object will be attached
urian ObjectURI describing the name and namespace of the created object.
Returns
the built-in class with prototype and properties attached.

References gnash::key::c, gnash::Global_as::createClass(), createObject(), gnash::as_object::DefaultFlags, DSOEXPORT, getGlobal(), gnash::as_object::init_member(), and gnash::key::p.

Referenced by camera_class_init(), color_class_init(), contextmenu_class_init(), contextmenuitem_class_init(), Error_class_init(), filereferencelist_class_init(), gnash::AsBroadcaster::init(), loadvars_class_init(), localconnection_class_init(), microphone_class_init(), netconnection_class_init(), netstream_class_init(), textrenderer_class_init(), textsnapshot_class_init(), and xmlsocket_class_init().

§ registerBuiltinObject()

as_object* gnash::registerBuiltinObject ( as_object where,
Global_as::Properties  p,
const ObjectURI uri 
)
inline

Register a built-in object.

This is used for simple objects that are part of the player API. In the reference player these objects are always constructed in ActionScript, though their functions may be native. They include (AS2) Mouse, Selection and Stage, and (AS3) all constant enumeration objects.

Parameters
pa pointer to a function that will attach properties to the object
wherethe object to which the created object will be attached
urian ObjectURI describing the name and namespace of the created object.
Returns
the built-in object with properties attached.

References createObject(), gnash::as_object::DefaultFlags, getGlobal(), gnash::as_object::init_member(), and gnash::key::p.

Referenced by key_class_init(), math_class_init(), mouse_class_init(), registerSystemNative(), selection_class_init(), stage_class_init(), and system_class_init().

§ registerButtonNative()

void gnash::registerButtonNative ( as_object global)

§ registerCameraNative()

void gnash::registerCameraNative ( as_object global)

§ registerColorNative()

void gnash::registerColorNative ( as_object o)

§ registerColorTransformNative()

void gnash::registerColorTransformNative ( as_object global)

§ registerDateNative()

void gnash::registerDateNative ( as_object global)

§ registerExternalInterfaceNative()

void gnash::registerExternalInterfaceNative ( as_object global)

§ registerFunctionNative()

void gnash::registerFunctionNative ( as_object global)

Register Function native functions.

References getVM(), and gnash::VM::registerNative().

Referenced by gnash::Global_as::makeObject().

§ registerKeyNative()

void gnash::registerKeyNative ( as_object global)

§ registerLoadableNative()

void gnash::registerLoadableNative ( as_object o)

Register methods as native for use by XML_as and LoadVars_as.

This is only automatically used in LoadVars.

References getVM(), and gnash::VM::registerNative().

Referenced by gnash::Global_as::makeObject().

§ registerLocalConnectionNative()

void gnash::registerLocalConnectionNative ( as_object global)

§ registerMathNative()

void gnash::registerMathNative ( as_object proto)

§ registerMicrophoneNative()

void gnash::registerMicrophoneNative ( as_object global)

§ registerMovieClipLoaderNative()

void gnash::registerMovieClipLoaderNative ( as_object global)

§ registerMovieClipNative()

void gnash::registerMovieClipNative ( as_object where)

Register ASNative MovieClip methods (AS2 only).

References _, __FUNCTION__, gnash::key::a, gnash::MovieClip::addDisplayListObject(), gnash::fn_call::arg(), arrayLength(), gnash::MovieClip::attachCharacter(), gnash::key::b, gnash::DynamicShape::beginFill(), gnash::DisplayObject::blendMode(), callMethod(), CAP_NONE, CAP_ROUND, CAP_SQUARE, gnash::NSV::CLASS_MOVIE_CLIP, gnash::DynamicShape::clear(), gnash::BitmapFill::CLIPPED, color, gnash::SWFMatrix::concatenate_scale(), constructInstance(), gnash::Global_as::createArray(), gnash::SWF::DefinitionTag::createDisplayObject(), gnash::Global_as::createFunction(), gnash::DynamicShape::curveTo(), gnash::key::d, data, gnash::as_object::DefaultFlags, gnash::fn_call::dump_args(), gnash::MovieClip::duplicateMovieClip(), gnash::DynamicShape::endFill(), gnash::fn_call::env(), gnash::Movie::exportedCharacter(), gnash::key::f, findObject(), findTarget(), gnash::key::g, gnash::MovieClip::get_bytes_loaded(), gnash::MovieClip::get_bytes_total(), gnash::MovieClip::get_current_frame(), gnash::DisplayObject::get_depth(), gnash::MovieClip::get_frame_count(), gnash::MovieClip::get_frame_number(), gnash::as_object::get_member(), gnash::MovieClip::get_root(), gnash::MovieClip::getBounds(), gnash::DisplayObject::getBounds(), gnash::DisplayObject::getDefinitionVersion(), gnash::MovieClip::getDefinitionVersion(), gnash::MovieClip::getDisplayObjectAtDepth(), getGlobal(), gnash::MovieClip::getLockRoot(), getMember(), gnash::VM::getNative(), gnash::MovieClip::getNextHighestDepth(), getObject(), getObjectWithPrototype(), gnash::SWFRect::getRange(), getRoot(), getSWFVersion(), gnash::DisplayObject::getTarget(), getURI(), gnash::movie_root::getURL(), getURLEncodedVars(), getVM(), getWorldMatrix(), gnash::MovieClip::goto_frame(), gnash::MovieClip::graphics(), gnash::key::i, IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::SWFMatrix::invert(), gnash::as_value::is_null(), gnash::as_value::is_number(), gnash::as_value::is_undefined(), isFinite(), isNaN(), isNativeType(), JOIN_BEVEL, JOIN_MITER, JOIN_ROUND, gnash::GradientFill::LINEAR, gnash::GradientFill::LINEAR_RGB, gnash::DynamicShape::lineStyle(), gnash::DynamicShape::lineTo(), gnash::movie_root::loadMovie(), gnash::MovieClip::loadVariables(), log_aserror(), log_debug(), log_error(), LOG_ONCE, log_unimpl(), gnash::DisplayObject::lowerAccessibleBound, gnash::key::m, gnash::rgba::m_a, gnash::MovieClip::METHOD_GET, gnash::MovieClip::METHOD_NONE, gnash::MovieClip::METHOD_POST, gnash::DynamicShape::moveTo(), gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF6Up, gnash::PropFlags::onlySWF7Up, gnash::PropFlags::onlySWF8Up, gnash::key::p, gnash::GradientFill::PAD, gnash::DisplayObject::parent(), gnash::rgba::parseRGB(), pixelsToTwips(), gnash::MovieClip::PLAYSTATE_PLAY, gnash::MovieClip::PLAYSTATE_STOP, gnash::DisplayObject::pointInBounds(), gnash::MovieClip::pointInHitableShape(), gnash::NSV::PROP_METH, gnash::NSV::PROP_TO_LOWER_CASE, gnash::NSV::PROP_X, gnash::NSV::PROP_Y, gnash::key::r, gnash::GradientFill::RADIAL, gnash::GradientFill::REFLECT, gnash::VM::registerNative(), gnash::MovieClip::removeMovieClip(), gnash::GradientFill::REPEAT, gnash::DynamicShape::resetLineStyle(), gnash::GradientFill::RGB, gnash::key::s, gnash::as_object::set_member(), gnash::DisplayObject::set_name(), gnash::SWFMatrix::set_x_translation(), gnash::SWFMatrix::set_y_translation(), gnash::NetStream_as::setAudioController(), gnash::movie_root::setDragState(), gnash::DisplayObject::setDynamic(), gnash::MovieClip::setLockRoot(), gnash::DisplayObject::setMask(), gnash::MovieClip::setPlayState(), gnash::BitmapFill::SMOOTHING_OFF, gnash::BitmapFill::SMOOTHING_ON, gnash::movie_root::stop_drag(), gnash::MovieClip::swapDepths(), gnash::movie_root::swapLevels(), gnash::key::t, gnash::fn_call::this_ptr, gnash::BitmapFill::TILED, gnash::as_function::to_function(), gnash::as_value::to_string(), toBool(), toInt(), toNumber(), toObject(), toSWFMatrix(), gnash::SWFMatrix::transform(), gnash::DisplayObject::transformedByScript(), ts, twipsToPixels(), gnash::SWFMatrix::tx(), gnash::SWFMatrix::ty(), gnash::MovieClip::unloadMovie(), UNUSED, gnash::DisplayObject::upperAccessibleBound, gnash::geometry::Point2d::x, x, gnash::geometry::Point2d::y, and y.

Referenced by gnash::Global_as::makeObject().

§ registerNetStreamNative()

void gnash::registerNetStreamNative ( as_object global)

§ registerNumberNative()

void gnash::registerNumberNative ( as_object global)

§ registerObjectNative()

void gnash::registerObjectNative ( as_object global)

§ registerSelectionNative()

void gnash::registerSelectionNative ( as_object global)

§ registerSharedObjectNative()

void gnash::registerSharedObjectNative ( as_object o)

§ registerSoundNative()

void gnash::registerSoundNative ( as_object global)

§ registerStageNative()

void gnash::registerStageNative ( as_object o)

§ registerStringNative()

void gnash::registerStringNative ( as_object global)

§ registerSystemNative()

void gnash::registerSystemNative ( as_object where)

§ registerTextFieldNative()

void gnash::registerTextFieldNative ( as_object global)

References _, gnash::MovieClip::addDisplayListObject(), gnash::fn_call::arg(), gnash::TextField::AUTOSIZE_CENTER, gnash::TextField::AUTOSIZE_LEFT, gnash::TextField::AUTOSIZE_NONE, gnash::TextField::AUTOSIZE_RIGHT, callMethod(), gnash::NSV::CLASS_TEXT_FORMAT, constructInstance(), gnash::Global_as::createArray(), gnash::Global_as::createFunction(), createTextFieldObject(), gnash::utf8::decodeCanonicalString(), gnash::as_object::DefaultFlags, gnash::Movie::definition(), gnash::TextField::doHtml(), gnash::TextField::doWordWrap(), gnash::fn_call::dump_args(), gnash::image::end(), gnash::fn_call::env(), gnash::key::f, gnash::DisplayObject::get_depth(), gnash::fontlib::get_font(), gnash::movie_definition::get_font(), gnash::TextField::get_htmltext_value(), gnash::as_object::get_prototype(), gnash::DisplayObject::get_root(), gnash::TextField::get_text_value(), gnash::TextField::getAutoSize(), gnash::TextField::getBackgroundColor(), gnash::TextField::getBlockIndent(), gnash::TextField::getBorderColor(), gnash::TextField::getBottomScroll(), gnash::TextField::getDrawBackground(), gnash::TextField::getDrawBorder(), gnash::TextField::getEmbedFonts(), gnash::TextField::getFont(), gnash::TextField::getFontHeight(), getGlobal(), gnash::TextField::getHScroll(), gnash::TextField::getIndent(), gnash::TextField::getLeading(), gnash::TextField::getLeftMargin(), gnash::TextField::getMaxHScroll(), gnash::TextField::getMaxScroll(), getMember(), gnash::VM::getNative(), gnash::TextField::getRestrict(), gnash::TextField::getRightMargin(), gnash::TextField::getScroll(), getSWFVersion(), gnash::DisplayObject::getTarget(), gnash::TextField::getTextAlignment(), gnash::TextField::getTextBoundingBox(), gnash::TextField::getTextColor(), gnash::TextField::getType(), gnash::TextField::getUnderlined(), getURI(), gnash::TextField::getVariableName(), getVM(), gnash::SWFRect::height(), height, IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::AsBroadcaster::initialize(), gnash::as_value::is_bool(), gnash::as_value::is_null(), gnash::as_value::is_undefined(), gnash::Font::isBold(), gnash::Font::isItalic(), isNativeType(), gnash::TextField::isRestrict(), gnash::TextField::isSelectable(), log_aserror(), log_debug(), LOG_ONCE, log_unimpl(), gnash::TextField::maxChars(), gnash::TextField::multiline(), gnash::key::n, gnash::Font::name(), name, gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF6Up, gnash::PropFlags::onlySWF7Up, gnash::rgba::parseRGB(), gnash::TextField::parseTypeValue(), gnash::TextField::password(), pixelsToTwips(), gnash::NSV::PROP_AS_SET_PROP_FLAGS, gnash::NSV::PROP_PUSH, gnash::NSV::PROP_TEXT_HEIGHT, gnash::NSV::PROP_TEXT_WIDTH, gnash::NSV::PROP_uLISTENERS, gnash::VM::registerNative(), gnash::TextField::removeTextField(), gnash::TextField::replaceSelection(), gnash::key::s, gnash::as_object::set_member(), gnash::DisplayObject::set_name(), gnash::as_value::set_null(), gnash::SWFMatrix::set_translation(), gnash::TextField::set_variable_name(), gnash::as_object::setArray(), gnash::TextField::setAutoSize(), gnash::TextField::setBackgroundColor(), gnash::TextField::setBorderColor(), gnash::TextField::setDrawBackground(), gnash::TextField::setDrawBorder(), gnash::DisplayObject::setDynamic(), gnash::TextField::setEmbedFonts(), gnash::TextField::setFont(), gnash::TextField::setHScroll(), gnash::TextField::setHtml(), gnash::DisplayObject::setMatrix(), gnash::as_object::setRelay(), gnash::TextField::setRestrict(), gnash::TextField::setScroll(), gnash::TextField::setSelectable(), gnash::TextField::setTextColor(), gnash::TextField::setTextFormat(), gnash::TextField::setTextValue(), gnash::TextField::setType(), gnash::TextField::setWordWrap(), start, gnash::as_value::to_function(), gnash::as_value::to_string(), toBool(), toInt(), toNumber(), toObject(), gnash::rgba::toRGB(), twipsToPixels(), gnash::TextField::typeInvalid, gnash::TextField::typeValueName(), UNUSED, gnash::SWFRect::width(), width, x, and y.

Referenced by gnash::Global_as::makeObject().

§ registerTextFormatNative()

void gnash::registerTextFormatNative ( as_object o)

§ registerTextSnapshotNative()

void gnash::registerTextSnapshotNative ( as_object global)

§ registerVideoNative()

void gnash::registerVideoNative ( as_object global)

§ registerXMLNative()

void gnash::registerXMLNative ( as_object where)

Register XML native functions.

References _, gnash::fn_call::arg(), attachLoadableInterface(), callMethod(), gnash::Global_as::createFunction(), emptyFunction(), equal(), escapeXML(), gnash::as_object::get_member(), gnash::as_object::get_prototype(), gnash::XML_as::getContentType(), gnash::XML_as::getDocTypeDecl(), getGlobal(), gnash::VM::getNative(), getSWFVersion(), getURI(), getVM(), gnash::XML_as::getXMLDecl(), IF_VERBOSE_ASCODING_ERRORS, gnash::XML_as::ignoreWhite(), gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::as_value::is_object(), gnash::as_value::is_undefined(), isNaN(), isNativeType(), gnash::XML_as::loaded(), log_aserror(), log_error(), gnash::fn_call::nargs, gnash::XMLNode_as::nodeNameSet(), gnash::XMLNode_as::nodeTypeSet(), gnash::XMLNode_as::nodeValueSet(), gnash::key::o, gnash::XMLNode_as::object(), gnash::XML_as::parseXML(), gnash::NSV::PROP_LOADED, gnash::NSV::PROP_ON_LOAD, gnash::NSV::PROP_PARSE_XML, gnash::VM::registerNative(), gnash::as_object::set_member(), gnash::XML_as::setContentType(), gnash::XML_as::setDocTypeDecl(), gnash::XML_as::setLoaded(), gnash::as_object::setRelay(), gnash::XML_as::setStatus(), gnash::XML_as::setXMLDecl(), gnash::XML_as::status(), gnash::XMLNode_as::Text, gnash::fn_call::this_ptr, gnash::as_value::to_string(), toBool(), toNumber(), toObject(), gnash::XML_as::XML_as(), gnash::XML_as::XML_LOADED_UNDEFINED, and gnash::XMLNode_as::XMLNode_as().

Referenced by gnash::XML_as::ignoreWhite(), and gnash::Global_as::makeObject().

§ registerXMLNodeNative()

void gnash::registerXMLNodeNative ( as_object where)

Register ASnative methods.

References getVM(), and gnash::VM::registerNative().

Referenced by gnash::Global_as::makeObject().

§ registerXMLSocketNative()

void gnash::registerXMLSocketNative ( as_object global)

§ remoteCallback()

bool gnash::remoteCallback ( NPObject *  npobj,
NPIdentifier  name,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)

§ remove_handler()

gboolean gnash::remove_handler ( GIOChannel *  ,
GIOCondition  ,
gpointer   
)

§ Rewind()

bool gnash::Rewind ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)

§ selection_class_init()

void gnash::selection_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global Selection class.

Handles addListener, removeListener, and _listeners.

References callMethod(), getGlobal(), gnash::AsBroadcaster::initialize(), gnash::key::o, gnash::NSV::PROP_AS_SET_PROP_FLAGS, and registerBuiltinObject().

Referenced by gnash::Global_as::makeObject().

§ sendEvent()

void gnash::sendEvent ( as_object o,
const as_environment env,
const ObjectURI name 
)

Send a system event.

This is used for broadcasting system events. The prototype search is carried out, but there is no call to __resolve and triggers are not processed. The function is called with no arguments.

Parameters
oThe object to send the event to.
envThe environment to use, generally provided by the calling DisplayObject
nameThe name of the function to call.

References gnash::as_object::findProperty(), gnash::Property::getValue(), invoke(), and gnash::key::o.

Referenced by gnash::Button::mouseEvent(), and gnash::MovieClip::notifyEvent().

§ setDisplayObjectProperty()

bool gnash::setDisplayObjectProperty ( DisplayObject obj,
const ObjectURI uri,
const as_value val 
)

Set special properties.

This sets the magic properties of DisplayObjects.

Parameters
keyThe string table key of the property to set.
objThe DisplayObject whose property should be set
valAn as_value representing the new value of the property. Some values may be rejected.

Referenced by gnash::as_object::set_member().

§ setHeight()

void gnash::setHeight ( DisplayObject o,
const as_value val 
)

§ setIndexedProperty()

void gnash::setIndexedProperty ( size_t  index,
DisplayObject o,
const as_value val 
)

Set a property by its numeric index.

Used by ASHandlers to set the DisplayObject properties indexed by number

Parameters
indexThe index of the property to set.
oThe DisplayObject whose property should be set
valAn as_value representing the new value of the property. Some values may be rejected.

References _, gnash::DisplayObject::getTarget(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_value::is_null(), gnash::as_value::is_undefined(), log_aserror(), gnash::key::o, and gnash::key::s.

Referenced by gnash::SWF::SWFHandlers::execute().

§ setLerp() [1/2]

void gnash::setLerp ( LineStyle s,
const LineStyle ls1,
const LineStyle ls2,
double  ratio 
)
inline

§ setLerp() [2/2]

void gnash::setLerp ( FillStyle f,
const FillStyle a,
const FillStyle b,
double  t 
)

Set the FillStyle to a lerp of a and b.

Callers must ensure that all FillStyles have exactly the same type! Most errors are caught by type-checking and will throw an unhandled exception.

References gnash::FillStyle::fill.

Referenced by gnash::GradientFill::matrix().

§ setLocal()

void gnash::setLocal ( CallFrame c,
const ObjectURI name,
const as_value val 
)

Set a local variable in this CallFrame.

If the variable does not already exist, it is created.

Parameters
cThe CallFrame to set the variable in.
nameThe name of the variable to set.
valThe value to set the variable to.

References gnash::as_object::getOwnProperty(), gnash::CallFrame::locals(), gnash::as_object::set_member(), and gnash::Property::setValue().

Referenced by gnash::Function2::call(), gnash::Function::call(), gnash::CallFrame::hasRegisters(), parsePath(), and gnash::ActionExec::setLocalVariable().

§ setNaN()

void gnash::setNaN ( as_value v)
inline

§ setVariable()

void gnash::setVariable ( const as_environment ctx,
const std::string &  path,
const as_value val,
const as_environment::ScopeStack scope 
)

Given a path to variable, set its value.

If no variable with that name is found, a new one is created.

For path-less variables, this would act as a proxy for set_variable_raw.

Parameters
ctxTimeline context to use for variable finding.
pathVariable path.
valThe value to assign to the variable.
scopeThe Scope stack to use for lookups.

References _, findObject(), getURI(), gnash::as_environment::getVM(), IF_VERBOSE_ACTION, IF_VERBOSE_ASCODING_ERRORS, log_action(), log_aserror(), parsePath(), path, gnash::as_object::set_member(), and gnash::as_environment::target().

Referenced by gnash::ActionExec::getScopeStack(), gnash::ActionExec::setLocalVariable(), gnash::ActionExec::setVariable(), and gnash::as_environment::stack_size().

§ SetVariableCallback()

bool gnash::SetVariableCallback ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)

§ SetZoomRect()

bool gnash::SetZoomRect ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)

§ sharedobject_class_init()

void gnash::sharedobject_class_init ( as_object where,
const ObjectURI uri 
)

§ sound_class_init()

void gnash::sound_class_init ( as_object where,
const ObjectURI uri 
)

§ stage_class_init()

void gnash::stage_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global Stage class.

References gnash::AsBroadcaster::initialize(), and registerBuiltinObject().

Referenced by gnash::Global_as::makeObject().

§ StopPlay()

bool gnash::StopPlay ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)

§ string_class_init()

void gnash::string_class_init ( as_object where,
const ObjectURI uri 
)

§ string_of_FOURCC()

DSOEXPORT const char * gnash::string_of_FOURCC ( std::uint32_t  fourcc)

Return a string representation of a FOURCC.

Referenced by gnash::VaapiImage::~VaapiImage().

§ string_of_VAEntrypoint()

DSOEXPORT const char * gnash::string_of_VAEntrypoint ( VAEntrypoint  entrypoint)

Return a string representation of a VAEntrypoint.

References ENTRYPOINT.

§ string_of_VAProfile()

DSOEXPORT const char * gnash::string_of_VAProfile ( VAProfile  profile)

Return a string representation of a VAProfile.

References PROFILE.

Referenced by gnash::VaapiContext::VaapiContext().

§ stringToStageAlign()

DSOEXPORT short gnash::stringToStageAlign ( const std::string &  str)

§ subtract()

void gnash::subtract ( as_value op1,
const as_value op2,
const VM vm 
)

Carry out ActionSubtract.

Parameters
op1The as_value to subtract from.
op2The as_value to subtract.
vmThe VM executing the operation.

References gnash::as_value::set_double(), and toNumber().

Referenced by gnash::SWF::SWFHandlers::execute(), gnash::abc::Machine::execute(), and rectangle_class_init().

§ system_class_init()

void gnash::system_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global System class.

References registerBuiltinObject().

Referenced by gnash::Global_as::makeObject().

§ terminate_signal()

void gnash::terminate_signal ( int  )

Referenced by gnash::DumpGui::init().

§ textfield_class_init()

void gnash::textfield_class_init ( as_object where,
const ObjectURI uri 
)

This provides the prototype and static methods for TextField.

Initialize the global TextField class.

For SWF5 there is initially no prototype, for SWF6+ there is a limited prototype. This is changed later on instantiation of a TextField.

References callMethod(), gnash::Global_as::createClass(), createObject(), gnash::as_object::DefaultFlags, getGlobal(), gnash::as_object::init_member(), and gnash::NSV::PROP_AS_SET_PROP_FLAGS.

Referenced by gnash::Global_as::makeObject().

§ textformat_class_init()

void gnash::textformat_class_init ( as_object global,
const ObjectURI uri 
)

References _, gnash::key::a, gnash::TextFormat_as::align(), gnash::TextField::ALIGN_CENTER, gnash::TextField::ALIGN_JUSTIFY, gnash::TextField::ALIGN_LEFT, gnash::TextField::ALIGN_RIGHT, gnash::TextFormat_as::alignSet(), gnash::fn_call::arg(), gnash::Font::ascent(), gnash::TextFormat_as::bold(), gnash::as_object::clearProperties(), gnash::TextFormat_as::color(), gnash::TextFormat_as::colorSet(), gnash::Global_as::createClass(), createObject(), gnash::as_object::DefaultFlags, gnash::Movie::definition(), gnash::Font::descent(), gnash::TextFormat_as::display(), gnash::TextFormat_as::displaySet(), gnash::key::e, gnash::movie_definition::exportID(), gnash::key::f, gnash::TextFormat_as::font(), foreachArray(), gnash::Font::get_advance(), gnash::fontlib::get_default_font(), gnash::fontlib::get_font(), gnash::movie_definition::get_font(), gnash::Font::get_glyph_index(), gnash::as_object::get_prototype(), getGlobal(), gnash::VM::getNative(), getRoot(), gnash::movie_root::getRootMovie(), getSWFVersion(), getVM(), height, IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::TextFormat_as::italic(), log_aserror(), log_debug(), log_error(), LOG_ONCE, log_unimpl(), name, gnash::fn_call::nargs, gnash::key::o, gnash::rgba::parseRGB(), pixelsToTwips(), gnash::key::s, gnash::as_value::set_double(), gnash::as_value::set_null(), gnash::as_value::set_string(), gnash::as_object::setRelay(), gnash::TextFormat_as::size(), gnash::TextFormat_as::tabStops(), gnash::TextFormat_as::tabStopsSet(), gnash::TextField::TEXTFORMAT_BLOCK, gnash::TextField::TEXTFORMAT_INLINE, toBool(), toInt(), toNumber(), toObject(), twipsToPixels(), gnash::Font::unitsPerEM(), and width.

Referenced by gnash::TextFormat_as::displaySet(), and gnash::Global_as::makeObject().

§ textrenderer_class_init()

void gnash::textrenderer_class_init ( as_object where,
const ObjectURI uri 
)

§ textsnapshot_class_init()

void gnash::textsnapshot_class_init ( as_object where,
const ObjectURI uri 
)

§ toBool()

bool gnash::toBool ( const as_value v,
const VM vm 
)

§ toCxForm()

SWFCxForm gnash::toCxForm ( const ColorTransform_as tr)

§ toInt()

std::int32_t gnash::toInt ( const as_value val,
const VM vm 
)

AS2-compatible conversion to 32bit integer.

This truncates large numbers to fit in the 32-bit space. It is not a proper function of as_value because it is simply a further operation on the stored number type. This function calls to_number(), so performs a conversion if necessary.

Parameters
valThe value to return as an int.
vmThe VM to use for the conversion.
Returns
The integer value of the passed as_value.

References gnash::key::d, gnash::VM::getSWFVersion(), isFinite(), isNaN(), and gnash::as_value::to_number().

Referenced by arrayKey(), arrayLength(), checkArrayLength(), color_class_init(), gnash::SWF::SWFHandlers::execute(), gnash::abc::Machine::execute(), gnash::AsBroadcaster::init(), key_is_down(), gnash::Global_as::makeObject(), registerBitmapDataNative(), registerColorTransformNative(), registerDateNative(), registerLocalConnectionNative(), registerMovieClipNative(), registerSelectionNative(), registerSharedObjectNative(), registerSoundNative(), registerTextFieldNative(), string_class_init(), textformat_class_init(), and xmlnode_class_init().

§ toNumber()

DSOTEXPORT double gnash::toNumber ( const as_value v,
const VM vm 
)

§ toObject()

as_object * gnash::toObject ( const as_value v,
VM vm 
)

§ toString()

const std::string& gnash::toString ( VM vm,
const ObjectURI uri 
)
inline

§ toSWFMatrix()

SWFMatrix gnash::toSWFMatrix ( as_object m)

§ TotalFrames()

bool gnash::TotalFrames ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)

§ transform_class_init()

void gnash::transform_class_init ( as_object where,
const ObjectURI uri 
)

§ truncateWithFactor()

template<size_t Factor>
std::int32_t gnash::truncateWithFactor ( double  a)

References isNaN().

§ twipsToPixels()

double gnash::twipsToPixels ( int  i)
inline

§ typeFromFileName()

FileType gnash::typeFromFileName ( const std::string &  filename)

Guess an appropriate file type from the filename.

If none can be guessed, we use png.

References GNASH_FILETYPE_JPEG, and GNASH_FILETYPE_PNG.

§ typeName()

template<class T >
std::string gnash::typeName ( const T &  inst)

§ unescapeXML()

void gnash::unescapeXML ( std::string &  text)

§ vaapi_check_status()

bool DSOEXPORT gnash::vaapi_check_status ( VAStatus  status,
const char *  msg 
)

§ vaapi_dprintf()

void DSOEXPORT gnash::vaapi_dprintf ( const char *  format,
  ... 
)

§ vaapi_is_enabled()

bool DSOEXPORT gnash::vaapi_is_enabled ( )

§ vaapi_set_is_enabled()

void DSOEXPORT gnash::vaapi_set_is_enabled ( bool  enabled)

Enable video acceleration (with VA API)

Referenced by gnash::VaapiGlobalContext::get(), and gnash_canvas_setup().

§ video_class_init()

void gnash::video_class_init ( as_object global,
const ObjectURI uri 
)

§ visible()

bool gnash::visible ( const Property prop,
int  version 
)
inline

§ wait_for_gdb()

void gnash::wait_for_gdb ( )

§ writeLong()

void gnash::writeLong ( std::uint8_t *&  ptr,
std::uint32_t  i 
)

§ xml_class_init()

void gnash::xml_class_init ( as_object where,
const ObjectURI uri 
)

§ xmlnode_class_init()

void gnash::xmlnode_class_init ( as_object where,
const ObjectURI uri 
)

References _, gnash::XMLNode_as::appendChild(), gnash::fn_call::arg(), gnash::XMLNode_as::childNodes(), gnash::XMLNode_as::cloneNode(), gnash::Global_as::createClass(), createObject(), gnash::as_object::DefaultFlags, gnash::XMLNode_as::descendsFrom(), gnash::fn_call::dump_args(), gnash::key::e, gnash::XMLNode_as::Element, enumerateProperties(), gnash::XMLNode_as::extractPrefix(), gnash::XMLNode_as::firstChild(), gnash::XMLNode_as::getAttributes(), getGlobal(), gnash::XMLNode_as::getNamespaceForPrefix(), gnash::XMLNode_as::getNamespaceURI(), gnash::VM::getNative(), gnash::XMLNode_as::getParent(), gnash::XMLNode_as::getPrefixForNamespace(), getStringTable(), getVM(), gnash::XMLNode_as::hasChildNodes(), gnash::key::i, IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::as_object::init_readonly_property(), gnash::XMLNode_as::insertBefore(), isNativeType(), gnash::XMLNode_as::lastChild(), log_aserror(), name, gnash::fn_call::nargs, gnash::XMLNode_as::nextSibling(), gnash::XMLNode_as::nodeName(), gnash::XMLNode_as::nodeNameSet(), gnash::XMLNode_as::nodeType(), gnash::XMLNode_as::nodeValue(), gnash::XMLNode_as::nodeValueSet(), gnash::key::o, gnash::XMLNode_as::object(), gnash::XMLNode_as::previousSibling(), gnash::XMLNode_as::removeChild(), gnash::as_value::set_null(), gnash::as_object::setRelay(), toBool(), toInt(), toObject(), gnash::XMLNode_as::toString(), and gnash::XMLNode_as::XMLNode_as().

Referenced by gnash::Global_as::makeObject().

§ xmlsocket_class_init()

void gnash::xmlsocket_class_init ( as_object where,
const ObjectURI uri 
)

Initialize the global XMLSocket class.

References registerBuiltinClass().

Referenced by gnash::Global_as::makeObject().

§ Zoom()

bool gnash::Zoom ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)

Variable Documentation

§ config

struct lirc_config* gnash::config

§ cookiefile

std::string gnash::cookiefile

§ dbglogfile

static LogFile & gnash::dbglogfile = LogFile::getDefaultInstance()

§ GNASH_HIDDEN

const int gnash::GNASH_HIDDEN = 'GHID'

§ GNASH_KEY_EVENT

const int gnash::GNASH_KEY_EVENT = 'GKKE'

§ GNASH_MOUSE_CLICKED

const int gnash::GNASH_MOUSE_CLICKED = 'GMCL'

§ GNASH_MOUSE_MOVED

const int gnash::GNASH_MOUSE_MOVED = 'GMMV'

§ GNASH_PULSE

const int32 gnash::GNASH_PULSE = 'GPLS'

§ GNASH_QUITTING

const int32 gnash::GNASH_QUITTING = 'GQUI'

§ GNASH_RESIZE

const int gnash::GNASH_RESIZE = 'GRSZ'

§ GNASH_SEND_PULSE

const int32 gnash::GNASH_SEND_PULSE = 'GSPL'

§ GNASH_SET_FULLSCREEN

const int gnash::GNASH_SET_FULLSCREEN = 'GSFS'

§ GNASH_SHOWN

const int gnash::GNASH_SHOWN = 'GSHN'

§ GNASH_UNSET_FULLSCREEN

const int gnash::GNASH_UNSET_FULLSCREEN = 'GUFS'

§ myWindow

WindowRef gnash::myWindow = NULL

§ plugInitialized

NPBool gnash::plugInitialized = FALSE

§ terminate_request

std::sig_atomic_t gnash::terminate_request = false