Gnash
0.8.11dev
|
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< CallFrame > | CallStack |
typedef std::vector< Path > | PathVec |
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_object > | init_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_object > | init_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< Gui > | createAOS4Gui (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< Gui > | createAQUAGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int) |
void | terminate_signal (int) |
std::unique_ptr< Gui > | createDumpGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int) |
std::unique_ptr< Gui > | createFLTKGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int) |
bool | cairoFormatFromVisual (const GdkVisual *visual, cairo_format_t *format) |
std::unique_ptr< Gui > | createGTKGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int) |
std::unique_ptr< Gui > | createGTKGui (unsigned long xid, float scale, bool loop, RunResources &r) |
std::unique_ptr< Gui > | createKDEGui (unsigned long xid, float scale, bool loop, RunResources &r) |
std::unique_ptr< Gui > | createQt4Gui (unsigned long xid, float scale, bool loop, RunResources &r) |
std::unique_ptr< Gui > | createSDLGui (unsigned long xid, float scale, bool loop, RunResources &r) |
std::unique_ptr< Gui > | createFLTKGui (unsigned long xid, float scale, bool loop, RunResources &r) |
std::unique_ptr< Gui > | createAQUAGui (unsigned long xid, float scale, bool loop, RunResources &r) |
std::unique_ptr< Gui > | createRISCOSGui (unsigned long xid, float scale, bool loop, RunResources &r) |
std::unique_ptr< Gui > | createAOS4Gui (unsigned long xid, float scale, bool loop, RunResources &r) |
std::unique_ptr< Gui > | createHaikuGui (unsigned long xid, float scale, bool loop, RunResources &r) |
std::unique_ptr< Gui > | createDumpGui (unsigned long xid, float scale, bool loop, RunResources &r) |
std::unique_ptr< Gui > | createHaikuGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int) |
std::unique_ptr< Gui > | createKDEGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int) |
std::unique_ptr< Gui > | createQt4Gui (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< Gui > | createSDLGui (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 > | |
T | clamp (T i, T min, T max) |
template<typename T > | |
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< IOChannel > | makeFileChannel (FILE *fp, bool close) |
Creates an IOChannel wrapper around a C stream. More... | |
std::unique_ptr< IOChannel > | makeFileChannel (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_object * | findObject (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) |
DisplayObject * | findTarget (const as_environment &env, const std::string &path) |
Find the DisplayObject referenced by the given path. More... | |
string_table & | getStringTable (const as_environment &env) |
movie_root & | getRoot (const as_environment &env) |
Global_as & | getGlobal (const as_environment &env) |
int | getSWFVersion (const as_environment &env) |
VM & | getVM (const as_environment &env) |
as_object * | constructInstance (as_function &ctor, const as_environment &env, fn_call::Args &args) |
as_object * | constructInstance (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_object * | getPathElement (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_object * | getObjectWithPrototype (Global_as &gl, const ObjectURI &c) |
VM & | getVM (const as_object &o) |
Get the VM from an as_object. More... | |
movie_root & | getRoot (const as_object &o) |
Get the movie_root from an as_object. More... | |
string_table & | getStringTable (const as_object &o) |
Get the string_table from an as_object. More... | |
const RunResources & | getRunResources (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_as & | getGlobal (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_object * | createObject (const Global_as &gl) |
as_object * | registerBuiltinObject (as_object &where, Global_as::Properties p, const ObjectURI &uri) |
Register a built-in object. More... | |
as_object * | registerBuiltinClass (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_function * | getClassConstructor (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_object * | createTextFieldObject (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_object * | createVideoObject (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) |
DisplayObject * | findDisplayObjectByTarget (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 SWFMatrix & | getMatrix (const DisplayObject &o) |
Get local transform SWFMatrix for this DisplayObject. More... | |
const SWFCxForm & | getCxForm (const DisplayObject &o) |
as_object * | getObject (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_object * | getArguments (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_table & | getStringTable (const fn_call &fn) |
movie_root & | getRoot (const fn_call &fn) |
int | getSWFVersion (const fn_call &fn) |
VM & | getVM (const fn_call &fn) |
Global_as & | getGlobal (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_object * | toObject (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_value & | convertToNumber (as_value &v, const VM &vm) |
Force type to number. More... | |
as_value & | convertToString (as_value &v, const VM &vm) |
Force type to string. More... | |
as_value & | convertToBoolean (as_value &v, const VM &vm) |
Force type to bool. More... | |
as_value & | convertToPrimitive (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 > | |
T | cdiff (T a, T b, double ratio) |
bool | is_little_endian_host () |
DSOEXPORT Renderer_agg_base * | create_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 > ¶ms) |
template<std::size_t N> | |
void | close_fds (const int(&except)[N]) |
void | wait_for_gdb () |
void | printNPVariant (const NPVariant *value) |
Variables | |
LogFile & | dbglogfile = 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 |
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.
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 std::vector<CallFrame> gnash::CallStack |
typedef std::vector<geometry::Range2d<int> > gnash::ClipBounds |
typedef std::vector<const char*> gnash::ConstantPool |
An indexed list of strings (must match the definition in action_buffer.h)
typedef std::vector<std::unique_ptr<BitmapFilter> > gnash::Filters |
typedef geometry::SnappingRanges2d<std::int32_t> gnash::InvalidatedRanges |
Standard snapping 2d ranges type for invalidated bounds calculation.
typedef GLfloat gnash::oglCoord |
typedef std::pair<FillStyle, boost::optional<FillStyle> > gnash::OptionalFillPair |
Either a single or a morph-pair FillStyle.
typedef std::vector<const Path*> gnash::PathPtrVec |
typedef std::vector< Path > gnash::PathVec |
typedef geometry::Point2d gnash::point |
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.
enum gnash::CapStyle |
enum gnash::FileType |
enum gnash::filter_types |
enum gnash::JoinStyle |
enum gnash::Quality |
enum gnash::VaapiCodec |
Initialize the global Accessibility class.
References gnash::NSV::CLASS_OBJECT, createObject(), gnash::as_object::DefaultFlags, getGlobal(), getMember(), gnash::as_object::init_member(), gnash::NSV::PROP_CONSTRUCTOR, gnash::NSV::PROP_uuPROTOuu, gnash::PropFlags::readOnly, and gnash::as_object::set_member_flags().
Referenced by gnash::Global_as::makeObject().
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().
Initialize the global.Array object.
References createObject(), gnash::PropFlags::dontEnum, getGlobal(), gnash::VM::getNative(), getVM(), gnash::as_object::init_member(), gnash::NSV::PROP_CONSTRUCTOR, and gnash::NSV::PROP_PROTOTYPE.
Referenced by foreachArray(), and gnash::Global_as::registerClasses().
Convert an integral value into an ObjectURI.
NB this function adds a string value to the VM for each separate integral value. It's the way the VM works.
i | The integral value to find |
References _, gnash::fn_call::arg(), gnash::as_object::array(), arrayLength(), gnash::key::c, callMethod(), gnash::Global_as::createArray(), gnash::as_object::delProperty(), gnash::key::e, gnash::image::end(), gnash::fn_call::env(), foreachArray(), getClassConstructor(), getGlobal(), gnash::VM::getNative(), getOwnProperty(), getSWFVersion(), getURI(), getVM(), gnash::key::i, IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::as_object::instanceOf(), gnash::fn_call::isInstantiation(), length, log_aserror(), gnash::fn_call::nargs, gnash::NSV::PROP_LENGTH, gnash::NSV::PROP_PUSH, gnash::key::s, gnash::as_object::set_member(), gnash::as_object::setArray(), gnash::as_object::setRelay(), start, gnash::key::T, gnash::fn_call::this_ptr, gnash::as_value::to_string(), toInt(), toNumber(), toObject(), and test::v.
Referenced by externalinterface_class_init(), fileio_scandir(), foreachArray(), and gnash::XMLNode_as::object().
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
array | The object whose array length is needed. |
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().
size_t gnash::arraySize | ( | T(&) | [N] | ) |
Get the size of an array without passing a pointer by mistake.
References gnash::key::N.
Referenced by gnash::Socket::connect(), gnash::SWF::define_sound_loader(), gnash::SWF::SoundStreamHeadTag::loader(), gnash::NSV::loadStrings(), gnash::MovieClip::mouseEnabled(), registerSharedObjectNative(), registerSystemNative(), writeFLVHeader(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
void gnash::attachAsBroadcasterStaticInterface | ( | as_object & | o | ) |
References gnash::Global_as::createFunction(), gnash::PropFlags::dontDelete, gnash::PropFlags::dontEnum, getGlobal(), gnash::VM::getNative(), getVM(), gnash::as_object::init_member(), gnash::PropFlags::onlySWF6Up, gnash::NSV::PROP_ADD_LISTENER, gnash::NSV::PROP_BROADCAST_MESSAGE, and gnash::NSV::PROP_REMOVE_LISTENER.
Referenced by gnash::AsBroadcaster::init().
|
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().
void gnash::attachKeyInterface | ( | as_object & | o | ) |
References gnash::key::ALT, gnash::key::BACKSPACE, gnash::key::CAPSLOCK, gnash::key::CONTROL, gnash::Global_as::createFunction(), gnash::key::DELETEKEY, gnash::PropFlags::dontDelete, gnash::PropFlags::dontEnum, gnash::key::DOWN, gnash::key::END, gnash::key::ENTER, gnash::key::ESCAPE, getGlobal(), gnash::VM::getNative(), getVM(), gnash::key::HOME, gnash::as_object::init_member(), gnash::key::INSERT, KEY_CONST, key_is_accessible(), gnash::key::LEFT, gnash::key::PGDN, gnash::key::PGUP, gnash::PropFlags::readOnly, gnash::key::RIGHT, gnash::key::SHIFT, SPACE, gnash::key::TAB, and gnash::key::UP.
Referenced by key_class_init().
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().
The prototype of flash.filters.BevelFilter is a new BitmapFilter.
Initialize the global BitmapFilter class.
References gnash::fn_call::arg(), gnash::BevelFilter::FULL_BEVEL, getVM(), gnash::as_object::init_property(), gnash::BevelFilter::INNER_BEVEL, gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF8Up, gnash::BevelFilter::OUTER_BEVEL, registerBitmapClass(), gnash::as_object::setRelay(), toBool(), and toNumber().
Initialize the global BitmapData class.
References gnash::as_object::init_destructive_property().
Initialize the global BitmapFilter class.
References gnash::as_object::init_destructive_property().
Initialize the global BlurFilter class.
References gnash::fn_call::arg(), getVM(), gnash::as_object::init_property(), gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF8Up, registerBitmapClass(), gnash::as_object::setRelay(), and toNumber().
Initialize the global Boolean class.
References createObject(), gnash::as_object::DefaultFlags, getGlobal(), gnash::VM::getNative(), getVM(), gnash::as_object::init_member(), gnash::NSV::PROP_CONSTRUCTOR, and gnash::NSV::PROP_PROTOTYPE.
Referenced by gnash::Global_as::makeObject().
Initialize the global Button class.
References gnash::Global_as::createClass(), createObject(), gnash::as_object::DefaultFlags, emptyFunction(), getGlobal(), and gnash::as_object::init_member().
Referenced by gnash::Global_as::makeObject().
bool gnash::cairoFormatFromVisual | ( | const GdkVisual * | visual, |
cairo_format_t * | format | ||
) |
References gnash::GtkGlue::_drawing_area, height, and width.
|
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.
obj | The 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. |
name | The name of the method. |
arg0..argN | The arguments to pass |
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().
|
inline |
References callMethod().
|
inline |
References callMethod().
Initialize the global Camera class.
References emptyFunction(), and registerBuiltinClass().
Referenced by gnash::Global_as::makeObject().
|
inline |
Return whether property matching is caseless.
References getSWFVersion().
Referenced by checkArrayLength(), findObject(), gnash::MovieClip::getDisplayListObject(), getDisplayObjectProperty(), gnash::DisplayObject::pathElement(), and gnash::DisplayList::~DisplayList().
T gnash::cdiff | ( | T | a, |
T | b, | ||
double | ratio | ||
) |
References gnash::key::a, gnash::key::d, and linearToSRGB().
Referenced by gnash::linear_rgb_interpolator< ColorT >::color().
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().
|
inline |
References gnash::key::i, and gnash::key::T.
Referenced by gnash::SWFRect::expand_to_circle(), and registerBitmapDataNative().
gboolean gnash::cleanup_childpid | ( | gpointer | data | ) |
References data, and log_debug().
Referenced by gnash::nsPluginInstance::~nsPluginInstance().
void gnash::close_fds | ( | const int(&) | except[N] | ) |
References log_debug().
Initialize the global Color class.
References _, gnash::SWFCxForm::aa, gnash::SWFCxForm::ab, gnash::fn_call::arg(), gnash::key::b, gnash::SWFCxForm::ba, gnash::SWFCxForm::bb, callMethod(), color, createObject(), gnash::key::d, gnash::as_object::DefaultFlags, gnash::PropFlags::dontDelete, gnash::PropFlags::dontEnum, gnash::fn_call::dump_args(), gnash::fn_call::env(), findTarget(), gnash::key::g, gnash::SWFCxForm::ga, gnash::SWFCxForm::gb, gnash::as_object::get_member(), getCxForm(), getGlobal(), getMember(), gnash::VM::getNative(), getURI(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), log_aserror(), gnash::fn_call::nargs, gnash::key::o, gnash::NSV::PROP_AS_SET_PROP_FLAGS, gnash::NSV::PROP_CONSTRUCTOR, gnash::NSV::PROP_PROTOTYPE, gnash::NSV::PROP_TARGET, gnash::NSV::PROP_uuPROTOuu, gnash::key::r, gnash::SWFCxForm::ra, gnash::SWFCxForm::rb, gnash::PropFlags::readOnly, registerBuiltinClass(), gnash::as_object::set_member(), gnash::as_object::set_member_flags(), gnash::DisplayObject::setCxForm(), gnash::DisplayObject::to_movie(), gnash::as_value::to_string(), toInt(), gnash::as_value::toMovieClip(), toNumber(), and toObject().
Referenced by gnash::Global_as::makeObject().
rgba gnash::colorFromHexString | ( | const std::string & | color | ) |
Create an RGBA value from a hex string (e.g. FF0000)
color | A 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().
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.
Initialize the global ColorTransform class.
References gnash::as_object::init_destructive_property().
Referenced by gnash::ColorTransform_as::getGreenOffset().
as_object* gnash::constructInstance | ( | as_function & | ctor, |
const as_environment & | env, | ||
fn_call::Args & | args | ||
) |
References gnash::as_object::as_object(), gnash::as_function::construct(), getGlobal(), gnash::as_object::getOwnProperty(), gnash::Property::getValue(), gnash::NSV::PROP_PROTOTYPE, and gnash::as_object::set_prototype().
Referenced by contextmenuitem_class_init(), createTextFieldObject(), doubleToString(), gnash::abc::Machine::execute(), gnash::as_function::isBuiltin(), gnash::Global_as::makeObject(), matrix_class_init(), gnash::amf::Reader::operator()(), point_class_init(), rectangle_class_init(), registerBitmapClass(), registerBitmapDataNative(), registerDateNative(), registerMovieClipNative(), registerSharedObjectNative(), registerTextFieldNative(), registerXMLSocketNative(), transform_class_init(), and xml_class_init().
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.
ctor | The constructor to run. |
env | The environment to use for the function call. |
arg | The arguments to pass to the constructor function. |
Initialize the global ContextMenu class.
References gnash::key::c, and registerBuiltinClass().
Referenced by gnash::Global_as::makeObject().
Initialize the global ContextMenuItem class.
References gnash::fn_call::arg(), constructInstance(), gnash::Global_as::createFunction(), gnash::PropFlags::dontDelete, gnash::PropFlags::dontEnum, gnash::fn_call::env(), getGlobal(), getMember(), getURI(), getVM(), gnash::as_object::init_member(), gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF7Up, gnash::NSV::PROP_ENABLED, gnash::NSV::PROP_ON_SELECT, registerBuiltinClass(), gnash::as_object::set_member(), gnash::fn_call::this_ptr, and gnash::as_value::to_function().
Referenced by gnash::Global_as::makeObject().
Force type to bool.
v | The value to change to a bool type. |
vm | The VM to use for the conversion. |
References gnash::VM::getSWFVersion(), gnash::as_value::set_bool(), gnash::as_value::to_bool(), and test::v.
Force type to number.
v | The value to change to a number type. |
vm | The VM to use for the conversion. |
References gnash::VM::getSWFVersion(), gnash::as_value::set_double(), gnash::as_value::to_number(), and test::v.
Referenced by gnash::SWF::SWFHandlers::execute().
Convert to the appropriate primitive type.
v | The value to change to a primitive type. |
vm | The VM to use for the conversion. |
References gnash::as_value::defaultPrimitive(), gnash::VM::getSWFVersion(), gnash::key::t, gnash::as_value::to_primitive(), and test::v.
Referenced by newAdd().
Force type to string.
v | The value to change to a string type. |
vm | The VM to use for the conversion. |
References gnash::VM::getSWFVersion(), gnash::as_value::set_string(), gnash::as_value::to_string(), and test::v.
Referenced by newAdd().
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.
void gnash::copyMatrix | ( | const DisplayObject & | from, |
DisplayObject & | to | ||
) |
Copy SWFMatrix and caches from given DisplayObjecta.
from | The DisplayObject to copy from |
to | The DisplayObject to copy to. |
|
inline |
Makes a deep copy of a NPVariant.
from | The source NPVariant to copy values from. |
to | The destination NPVariant. |
References GetNPStringChars(), GetNPStringLen(), NPN_MemAlloc(), and NPN_RetainObject().
Referenced by gnash::GnashNPVariant::copy(), gnash::GnashNPVariant::GnashNPVariant(), and gnash::GnashNPVariant::operator=().
render_handler* gnash::create_render_handler_gles1 | ( | bool | init, |
OglGlue * | glue | ||
) |
DSOEXPORT Renderer_agg_base * gnash::create_Renderer_agg | ( | const char * | pixelformat | ) |
Create a render handler.
If the given pixelformat is unsupported, or any other error occurs, NULL is returned.
References _, is_little_endian_host(), log_debug(), and log_error().
Referenced by gnash::SdlAggGlue::createRenderHandler(), gnash::GtkAggGlue::createRenderHandler(), gnash::AOS4AggGlue::createRenderHandler(), gnash::FltkAggGlue::createRenderHandler(), gnash::KdeAggGlue::createRenderHandler(), gnash::Qt4AggGlue::createRenderHandler(), gnash::HaikuAggGlue::createRenderHandler(), gnash::gui::FBAggGlue::createRenderHandler(), gnash::DumpGui::init(), and gnash::Renderer_agg_base::initTestBuffer().
void gnash::create_standalone_launcher | ( | const std::string & | page_url, |
const std::string & | swf_url, | ||
const std::map< std::string, std::string > & | params | ||
) |
std::unique_ptr<Gui> gnash::createAOS4Gui | ( | unsigned | long, |
float | , | ||
bool | , | ||
RunResourcesfloat | , | ||
bool | , | ||
unsigned | int | ||
) |
Referenced by gnash::Player::run(), and gnash::Gui::visible().
std::unique_ptr<Gui> gnash::createAOS4Gui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
std::unique_ptr<Gui> gnash::createAQUAGui | ( | unsigned | long, |
float | , | ||
bool | , | ||
RunResourcesfloat | , | ||
bool | , | ||
unsigned | int | ||
) |
Referenced by gnash::Player::run(), and gnash::Gui::visible().
std::unique_ptr<Gui> gnash::createAQUAGui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
std::unique_ptr<Gui> gnash::createDumpGui | ( | unsigned | long, |
float | , | ||
bool | , | ||
RunResourcesfloat | , | ||
bool | , | ||
unsigned | int | ||
) |
Referenced by gnash::Player::run(), and gnash::Gui::visible().
std::unique_ptr<Gui> gnash::createDumpGui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
std::unique_ptr<Gui> gnash::createFLTKGui | ( | unsigned | long, |
float | , | ||
bool | , | ||
RunResourcesfloat | , | ||
bool | , | ||
unsigned | int | ||
) |
Referenced by gnash::Player::run(), and gnash::Gui::visible().
std::unique_ptr<Gui> gnash::createFLTKGui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
std::unique_ptr<Gui> gnash::createGTKGui | ( | unsigned | long, |
float | , | ||
bool | , | ||
RunResourcesfloat | , | ||
bool | , | ||
unsigned | int | ||
) |
Referenced by gnash::Player::run(), and gnash::Gui::visible().
std::unique_ptr<Gui> gnash::createGTKGui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
std::unique_ptr<Gui> gnash::createHaikuGui | ( | unsigned | long, |
float | , | ||
bool | , | ||
RunResourcesfloat | , | ||
bool | , | ||
unsigned | int | ||
) |
std::unique_ptr<Gui> gnash::createHaikuGui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
Referenced by gnash::Player::run(), and gnash::Gui::visible().
std::unique_ptr<Gui> gnash::createKDEGui | ( | unsigned | long, |
float | , | ||
bool | , | ||
RunResourcesfloat | , | ||
bool | , | ||
unsigned | int | ||
) |
std::unique_ptr<Gui> gnash::createKDEGui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
Referenced by gnash::Player::run(), and gnash::Gui::visible().
DSOTEXPORT as_object * gnash::createObject | ( | const Global_as & | gl | ) |
References _, gnash::as_object::as_object(), gnash::RcInitFile::enableExtensions(), gnash::RcInitFile::getDefaultInstance(), log_security(), and gnash::Global_as::makeObject().
Referenced by accessibility_class_init(), array_class_init(), boolean_class_init(), button_class_init(), color_class_init(), gnash::Global_as::createFunction(), date_class_init(), dbus_class_init(), dejagnu_class_init(), externalinterface_class_init(), fileio_class_init(), filereference_class_init(), function_class_init(), gnash::NetStream_as::get_video(), getObjectWithPrototype(), gnash::Global_as::getVM(), lirc_class_init(), gnash::Global_as::makeObject(), matrix_class_init(), movieclip_class_init(), moviecliploader_class_init(), mysql_class_init(), gnash::NetConnection_as::notifyStatus(), number_class_init(), gnash::XMLNode_as::object(), gnash::amf::Reader::operator()(), rectangle_class_init(), registerBitmapClass(), registerBitmapDataNative(), registerBuiltinClass(), registerBuiltinObject(), registerColorTransformNative(), registerSharedObjectNative(), sharedobject_class_init(), sound_class_init(), string_class_init(), textfield_class_init(), textformat_class_init(), transform_class_init(), video_class_init(), and xmlnode_class_init().
std::unique_ptr<Gui> gnash::createQt4Gui | ( | unsigned | long, |
float | , | ||
bool | , | ||
RunResourcesfloat | , | ||
bool | , | ||
unsigned | int | ||
) |
std::unique_ptr<Gui> gnash::createQt4Gui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
Referenced by gnash::Player::run(), and gnash::Gui::visible().
std::unique_ptr<Gui> gnash::createRISCOSGui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
Referenced by gnash::Player::run(), and gnash::Gui::visible().
std::unique_ptr<Gui> gnash::createSDLGui | ( | unsigned | long, |
float | , | ||
bool | , | ||
RunResourcesfloat | , | ||
bool | , | ||
unsigned | int | ||
) |
std::unique_ptr<Gui> gnash::createSDLGui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
Referenced by gnash::Player::run(), and gnash::Gui::visible().
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().
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().
References gnash::Global_as::createClass(), createObject(), gnash::as_object::DefaultFlags, getGlobal(), gnash::as_object::init_member(), gnash::NSV::PROP_CONSTRUCTOR, gnash::NSV::PROP_PROTOTYPE, gnash::NSV::PROP_uuPROTOuu, gnash::PropFlags::readOnly, and gnash::as_object::set_member_flags().
Referenced by gnash::Date_as::getTimeValue(), and gnash::Global_as::makeObject().
void gnash::dbus_class_init | ( | as_object & | obj | ) |
References createObject(), and getGlobal().
References gnash::fn_call::arg(), GNASH_REPORT_FUNCTION, and gnash::fn_call::nargs.
Declare a local variable in this CallFrame.
The variable is declared and set to undefined if it doesn't exist already.
c | The CallFrame to set the variable in. |
name | The 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().
void gnash::dejagnu_class_init | ( | as_object & | obj | ) |
References gnash::Global_as::createClass(), createObject(), getGlobal(), and gnash::as_object::init_member().
References gnash::fn_call::arg(), and gnash::fn_call::nargs.
References gnash::fn_call::arg(), and gnash::fn_call::nargs.
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.
ctx | Timeline context to use for variable finding. |
varname | Variable name. Must not contain path elements. |
scope | The 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().
Initialize the global DisplacementMapFilter class.
References __FUNCTION__, gnash::Global_as::createFunction(), getGlobal(), gnash::as_object::init_member(), gnash::as_object::init_property(), LOG_ONCE, log_unimpl(), gnash::key::o, registerBitmapClass(), gnash::as_object::setRelay(), and UNUSED.
void gnash::DoAdvanceMovie | ( | EventLoopTimerRef | inTimer, |
void * | data | ||
) |
References data.
Referenced by gnash::AquaGui::run().
std::string gnash::doubleToString | ( | double | val, |
int | radix | ||
) |
Convert numeric value to string value, following ECMA-262 specification.
References gnash::as_value::as_value(), constructInstance(), gnash::as_value::equals(), gnash::as_object::get_member(), gnash::VM::getGlobal(), gnash::as_value::is_bool(), gnash::as_value::is_function(), gnash::as_value::is_number(), gnash::as_value::is_object(), gnash::as_value::is_string(), isFinite(), isInf(), isNaN(), gnash::key::m, gnash::key::n, gnash::as_value::NUMBER, gnash::as_value::strictly_equals(), gnash::key::T, gnash::as_value::to_function(), gnash::as_value::to_number(), and gnash::as_value::to_primitive().
Referenced by gnash::as_value::to_string(), and gnash::as_value::unflag_exception().
pascal OSStatus gnash::DoWindowClose | ( | EventHandlerCallRef | nextHandler, |
EventRef | theEvent, | ||
void * | userData | ||
) |
Referenced by gnash::AquaGui::createWindow().
The prototype of flash.filters.DropShadowFilter is a new BitmapFilter.
Initialize the global DropShadowFilter class.
References gnash::fn_call::arg(), getVM(), gnash::as_object::init_property(), gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF8Up, registerBitmapClass(), gnash::as_object::setRelay(), toBool(), and toNumber().
void gnash::dump_callbacks | ( | map< string, as_value > & | calls | ) |
References dbglogfile, name, and gnash::as_value::to_string().
Referenced by button_class_init(), camera_class_init(), externalinterface_class_init(), function_class_init(), gnash::AsBroadcaster::init(), loadvars_class_init(), microphone_class_init(), movieclip_class_init(), registerVideoNative(), registerXMLNative(), sharedobject_class_init(), and video_class_init().
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.
T | A 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. |
fn | The function whose 'this' pointer should be checked. |
References source, gnash::key::T, gnash::fn_call::this_ptr, and typeName().
Referenced by registerSoundNative().
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.
o | The object whose properties should be enumerated. |
References gnash::key::e, and gnash::as_object::visitProperties().
Referenced by getURLEncodedVars(), loadvars_class_init(), and xmlnode_class_init().
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.
st | The string table to use |
a | One key to check |
b | The other key to check |
caseless | Whether to compare in a case-insensitive way. |
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().
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.
a | The first value to compare |
b | The second value to compare |
vm | The VM to use for the comparison. |
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().
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().
Initialize the global Error class.
References gnash::fn_call::arg(), gnash::Global_as::createFunction(), gnash::as_object::get_member(), getGlobal(), getURI(), getVM(), gnash::as_object::init_member(), gnash::fn_call::nargs, gnash::key::o, registerBuiltinClass(), gnash::as_object::set_member(), and gnash::fn_call::this_ptr.
Referenced by gnash::Global_as::makeObject().
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().
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().
References gnash::fn_call::arg(), gnash::key::b, getVM(), and toBool().
References createObject(), and getGlobal().
References gnash::key::b.
References gnash::key::i.
References gnash::fn_call::arg(), getVM(), and toNumber().
References gnash::fn_call::arg().
References gnash::fn_call::arg(), getVM(), and toNumber().
References gnash::key::i.
References gnash::fn_call::arg().
References gnash::key::i.
References gnash::fn_call::arg(), and x.
References gnash::fn_call::arg().
References gnash::fn_call::arg().
Initialize the global FileReference class.
References _, callMethod(), gnash::Global_as::createClass(), gnash::Global_as::createFunction(), createObject(), gnash::as_object::DefaultFlags, gnash::fn_call::dump_args(), getGlobal(), gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::AsBroadcaster::initialize(), LOG_ONCE, log_unimpl(), gnash::fn_call::nargs, gnash::key::o, and gnash::NSV::PROP_AS_SET_PROP_FLAGS.
Initialize the global FileReferenceList class.
References filereferencelist_ctor(), and registerBuiltinClass().
References _, gnash::fn_call::dump_args(), LOG_ONCE, log_unimpl(), and gnash::fn_call::nargs.
Referenced by filereferencelist_class_init().
DisplayObject * gnash::findDisplayObjectByTarget | ( | const std::string & | tgtstr, |
movie_root & | mr | ||
) |
References gnash::movie_root::findCharacterByTarget().
Referenced by gnash::CharacterProxy::get().
DSOEXPORT as_object * gnash::findObject | ( | const as_environment & | ctx, |
const std::string & | path, | ||
const as_environment::ScopeStack * | scope = nullptr |
||
) |
Find the object referenced by the given path.
This is exposed to allow AS-scoped lookup from C++. Supports both /slash/syntax and dot.syntax
ctx | Timeline context to use for variable finding. |
path | Variable path. |
scope | The Scope stack to use for lookups. |
References _, caseless(), gnash::as_environment::get_original_target(), gnash::DisplayObject::getAsRoot(), getObject(), getURI(), gnash::as_environment::getVM(), gnash::key::i, IF_VERBOSE_ASCODING_ERRORS, log_aserror(), gnash::key::p, gnash::NSV::PROP_uGLOBAL, and gnash::as_environment::target().
Referenced by externalinterface_class_init(), findTarget(), getClassConstructor(), gnash::TextField::getDefinitionVersion(), getVariable(), matrix_class_init(), rectangle_class_init(), registerBitmapDataNative(), registerMovieClipNative(), gnash::DumpGui::run(), setVariable(), gnash::as_environment::stack_size(), and transform_class_init().
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().
References gnash::as_object::init_destructive_property().
References gnash::as_object::init_destructive_property().
References gnash::as_object::init_destructive_property().
References gnash::as_object::init_destructive_property().
References gnash::as_object::init_destructive_property().
References gnash::PropFlags::dontEnum, gnash::as_object::init_destructive_property(), and gnash::PropFlags::onlySWF8Up.
Referenced by gnash::Global_as::registerClasses().
References gnash::as_object::init_destructive_property().
void gnash::foreachArray | ( | as_object & | array, |
T & | pred | ||
) |
void gnash::foreachSecond | ( | T | begin, |
T | end, | ||
U | op | ||
) |
Call a functor on the second element of each element in a range.
T | An iterator type satisfying the requirements of a forward iterator |
U | The type of the functor op. |
begin | The start of the range to call op on. |
end | The end of the range to call op on. |
op | The 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().
|
inline |
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.
Initialize the global Function constructor.
References _, gnash::fn_call::arg(), gnash::as_object::call(), createObject(), gnash::as_object::DefaultFlags, emptyFunction(), foreachArray(), getGlobal(), gnash::VM::getNative(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), log_aserror(), gnash::fn_call::nargs, gnash::PropFlags::onlySWF6Up, gnash::NSV::PROP_CONSTRUCTOR, gnash::NSV::PROP_PROTOTYPE, gnash::NSV::PROP_uuPROTOuu, and toObject().
Referenced by gnash::Global_as::registerClasses().
T* gnash::get | ( | as_object * | o | ) |
Extract the DisplayObject attached to an object.
o | The 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().
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().
|
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().
|
inline |
References gnash::Transform::colorTransform, and gnash::DisplayObject::transform().
Referenced by gnash::MovieClip::add_invalidated_bounds(), color_class_init(), gnash::MovieClip::duplicateMovieClip(), getWorldCxForm(), gnash::DisplayList::mergeDisplayList(), gnash::DisplayList::replaceDisplayObject(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
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
This gets the magic properties of DisplayObjects and handles special MovieClip properties such as DisplayList members.
key | The uri of the property to get. |
obj | The DisplayObject whose property should be got |
val | An 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().
References gnash::VM::getGlobal(), and gnash::fn_call::getVM().
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().
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().
std::string gnash::getGnashExecutable | ( | ) |
References log_error().
as_value gnash::getHeight | ( | DisplayObject & | o | ) |
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
index | The index of the property to get. |
o | The DisplayObject whose property should be got |
val | An 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().
|
inline |
Get local transform SWFMatrix for this DisplayObject.
References gnash::Transform::matrix, and gnash::DisplayObject::transform().
Referenced by gnash::MovieClip::duplicateMovieClip(), gnash::Button::getBounds(), getHeight(), getWorldMatrix(), gnash::DisplayList::mergeDisplayList(), gnash::TextField::mouseEvent(), gnash::DisplayList::replaceDisplayObject(), gnash::DisplayObject::set_rotation(), gnash::DisplayObject::set_x_scale(), gnash::DisplayObject::set_y_scale(), gnash::movie_root::setDragState(), gnash::DisplayObject::setHeight(), gnash::DisplayObject::setWidth(), gnash::Button::topmostMouseEntity(), gnash::TextField::topmostMouseEntity(), gnash::MovieClip::topmostMouseEntity(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
Get a member of an object using AS lookup rules.
This is a wrapper round as_object::get_member that returns undefined if the member is not found. Note: this is the only full lookup process available in ActionScript code.
uri | Property identifier. |
o | The object whose member is required. |
References gnash::as_object::get_member().
Referenced by accessibility_class_init(), color_class_init(), contextmenuitem_class_init(), gnash::Global_as::createArray(), gnash::Global_as::createClass(), gnash::Global_as::createFunction(), createTextFieldObject(), gnash::Timer::executeAndReset(), externalinterface_class_init(), gnash::VM::getNative(), getObjectWithPrototype(), gnash_view_call(), gnash::AsBroadcaster::init(), gnash::AsBroadcaster::initialize(), gnash::Global_as::makeObject(), gnash::XMLNode_as::object(), gnash::amf::Reader::operator()(), rectangle_class_init(), registerBitmapClass(), registerBitmapDataNative(), gnash::Global_as::registerClasses(), registerColorTransformNative(), registerDateNative(), registerLocalConnectionNative(), registerMovieClipNative(), registerSharedObjectNative(), registerTextFieldNative(), registerXMLSocketNative(), toSWFMatrix(), gnash::NetConnection_as::update(), and xml_class_init().
|
inline |
Get the name element of an ObjectURI.
References gnash::ObjectURI::name.
Referenced by gnash::ObjectURI::Logger::debug(), gnash::abc::Machine::execute(), gnash::as_object::get_member(), getDisplayObjectProperty(), gnash::ObjectURI::Logger::operator()(), gnash::DisplayObject::pathElement(), gnash::as_object::set_member(), gnash::as_object::unwatch(), and gnash::as_object::watch().
|
inline |
Referenced by CopyVariantValue(), NPN_ReleaseVariantValue(), and NPStringToString().
|
inline |
Referenced by CopyVariantValue(), and NPStringToString().
|
inline |
Return the as_object associated with a DisplayObject if it exists.
d | The DisplayObject to check. May be null. |
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().
DSOTEXPORT as_object * gnash::getObjectWithPrototype | ( | Global_as & | gl, |
const ObjectURI & | c | ||
) |
References createObject(), getMember(), getVM(), gnash::key::o, gnash::NSV::PROP_PROTOTYPE, gnash::as_object::set_prototype(), and toObject().
Referenced by gnash::sprite_definition::createDisplayObject(), gnash::SWF::DefineButtonTag::createDisplayObject(), gnash::BitmapMovieDefinition::createMovie(), gnash::SWFMovieDefinition::createMovie(), createVideoObject(), gnash::MovieClip::duplicateMovieClip(), hasOwnProperty(), and registerMovieClipNative().
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.
uri | Property identifier. |
o | The object whose own member is required. |
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().
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().
|
inline |
References gnash::VM::getRoot(), and gnash::fn_call::getVM().
movie_root & gnash::getRoot | ( | const as_environment & | env | ) |
References gnash::VM::getRoot(), and gnash::as_environment::getVM().
Referenced by gnash::ActiveRelay::clean(), gnash::MovieLoader::clear(), gnash::SWF::DefineShapeTag::createDisplayObject(), gnash::SWF::DefineMorphShapeTag::createDisplayObject(), gnash::SWF::DefineTextTag::createDisplayObject(), gnash::SWF::SWFHandlers::execute(), gnash::SWF::StreamSoundBlockTag::executeActions(), gnash::SWF::ScriptLimitsTag::executeState(), externalinterface_class_init(), getDisplayObjectProperty(), gnash::NetConnection_as::getStream(), getVM(), initObjectClass(), key_get_ascii(), key_get_code(), key_is_down(), gnash::Global_as::makeObject(), gnash::NetStream_as::markReachableResources(), mouse_class_init(), moviecliploader_class_init(), gnash::ActionExec::operator()(), gnash::NetStream_as::play(), registerMovieClipNative(), registerSelectionNative(), registerSoundNative(), registerStageNative(), registerSystemNative(), gnash::as_value::set_as_object(), gnash::NetStream_as::setAudioController(), textformat_class_init(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
DSOTEXPORT movie_root & gnash::getRoot | ( | const as_object & | o | ) |
Get the movie_root from an as_object.
References gnash::VM::getRoot(), and gnash::as_object::vm().
const RunResources & gnash::getRunResources | ( | const as_object & | o | ) |
Get the RunResources from an as_object.
References gnash::VM::getRoot(), gnash::movie_root::runResources(), and gnash::as_object::vm().
Referenced by gnash::BitmapData_as::BitmapData_as(), gnash::NetConnection_as::connect(), gnash::BitmapData_as::draw(), gnash::SWF::StreamSoundBlockTag::executeActions(), gnash::SWF::StartSoundTag::executeActions(), gnash::NetConnection_as::getStream(), gnash::MovieClip::loadVariables(), gnash::Button::mouseEvent(), registerLocalConnectionNative(), registerSoundNative(), and gnash::NetConnection_as::validateURL().
|
inline |
References gnash::VM::getStringTable(), and gnash::fn_call::getVM().
string_table & gnash::getStringTable | ( | const as_environment & | env | ) |
References gnash::VM::getStringTable(), and gnash::as_environment::getVM().
Referenced by gnash::PropertyList::addDestructiveGetter(), gnash::PropertyList::addGetterSetter(), checkArrayLength(), gnash::PropertyList::dump(), externalinterface_class_init(), gnash::as_object::get_member(), gnash::MovieClip::getDisplayListObject(), getDisplayObjectProperty(), gnash::PropertyList::getProperty(), gnash::DisplayObject::getTargetPath(), getURLEncodedVars(), getVM(), gnash::as_object::init_member(), loadvars_class_init(), parsePath(), gnash::as_object::set_member(), gnash::PropertyList::setValue(), gnash::as_object::unwatch(), gnash::as_object::watch(), xmlnode_class_init(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
DSOTEXPORT string_table & gnash::getStringTable | ( | const as_object & | o | ) |
Get the string_table from an as_object.
References gnash::VM::getStringTable(), and gnash::as_object::vm().
|
inline |
References gnash::VM::getSWFVersion(), and gnash::fn_call::getVM().
int gnash::getSWFVersion | ( | const as_environment & | env | ) |
References gnash::VM::getSWFVersion(), and gnash::as_environment::getVM().
Referenced by arrayKey(), gnash::SWF::DefineButtonTag::buttonSound(), gnash::Function2::call(), gnash::Function::call(), caseless(), gnash::as_function::construct(), gnash::MovieClip::constructAsScriptObject(), gnash::SWF::SWFHandlers::execute(), externalinterface_class_init(), gnash::as_object::findProperty(), gnash::TextField::get_htmltext_value(), gnash::as_object::get_member(), gnash::as_object::get_prototype(), gnash::as_object::get_super(), gnash::TextField::get_text_value(), gnash::TextField::getDefinitionVersion(), getDisplayObjectProperty(), getVM(), gnash::MovieClip::handleFocus(), loadvars_class_init(), moviecliploader_class_init(), gnash::MovieClip::queueLoad(), registerLocalConnectionNative(), registerMovieClipNative(), registerSelectionNative(), registerSharedObjectNative(), registerStageNative(), registerTextFieldNative(), registerXMLNative(), gnash::TextField::replaceSelection(), gnash::as_object::set_member(), gnash::as_object::set_prototype(), gnash::MovieClip::setTextFieldVariables(), gnash::TextField::setTextValue(), string_class_init(), textformat_class_init(), gnash::NetConnection_as::update(), gnash::TextField::updateText(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
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().
|
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().
|
inline |
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.
o | The object whose properties should be encoded. |
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().
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.
ctx | Timeline context to use for variable finding. |
varname | Variable name. Can contain path elements. |
scope | The Scope stack to use for lookups. |
retTarget | If 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().
bool gnash::GetVariableCallback | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | args, | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
|
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().
References gnash::fn_call::getVM().
DSOTEXPORT VM & gnash::getVM | ( | const as_object & | o | ) |
References gnash::as_object::vm().
|
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().
|
inline |
Get concatenated SWFMatrix (all ancestor transforms and our SWFMatrix)
Maps from our local space into "world" space (i.e. root movie space).
includeRoot | Whether the transform of the Stage (_root) should be concatenated. This is required to be false for pointInBounds. |
References gnash::SWFMatrix::concatenate(), getMatrix(), gnash::key::m, and gnash::DisplayObject::parent().
Referenced by gnash::Bitmap::add_invalidated_bounds(), gnash::Video::add_invalidated_bounds(), gnash::TextField::add_invalidated_bounds(), gnash::MovieClip::add_invalidated_bounds(), gnash::DisplayObject::add_invalidated_bounds(), gnash::DisplayObject::boundsInClippingArea(), gnash::DisplayObject::pointInBounds(), gnash::Shape::pointInShape(), gnash::MorphShape::pointInShape(), gnash::TextField::pointInShape(), gnash::MovieClip::pointInVisibleShape(), registerMovieClipNative(), gnash::movie_root::setDragState(), gnash::Button::topmostMouseEntity(), gnash::MovieClip::topmostMouseEntity(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
The prototype of flash.filters.GlowFilter is a new BitmapFilter.
Initialize the global GlowFilter class.
References gnash::fn_call::arg(), getVM(), gnash::as_object::init_property(), gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF8Up, registerBitmapClass(), gnash::as_object::setRelay(), toBool(), and toNumber().
|
inline |
Sleep compatibly for the specified number of microseconds.
useconds | microseconds to sleep. |
References gnash::key::m.
Referenced by gnash::MouseDevice::command(), gnash::SWFMovieDefinition::importResources(), gnash::NetworkAdapter::makeStream(), gnash::media::MediaParser::parserLoop(), gnash::NullGui::run(), gnash::DumpGui::run(), gnash::nsPluginInstance::~nsPluginInstance(), and gnash::SharedMem::~SharedMem().
bool gnash::GotoFrame | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | args, | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
The prototype of flash.filters.GradientBevelFilter is a new BitmapFilter.
Initialize the global GradientBevelFilter class.
References gnash::fn_call::arg(), gnash::GradientBevelFilter::FULL_BEVEL, getVM(), gnash::as_object::init_property(), gnash::GradientBevelFilter::INNER_BEVEL, gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF8Up, gnash::GradientBevelFilter::OUTER_BEVEL, registerBitmapClass(), gnash::as_object::setRelay(), toBool(), toNumber(), and UNUSED.
The prototype of flash.filters.GradientGlowFilter is a new BitmapFilter.
Initialize the global GradientGlowFilter class.
References gnash::fn_call::arg(), gnash::GradientGlowFilter::FULL_GLOW, getVM(), gnash::as_object::init_property(), gnash::GradientGlowFilter::INNER_GLOW, gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF8Up, gnash::GradientGlowFilter::OUTER_GLOW, registerBitmapClass(), gnash::as_object::setRelay(), toBool(), toNumber(), and UNUSED.
SWFMatrix gnash::gradientMatrix | ( | GradientFill::Type | t, |
const SWFMatrix & | m | ||
) |
void gnash::gtkext_class_init | ( | as_object & | obj | ) |
Referenced by gnash::GtkExt::setWindow().
References gnash::fn_call::this_ptr.
References gnash::fn_call::this_ptr, and gnash::GtkExt::window_new().
Return true if this object has the named property.
o | The object whose property should be searched for. |
uri | Property identifier. |
References gnash::key::c, DSOTEXPORT, getObjectWithPrototype(), and gnash::as_object::getOwnProperty().
Referenced by declareLocal(), externalinterface_class_init(), and initObjectClass().
|
inline |
References NPNFuncs.
Referenced by remove_handler().
DSOEXPORT std::string gnash::hexify | ( | const unsigned char * | bytes, |
size_t | length, | ||
bool | ascii | ||
) |
Convert a sequence of bytes to hex or ascii format.
bytes | the array of bytes to process |
length | the number of bytes to read. Callers are responsible for checking that length does not exceed the array size. |
ascii | whether to return in ascii or space-separated hex format. |
Referenced by dump_shm(), handleInvoke(), log_abc(), gnash::action_buffer::readConstantPool(), and gnash::rtmp::RTMP::sendPacket().
|
inline |
References isFinite(), and gnash::key::T.
Referenced by gnash::DisplayObject::MaskRenderer::~MaskRenderer().
std::unique_ptr<as_object> gnash::init_dejagnu_instance | ( | ) |
Return an instance.
std::unique_ptr< as_object > gnash::init_gtkext_instance | ( | ) |
Return an instance.
Referenced by gnash::GtkExt::setWindow().
Initialize the global Object class.
References _, gnash::as_object::add_property(), gnash::fn_call::arg(), callMethod(), gnash::Global_as::createFunction(), gnash::key::d, gnash::as_object::DefaultFlags, gnash::Movie::definition(), gnash::PropFlags::dontDelete, gnash::PropFlags::dontEnum, gnash::fn_call::dump_args(), gnash::fn_call::env(), gnash::movie_definition::exportID(), gnash::DisplayObject::get_root(), gnash::movie_definition::getDefinitionTag(), gnash::Property::getFlags(), getGlobal(), gnash::VM::getNative(), gnash::as_object::getOwnProperty(), getRoot(), getURI(), getVM(), hasOwnProperty(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::as_value::is_function(), gnash::as_value::is_null(), gnash::as_value::is_undefined(), gnash::fn_call::isInstantiation(), log_aserror(), log_error(), gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF6Up, gnash::NSV::PROP_CONSTRUCTOR, gnash::NSV::PROP_PROTOTYPE, gnash::NSV::PROP_TO_STRING, gnash::NSV::PROP_uuPROTOuu, gnash::as_object::prototypeOf(), gnash::PropFlags::readOnly, readOnly(), gnash::movie_root::registerClass(), gnash::as_object::set_member_flags(), gnash::as_object::stringValue(), gnash::as_environment::target(), gnash::PropFlags::test(), gnash::fn_call::this_ptr, gnash::as_value::to_function(), gnash::as_value::to_string(), toObject(), typeName(), gnash::as_object::unwatch(), and gnash::as_object::watch().
Referenced by gnash::Global_as::registerClasses().
|
inline |
References gnash::ref_counted::add_ref().
|
inline |
References gnash::ref_counted::drop_ref().
|
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().
|
inline |
Call an as_value on an as_object.
The call will fail harmlessly if the as_value is not callable.
References gnash::as_object::call(), gnash::fn_call::callerDef, gnash::key::e, gnash::Global_as::getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_value::is_undefined(), log_aserror(), gnash::fn_call::super, and toObject().
Referenced by gnash::movie_root::callExternalCallback(), callMethod(), gnash::abc::Machine::execute(), gnash::Timer::executeAndReset(), gnash::as_object::get_member(), main(), gnash::ExternalInterface::parseInvoke(), gnash::plugin::ExternalInterface::parseInvoke(), gnash::movie_root::pushAction(), registerLocalConnectionNative(), remove_handler(), sendEvent(), and gnash::as_value::to_primitive().
bool gnash::is_little_endian_host | ( | ) |
References gnash::key::s, and gnash::key::u.
Referenced by agg_detect_pixel_format(), and create_Renderer_agg().
bool gnash::isButtonEvent | ( | const event_id & | e | ) |
Check whether an event is a button-like event.
e | The event to check |
References gnash::event_id::DRAG_OUT, gnash::event_id::DRAG_OVER, gnash::event_id::id(), gnash::event_id::KEY_PRESS, gnash::event_id::PRESS, gnash::event_id::RELEASE, gnash::event_id::RELEASE_OUTSIDE, gnash::event_id::ROLL_OUT, and gnash::event_id::ROLL_OVER.
Referenced by gnash::MovieClip::notifyEvent(), and operator<().
|
inline |
Referenced by doubleToString(), gnash::MovieClip::get_frame_number(), gnash::geometry::Range2d< int >::getArea(), gnash::geometry::Range2d< int >::getMaxX(), gnash::geometry::Range2d< int >::getMaxY(), gnash::geometry::Range2d< int >::getMinX(), gnash::geometry::Range2d< int >::getMinY(), infinite_to_zero(), gnash::Global_as::makeObject(), math_class_init(), point_class_init(), rectangle_class_init(), registerDateNative(), registerMovieClipNative(), gnash::geometry::Range2d< int >::scale(), and toInt().
|
inline |
References isNaN().
Referenced by doubleToString(), registerDateNative(), gnash::Date_as::toString(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
bool gnash::isKeyEvent | ( | const event_id & | e | ) |
Check whether an event is a keyboard event.
e | The event to check |
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<().
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.
name | The target string. Will be considered case-insensitive if VM version is < 7. |
levelno | Output parameter, will be set to the level number, if true is returned |
Referenced by gnash::MovieLoader::clear(), getDisplayObjectProperty(), and moviecliploader_class_init().
|
inline |
Referenced by doubleToString(), gnash::SWF::SWFHandlers::execute(), isInf(), gnash::Global_as::makeObject(), math_class_init(), newLessThan(), registerBitmapDataNative(), registerDateNative(), registerMovieClipNative(), registerXMLNative(), gnash::as_value::to_bool(), toInt(), gnash::Date_as::toString(), truncateWithFactor(), gnash::as_value::typeOf(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
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.
T | The expected native type |
obj | The object whose type should be tested |
relay | This points to the native type information if the object is of the expected type |
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().
bool gnash::IsPlaying | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | , | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
References __PRETTY_FUNCTION__, data, gnash::GnashNPVariant::get(), log_debug(), log_error(), gnash::plugin::ExternalInterface::makeInvoke(), gnash::plugin::ExternalInterface::parseXML(), gnash::GnashPluginScriptObject::readPlayer(), and gnash::GnashPluginScriptObject::writePlayer().
Referenced by gnash::GnashPluginScriptObject::AddProperty().
|
inline |
Returns true if the DisplayObject is referenceable in ActionScript.
A DisplayObject is referenceable if it has an associated object.
References gnash::DisplayObject::object().
Referenced by gnash::MovieClip::add_display_object(), gnash::MovieClip::getDisplayListObject(), gnash::SWF::ButtonRecord::instantiate(), gnash::DisplayList::mergeDisplayList(), gnash::MovieClip::replace_display_object(), and gnash::movie_root::testInvariant().
Handles addListener, removeListener, and _listeners.
References attachKeyInterface(), callMethod(), getGlobal(), gnash::AsBroadcaster::initialize(), gnash::NSV::PROP_AS_SET_PROP_FLAGS, and registerBuiltinObject().
Referenced by gnash::Global_as::makeObject().
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().
Returns the keycode of the last key pressed.
References gnash::key::codeMap, getRoot(), gnash::key::KEY, and gnash::movie_root::lastKeyEvent().
Referenced by registerKeyNative().
References _, and log_unimpl().
Referenced by attachKeyInterface().
Return true if the specified (first arg keycode) key is pressed.
References _, gnash::fn_call::arg(), getRoot(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::key::KEYCOUNT, keys, log_aserror(), gnash::fn_call::nargs, toInt(), and gnash::movie_root::unreleasedKeys().
Referenced by registerKeyNative().
Given the keycode of NUM_LOCK or CAPSLOCK, returns true if the associated state is on.
References _, and log_unimpl().
Referenced by registerKeyNative().
Used for morphing.
References frnd(), gnash::rgba::m_a, gnash::rgba::m_b, gnash::rgba::m_g, and gnash::rgba::m_r.
|
inline |
References gnash::key::a.
Referenced by gnash::LineStyle::set_lerp(), gnash::GradientFill::setLerp(), and gnash::SolidFill::setLerp().
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().
void gnash::lirc_class_init | ( | as_object & | obj | ) |
References createObject(), and getGlobal().
References GNASH_REPORT_FUNCTION, and gnash::fn_call::nargs.
References gnash::fn_call::arg(), GNASH_REPORT_FUNCTION, and gnash::fn_call::nargs.
bool gnash::LoadMovie | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | args, | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
Initialize the global LoadVars class.
References gnash::fn_call::arg(), attachLoadableInterface(), callMethod(), gnash::Global_as::createFunction(), gnash::as_object::DefaultFlags, emptyFunction(), enumerateProperties(), getGlobal(), gnash::VM::getNative(), getStringTable(), getSWFVersion(), getURI(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::as_value::is_undefined(), gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF6Up, gnash::NSV::PROP_ESCAPE, gnash::NSV::PROP_LOADED, gnash::NSV::PROP_ON_LOAD, registerBuiltinClass(), gnash::as_object::set_member(), and gnash::fn_call::this_ptr.
Referenced by gnash::Global_as::makeObject().
References registerBuiltinClass().
Referenced by gnash::Global_as::makeObject().
|
inline |
References DSOEXPORT, hexify(), length, and log_impl().
Referenced by gnash::abc::abc_function::call(), gnash::abc::Machine::execute(), gnash::abc::Machine::executeFunction(), gnash::abc::Trait::finalize(), gnash::abc::Trait::finalize_mbody(), gnash::abc::Machine::global(), gnash::abc::Machine::immediateProcedure(), gnash::abc::Machine::instantiateClass(), gnash::abc::AbcBlock::locateClass(), gnash::abc::AbcBlock::prepare(), gnash::abc::Machine::pushCall(), gnash::abc::Trait::read(), and gnash::abc::AbcBlock::read().
|
inline |
|
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().
|
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().
|
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().
|
inline |
Referenced by log_abc(), log_action(), log_aserror(), log_debug(), log_error(), log_impl(), log_network(), log_parse(), log_security(), log_swferror(), log_trace(), and log_unimpl().
|
inline |
References log_impl().
|
inline |
References log_impl().
|
inline |
References log_impl().
Referenced by gnash::movie_root::getURL().
|
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().
|
inline |
References log_impl().
Referenced by gnash::URLAccessManager::allow(), gnash::URLAccessManager::allowXMLSocket(), gnash::NetConnection_as::connect(), createObject(), externalinterface_class_init(), gnash::SharedObjectLibrary::getLocal(), gnash::Extension::initModule(), gnash::Extension::initModuleWithFunc(), gnash::NetStream_as::play(), gnash::Extension::scanAndLoad(), and gnash::NetConnection_as::validateURL().
|
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().
|
inline |
|
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().
Creates an IOChannel wrapper around a C stream.
fp | A C stream |
close | Whether the C stream should be automatically closed. |
Referenced by gnash::StreamProvider::getStream(), makeFileChannel(), and gnash::ScreenShotter::~ScreenShotter().
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.
filepath | A path to a file in the local filesystem. |
mode | The mode the file should be opened in, such as "rb" "w+b" (see std::fopen) |
References makeFileChannel().
References gnash::fn_call::arg(), getVM(), isFinite(), isNaN(), gnash::fn_call::nargs, gnash::VM::randomNumberGenerator(), registerBuiltinObject(), and toNumber().
Referenced by gnash::Global_as::makeObject().
Initialize the global Matrix class.
References _, gnash::key::a, gnash::fn_call::arg(), gnash::key::b, gnash::key::c, callMethod(), constructInstance(), gnash::Global_as::createClass(), gnash::Global_as::createFunction(), createObject(), gnash::key::d, gnash::fn_call::dump_args(), gnash::fn_call::env(), findObject(), gnash::as_object::get_member(), getClassConstructor(), getGlobal(), getURI(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_destructive_property(), gnash::as_object::init_member(), gnash::as_object::instanceOf(), gnash::as_value::is_object(), log_aserror(), log_debug(), log_error(), gnash::key::m, gnash::fn_call::nargs, newAdd(), gnash::key::o, gnash::NSV::PROP_A, gnash::NSV::PROP_B, gnash::NSV::PROP_C, gnash::NSV::PROP_D, gnash::NSV::PROP_TX, gnash::NSV::PROP_TY, gnash::NSV::PROP_X, gnash::NSV::PROP_Y, gnash::as_value::set_double(), gnash::as_object::set_member(), gnash::as_value::to_function(), toNumber(), toObject(), gnash::key::u, test::v, test::w, x, and y.
Initialize the global Microphone class.
References emptyFunction(), and registerBuiltinClass().
Referenced by gnash::Global_as::makeObject().
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.
filename | Full file path, may be absolute or relative to CWD |
References mkdirUserPermissions(), and gnash::key::t.
Referenced by mkdirUserPermissions(), and gnash::IncrementalRename::operator()().
|
inline |
Create a directory, granting owner rwx permissions.
On non-POSIX systems, just create the directory.
dirname | Directory name, may be absolute or relative to CWD |
References DSOEXPORT, and mkdirRecursive().
Referenced by mkdirRecursive().
References gnash::movie_root::callInterface(), callMethod(), gnash::PropFlags::dontDelete, gnash::PropFlags::dontEnum, getGlobal(), gnash::VM::getNative(), getRoot(), getVM(), gnash::as_object::init_member(), gnash::AsBroadcaster::initialize(), gnash::key::m, gnash::key::o, gnash::NSV::PROP_AS_SET_PROP_FLAGS, gnash::PropFlags::readOnly, registerBuiltinObject(), and gnash::HostMessage::SHOW_MOUSE.
Referenced by gnash::Global_as::makeObject().
Initialize the global MovieClip class.
References gnash::Global_as::createClass(), createObject(), gnash::as_object::DefaultFlags, emptyFunction(), getGlobal(), and gnash::as_object::init_member().
Referenced by gnash::Global_as::makeObject().
Extern.
Initialize the global MovieClipLoader class.
References _, __PRETTY_FUNCTION__, gnash::fn_call::arg(), callMethod(), gnash::Global_as::createClass(), createObject(), gnash::as_object::DefaultFlags, gnash::fn_call::dump_args(), gnash::fn_call::env(), findTarget(), gnash::MovieClip::get_bytes_loaded(), gnash::MovieClip::get_bytes_total(), getGlobal(), gnash::VM::getNative(), getRoot(), getSWFVersion(), getURI(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::AsBroadcaster::initialize(), isLevelTarget(), gnash::movie_root::loadMovie(), log_aserror(), log_unimpl(), gnash::MovieClip::METHOD_NONE, gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF7Up, gnash::NSV::PROP_AS_SET_PROP_FLAGS, gnash::NSV::PROP_PUSH, gnash::NSV::PROP_uLISTENERS, gnash::as_object::set_member(), gnash::as_object::set_member_flags(), gnash::as_value::to_string(), and toObject().
Referenced by gnash::Global_as::makeObject().
void gnash::mysql_class_init | ( | as_object & | obj | ) |
References gnash::Global_as::createClass(), createObject(), getGlobal(), and gnash::as_object::init_member().
References gnash::fn_call::arg(), and gnash::fn_call::nargs.
References gnash::fn_call::arg(), log_aserror(), and gnash::fn_call::nargs.
References registerBuiltinClass().
Referenced by gnash::NetConnection_as::getURI(), and gnash::Global_as::makeObject().
References registerBuiltinClass().
Referenced by gnash::Global_as::makeObject(), and gnash::NetStream_as::setInvalidatedVideo().
Carry out ActionNewAdd.
These are currently used in:
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.
op1 | The as_value to add to. |
op2 | The as_value to add. |
vm | The 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().
Carry out ActionSubtract.
op1 | The first comparand. |
op2 | The second comparand. |
vm | The 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().
|
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().
|
inline |
Construct a std::string from an NPVariant.
References NPStringToString().
Referenced by remove_handler().
Initialize the global Number class.
References createObject(), gnash::as_object::DefaultFlags, getGlobal(), gnash::VM::getNative(), getVM(), gnash::as_object::init_member(), gnash::NSV::PROP_CONSTRUCTOR, and gnash::NSV::PROP_PROTOTYPE.
Referenced by gnash::Global_as::makeObject().
References gnash::key::b.
Referenced by gnash::as_value::unflag_exception().
Concatenate two transforms.
References gnash::key::b.
|
inline |
References gnash::kerning_pair::m_char0, and gnash::kerning_pair::m_char1.
Comparator for use in stdlib containers.
References gnash::key::e, gnash::event_id::id(), isButtonEvent(), isKeyEvent(), gnash::event_id::keyCode(), gnash::key::o, and operator<<().
DSOEXPORT std::ostream & gnash::operator<< | ( | std::ostream & | os, |
const HostMessage & | m | ||
) |
Stream a description of any host interface message type.
References gnash::HostMessage::event().
std::ostream & gnash::operator<< | ( | std::ostream & | os, |
const ConstantPool & | p | ||
) |
References gnash::key::i.
DSOEXPORT std::ostream & gnash::operator<< | ( | std::ostream & | os, |
const CustomMessage & | m | ||
) |
References gnash::CustomMessage::name().
DSOEXPORT std::ostream & gnash::operator<< | ( | std::ostream & | os, |
HostMessage::KnownEvent | e | ||
) |
Stream a description of an expected message.
References gnash::key::a, gnash::key::e, gnash::HostMessage::EXTERNALINTERFACE_ISPLAYING, gnash::HostMessage::EXTERNALINTERFACE_PAN, gnash::HostMessage::EXTERNALINTERFACE_PLAY, gnash::HostMessage::EXTERNALINTERFACE_REWIND, gnash::HostMessage::EXTERNALINTERFACE_SETZOOMRECT, gnash::HostMessage::EXTERNALINTERFACE_STOPPLAY, gnash::HostMessage::EXTERNALINTERFACE_ZOOM, gnash::HostMessage::PIXEL_ASPECT_RATIO, gnash::HostMessage::PLAYER_TYPE, gnash::HostMessage::RESIZE_STAGE, gnash::HostMessage::SCREEN_COLOR, gnash::HostMessage::SCREEN_DPI, gnash::HostMessage::SCREEN_RESOLUTION, gnash::HostMessage::SET_CLIPBOARD, gnash::HostMessage::SET_DISPLAYSTATE, gnash::HostMessage::SHOW_MENU, gnash::HostMessage::SHOW_MOUSE, and gnash::HostMessage::UPDATE_STAGE.
DSOTEXPORT std::ostream & gnash::operator<< | ( | std::ostream & | os, |
const rgba & | r | ||
) |
References gnash::rgba::m_a, gnash::rgba::m_b, gnash::rgba::m_g, and gnash::rgba::m_r.
std::ostream & gnash::operator<< | ( | std::ostream & | os, |
const SWFCxForm & | cx | ||
) |
std::ostream & gnash::operator<< | ( | std::ostream & | o, |
const CallFrame & | fr | ||
) |
References gnash::key::i, gnash::key::o, and gnash::key::r.
std::ostream & gnash::operator<< | ( | std::ostream & | o, |
const event_id & | ev | ||
) |
References gnash::event_id::functionName().
|
inline |
DSOEXPORT std::ostream & gnash::operator<< | ( | std::ostream & | os, |
const BitmapFill::SmoothingPolicy & | p | ||
) |
Output operator for bitmap smoothing policy.
References gnash::key::p, gnash::BitmapFill::SMOOTHING_OFF, gnash::BitmapFill::SMOOTHING_ON, and gnash::BitmapFill::SMOOTHING_UNSPECIFIED.
std::ostream & gnash::operator<< | ( | std::ostream & | o, |
GradientFill::Type | t | ||
) |
Output operator for GradientFill type.
References gnash::GradientFill::LINEAR, and gnash::GradientFill::RADIAL.
|
inline |
std::ostream & gnash::operator<< | ( | std::ostream & | o, |
GradientFill::SpreadMode | t | ||
) |
Output operator for GradientFill spread mode.
References gnash::GradientFill::PAD, gnash::GradientFill::REFLECT, and gnash::GradientFill::REPEAT.
std::ostream & gnash::operator<< | ( | std::ostream & | o, |
GradientFill::InterpolationMode | t | ||
) |
Output operator for GradientFill interpolation mode.
References gnash::SolidFill::color(), gnash::GradientFill::interpolation, gnash::GradientFill::LINEAR_RGB, gnash::BitmapFill::matrix(), gnash::GradientFill::matrix(), gnash::key::o, gnash::GradientFill::recordCount(), gnash::GradientFill::RGB, gnash::BitmapFill::smoothingPolicy(), gnash::GradientFill::spreadMode, gnash::BitmapFill::type(), and gnash::GradientFill::type().
std::ostream & gnash::operator<< | ( | std::ostream & | os, |
const FillStyle & | fs | ||
) |
Output operator for FillStyles.
References gnash::FillStyle::fill.
DSOTEXPORT std::ostream & gnash::operator<< | ( | std::ostream & | o, |
const SWFMatrix & | m | ||
) |
std::ostream& gnash::operator<< | ( | std::ostream & | o, |
const CharacterDictionary & | cd | ||
) |
References gnash::key::o.
References gnash::URL::str().
Referenced by gnash::CharacterDictionary::end(), invisible(), operator<(), gnash::as_value::operator=(), gnash::rgba::toRGBA(), and gnash::as_value::unflag_exception().
std::ostream & gnash::operator<< | ( | std::ostream & | o, |
const Button::MouseState & | st | ||
) |
DSOTEXPORT std::ostream & gnash::operator<< | ( | std::ostream & | os, |
const DisplayList & | dl | ||
) |
DSOTEXPORT std::ostream & gnash::operator<< | ( | std::ostream & | o, |
const as_value & | v | ||
) |
Stream operator.
References gnash::as_object::array(), gnash::as_value::BOOLEAN, gnash::as_value::DISPLAYOBJECT, gnash::key::f, gnash::CharacterProxy::get(), gnash::CharacterProxy::getTarget(), gnash::as_value::is_exception(), gnash::CharacterProxy::isDangling(), gnash::as_value::NULLTYPE, gnash::as_value::NUMBER, gnash::key::o, gnash::as_value::OBJECT, gnash::as_object::relay(), gnash::as_value::STRING, typeName(), and gnash::as_value::UNDEFINED.
std::ostream & gnash::operator<< | ( | std::ostream & | o, |
DisplayObject::BlendMode | bm | ||
) |
Stream operator for DisplayObject blend mode.
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().
References gnash::SWFMatrix::a(), DSOTEXPORT, gnash::key::m, gnash::key::o, and gnash::geometry::operator<<().
bool gnash::Pan | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | args, | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
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.
s | The string to parse |
d | The 32-bit int represented as a double. This is only a valid number if the return value is true. |
whole | If 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. |
References gnash::key::d, and start.
Referenced by gnash::Global_as::makeObject(), gnash::as_value::to_number(), and gnash::as_value::unflag_exception().
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().
bool gnash::PercentLoaded | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | , | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
References data, gnash::GnashNPVariant::get(), log_error(), gnash::plugin::ExternalInterface::makeInvoke(), gnash::plugin::ExternalInterface::parseXML(), gnash::GnashPluginScriptObject::readPlayer(), and gnash::GnashPluginScriptObject::writePlayer().
Referenced by gnash::GnashPluginScriptObject::AddProperty().
|
inline |
References gnash::key::a.
Referenced by gnash::Bitmap::construct(), gnash::SWF::SWFHandlers::execute(), gnash::movie_root::getEntityUnderPointer(), gnash::movie_root::mouseClick(), gnash::movie_root::mouseWheel(), gnash::qwidget::paintEvent(), registerMovieClipNative(), registerTextFieldNative(), gnash::movie_root::setDragState(), gnash::TextField::setFont(), setHeight(), gnash::TextField::setTabStops(), textformat_class_init(), toSWFMatrix(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
bool gnash::Play | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | , | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
Initialize the global Point class.
References _, gnash::fn_call::arg(), constructInstance(), gnash::Global_as::createFunction(), gnash::fn_call::dump_args(), gnash::fn_call::env(), equals(), gnash::as_object::get_member(), getClassConstructor(), getGlobal(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_destructive_property(), gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::as_object::instanceOf(), gnash::as_value::is_object(), isFinite(), gnash::key::l, log_aserror(), gnash::fn_call::nargs, newAdd(), gnash::key::o, gnash::NSV::PROP_X, gnash::NSV::PROP_Y, gnash::as_value::set_double(), gnash::as_object::set_member(), toNumber(), toObject(), x, and y.
void gnash::printNPVariant | ( | const NPVariant * | value | ) |
References log_debug(), and NPStringToString().
Referenced by gnash::GnashPluginScriptObject::GetVariable().
DSOEXPORT void gnash::processLog_abc | ( | const boost::format & | fmt | ) |
References dbglogfile, gnash::LogFile::getVerbosity(), gnash::LogFile::log(), gnash::LogFile::LOG_EXTRA, and N_.
Referenced by gnash::LogFile::registerLogCallback().
DSOEXPORT void gnash::processLog_action | ( | const boost::format & | fmt | ) |
References dbglogfile, gnash::LogFile::getStamp(), gnash::LogFile::log(), and gnash::LogFile::setStamp().
Referenced by gnash::LogFile::registerLogCallback().
DSOEXPORT void gnash::processLog_aserror | ( | const boost::format & | fmt | ) |
References dbglogfile, gnash::LogFile::log(), and N_.
Referenced by gnash::LogFile::registerLogCallback().
DSOEXPORT void gnash::processLog_debug | ( | const boost::format & | fmt | ) |
References dbglogfile, gnash::LogFile::getVerbosity(), gnash::LogFile::log(), gnash::LogFile::LOG_DEBUG, and N_.
Referenced by gnash::LogFile::registerLogCallback().
DSOEXPORT void gnash::processLog_error | ( | const boost::format & | fmt | ) |
References dbglogfile, gnash::LogFile::log(), and N_.
Referenced by gnash::LogFile::registerLogCallback().
DSOEXPORT void gnash::processLog_network | ( | const boost::format & | fmt | ) |
References dbglogfile, gnash::LogFile::log(), and N_.
Referenced by gnash::LogFile::registerLogCallback().
DSOEXPORT void gnash::processLog_parse | ( | const boost::format & | fmt | ) |
References dbglogfile, and gnash::LogFile::log().
Referenced by gnash::LogFile::registerLogCallback().
DSOEXPORT void gnash::processLog_security | ( | const boost::format & | fmt | ) |
References dbglogfile, gnash::LogFile::log(), and N_.
Referenced by gnash::LogFile::registerLogCallback().
DSOEXPORT void gnash::processLog_swferror | ( | const boost::format & | fmt | ) |
References dbglogfile, gnash::LogFile::log(), and N_.
Referenced by gnash::LogFile::registerLogCallback().
DSOEXPORT void gnash::processLog_trace | ( | const boost::format & | fmt | ) |
References dbglogfile, gnash::LogFile::log(), and N_.
Referenced by gnash::LogFile::registerLogCallback().
DSOEXPORT void gnash::processLog_unimpl | ( | const boost::format & | fmt | ) |
References dbglogfile, gnash::LogFile::log(), and N_.
Referenced by gnash::LogFile::registerLogCallback().
Read a RGB CxForm from the input stream.
References gnash::SWFStream::align(), gnash::SWFCxForm::ba, gnash::SWFCxForm::bb, gnash::SWFStream::ensureBits(), gnash::SWFCxForm::ga, gnash::SWFCxForm::gb, gnash::SWFCxForm::ra, gnash::SWFCxForm::rb, gnash::SWFStream::read_sint(), and gnash::SWFStream::read_uint().
Referenced by gnash::SWF::ButtonRecord::readRGBTransform().
Read a CxForm with alpha from the input stream.
References _, gnash::SWFCxForm::aa, gnash::SWFCxForm::ab, gnash::SWFStream::align(), gnash::SWFCxForm::ba, gnash::SWFCxForm::bb, color, gnash::SWF::DEFINESHAPE, gnash::SWF::DEFINESHAPE2, gnash::SWF::DEFINESHAPE3, gnash::SWF::DEFINESHAPE4, gnash::SWF::DEFINESHAPE4_, gnash::SWFStream::ensureBits(), gnash::SWFStream::ensureBytes(), gnash::SWFCxForm::ga, gnash::SWFCxForm::gb, IF_VERBOSE_PARSE, gnash::SWFMatrix::invert(), log_parse(), gnash::key::m, gnash::SWFCxForm::ra, gnash::SWFCxForm::rb, gnash::SWFStream::read_sint(), gnash::SWFStream::read_u16(), gnash::SWFStream::read_u8(), gnash::SWFStream::read_uint(), readRGB(), readRGBA(), readSWFMatrix(), and gnash::key::t.
OptionalFillPair gnash::readFills | ( | SWFStream & | in, |
SWF::TagType | t, | ||
movie_definition & | m, | ||
bool | readMorph | ||
) |
Read FillStyles from a stream.
Read either single or morph-pair fill styles from a stream.
References _, gnash::SWF::DEFINESHAPE4, gnash::SWF::DEFINESHAPE4_, gnash::SWFStream::ensureBytes(), gnash::SWF::FILL_CLIPPED_BITMAP, gnash::SWF::FILL_CLIPPED_BITMAP_HARD, gnash::SWF::FILL_FOCAL_GRADIENT, gnash::SWF::FILL_LINEAR_GRADIENT, gnash::SWF::FILL_RADIAL_GRADIENT, gnash::SWF::FILL_SOLID, gnash::SWF::FILL_TILED_BITMAP, gnash::SWF::FILL_TILED_BITMAP_HARD, gnash::GradientFill::focalPoint(), gnash::SWF::GRADIENT_INTERPOLATION_LINEAR, gnash::SWF::GRADIENT_INTERPOLATION_NORMAL, gnash::SWF::GRADIENT_SPREAD_PAD, gnash::SWF::GRADIENT_SPREAD_REFLECT, gnash::SWF::GRADIENT_SPREAD_REPEAT, gnash::key::i, IF_VERBOSE_MALFORMED_SWF, IF_VERBOSE_PARSE, gnash::GradientFill::interpolation, gnash::SWFMatrix::invert(), gnash::GradientFill::LINEAR, gnash::GradientFill::LINEAR_RGB, log_parse(), log_swferror(), gnash::key::m, gnash::GradientFill::PAD, gnash::GradientFill::RADIAL, gnash::SWFStream::read_short_sfixed(), gnash::SWFStream::read_u8(), readSWFMatrix(), gnash::GradientFill::REFLECT, gnash::GradientFill::REPEAT, gnash::GradientFill::RGB, gnash::GradientFill::setFocalPoint(), gnash::GradientFill::setRecords(), and gnash::GradientFill::spreadMode.
Referenced by gnash::SWF::DefineMorphShapeTag::display(), gnash::LineStyle::read(), and gnash::LineStyle::read_morph().
|
inline |
References gnash::key::s.
|
inline |
is this a read-only member ?
References gnash::Property::getFlags(), gnash::PropFlags::readOnly, and gnash::PropFlags::test().
Referenced by initObjectClass(), registerSoundNative(), gnash::as_object::set_member(), gnash::Property::setValue(), and sound_class_init().
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().
Read an RGB rgba from input stream.
References gnash::key::a, gnash::key::b, gnash::SWFStream::ensureBytes(), gnash::key::g, gnash::key::r, and gnash::SWFStream::read_u8().
Referenced by gnash::SWF::TextRecord::read(), gnash::LineStyle::read(), and readCxFormRGBA().
Read an RGBA rgba from input stream.
References gnash::key::a, gnash::key::b, gnash::SWFStream::ensureBytes(), gnash::key::g, gnash::key::r, and gnash::SWFStream::read_u8().
Referenced by gnash::SWF::DefineEditTextTag::createDisplayObject(), gnash::SWF::TextRecord::read(), gnash::LineStyle::read(), gnash::LineStyle::read_morph(), and readCxFormRGBA().
Read a SWFMatrix from input stream.
References gnash::SWFStream::align(), gnash::SWFStream::ensureBits(), gnash::SWFStream::read_bit(), gnash::SWFStream::read_sint(), and gnash::SWFStream::read_uint().
Referenced by gnash::SWF::DefineText2Tag::loader(), readCxFormRGBA(), and readFills().
Initialize the global Rectangle class.
References _, __FUNCTION__, gnash::fn_call::arg(), gnash::key::b, callMethod(), constructInstance(), gnash::Global_as::createClass(), gnash::Global_as::createFunction(), createObject(), gnash::fn_call::dump_args(), gnash::fn_call::env(), equals(), findObject(), getClassConstructor(), getGlobal(), getMember(), getURI(), getVM(), gnash::key::h, height, IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_destructive_property(), gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::as_object::instanceOf(), gnash::as_value::is_null(), gnash::as_value::is_undefined(), isFinite(), log_aserror(), log_debug(), LOG_ONCE, log_unimpl(), gnash::fn_call::nargs, newAdd(), newLessThan(), gnash::key::o, gnash::NSV::PROP_HEIGHT, gnash::NSV::PROP_WIDTH, gnash::NSV::PROP_X, gnash::NSV::PROP_Y, gnash::key::r, gnash::as_object::set_member(), subtract(), gnash::as_value::to_function(), toBool(), toNumber(), toObject(), UNUSED, test::w, width, x, and y.
void gnash::registerAccessibilityNative | ( | as_object & | global | ) |
void gnash::registerArrayNative | ( | as_object & | global | ) |
References getVM(), and gnash::VM::registerNative().
Referenced by foreachArray(), and gnash::Global_as::makeObject().
void gnash::registerBitmapClass | ( | as_object & | where, |
Global_as::ASFunction | ctor, | ||
Global_as::Properties | p, | ||
const ObjectURI & | uri | ||
) |
Convenience function only for BitmapFilter subclasses.
This implements the AS code necessary for defining subclasses of BitmapFilter in AS2.
References constructInstance(), gnash::Global_as::createClass(), createObject(), gnash::as_object::DefaultFlags, getGlobal(), getMember(), gnash::VM::getNative(), getURI(), getVM(), gnash::as_object::init_member(), log_debug(), gnash::key::o, gnash::PropFlags::onlySWF8Up, gnash::key::p, gnash::NSV::PROP_CONSTRUCTOR, gnash::NSV::PROP_PROTOTYPE, gnash::as_object::set_member(), gnash::as_object::setRelay(), gnash::as_value::to_function(), and UNUSED.
Referenced by bevelfilter_class_init(), blurfilter_class_init(), colormatrixfilter_class_init(), convolutionfilter_class_init(), displacementmapfilter_class_init(), dropshadowfilter_class_init(), glowfilter_class_init(), gradientbevelfilter_class_init(), and gradientglowfilter_class_init().
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().
void gnash::registerBitmapFilterNative | ( | as_object & | global | ) |
References getVM(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerBooleanNative | ( | as_object & | global | ) |
References gnash::fn_call::arg(), gnash::VM::getNative(), getVM(), gnash::as_object::init_member(), gnash::fn_call::isInstantiation(), gnash::fn_call::nargs, gnash::key::o, gnash::VM::registerNative(), gnash::as_object::setRelay(), gnash::fn_call::this_ptr, and toBool().
Referenced by gnash::Global_as::makeObject().
|
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.
c | a pointer to a function that will attach properties to the class itself. These are known as static properties. |
p | a pointer to a function that will attach properties to the class prototype. These are instance properties. |
ctor | the constructor function for the new class. |
where | the object to which the created object will be attached |
uri | an ObjectURI describing the name and namespace of the created object. |
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().
|
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.
p | a pointer to a function that will attach properties to the object |
where | the object to which the created object will be attached |
uri | an ObjectURI describing the name and namespace of the created object. |
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().
void gnash::registerButtonNative | ( | as_object & | global | ) |
References _, gnash::key::_1, gnash::renderer::opengl::for_each(), getVM(), gnash::Button::isEnabled(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerCameraNative | ( | as_object & | global | ) |
References gnash::Global_as::createFunction(), gnash::as_object::DefaultFlags, getGlobal(), gnash::VM::getNative(), getVM(), gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::key::o, gnash::PropFlags::onlySWF6Up, and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerColorNative | ( | as_object & | o | ) |
References getVM(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerColorTransformNative | ( | as_object & | global | ) |
References _, gnash::fn_call::arg(), gnash::key::b, gnash::ColorTransform_as::ColorTransform_as(), gnash::ColorTransform_as::concat(), gnash::Global_as::createClass(), gnash::Global_as::createFunction(), createObject(), gnash::fn_call::dump_args(), gnash::key::g, gnash::ColorTransform_as::getAlphaMultiplier(), gnash::ColorTransform_as::getAlphaOffset(), gnash::ColorTransform_as::getBlueMultiplier(), gnash::ColorTransform_as::getBlueOffset(), getGlobal(), gnash::ColorTransform_as::getGreenMultiplier(), gnash::ColorTransform_as::getGreenOffset(), getMember(), gnash::VM::getNative(), gnash::ColorTransform_as::getRedMultiplier(), gnash::ColorTransform_as::getRedOffset(), getURI(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::as_object::init_property(), isNativeType(), log_aserror(), log_debug(), gnash::fn_call::nargs, newAdd(), gnash::key::o, gnash::PropFlags::onlySWF8Up, gnash::key::r, gnash::VM::registerNative(), gnash::ColorTransform_as::setAlphaMultiplier(), gnash::ColorTransform_as::setAlphaOffset(), gnash::ColorTransform_as::setBlueMultiplier(), gnash::ColorTransform_as::setBlueOffset(), gnash::ColorTransform_as::setGreenMultiplier(), gnash::ColorTransform_as::setGreenOffset(), gnash::ColorTransform_as::setRedMultiplier(), gnash::ColorTransform_as::setRedOffset(), gnash::as_object::setRelay(), toInt(), toNumber(), and toObject().
Referenced by gnash::ColorTransform_as::getGreenOffset(), and gnash::Global_as::makeObject().
void gnash::registerDateNative | ( | as_object & | global | ) |
References _, gnash::fn_call::arg(), gnash::NSV::CLASS_DATE, constructInstance(), gnash::key::d, gnash::Date_as::Date_as(), gnash::as_object::DefaultFlags, gnash::fn_call::env(), getGlobal(), getMember(), gnash::VM::getNative(), gnash::Date_as::getTimeValue(), gnash::clocktime::getTimeZoneOffset(), getURI(), getVM(), hour, gnash::key::i, IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), isFinite(), isInf(), gnash::fn_call::isInstantiation(), isNaN(), log_aserror(), millisecond, minute, month, monthday, gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::readOnly, gnash::VM::registerNative(), second, gnash::as_object::setRelay(), gnash::Date_as::setTimeValue(), gnash::key::T, gnash::key::t, gnash::fn_call::this_ptr, gnash::as_value::to_function(), toInt(), toNumber(), gnash::Date_as::toString(), weekday, and year.
Referenced by gnash::Date_as::getTimeValue(), and gnash::Global_as::makeObject().
void gnash::registerExternalInterfaceNative | ( | as_object & | global | ) |
References getVM(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerFunctionNative | ( | as_object & | global | ) |
Register Function native functions.
References getVM(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerKeyNative | ( | as_object & | global | ) |
References getVM(), key_get_ascii(), key_get_code(), key_is_down(), key_is_toggled(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
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().
void gnash::registerLocalConnectionNative | ( | as_object & | global | ) |
References _, gnash::key::_1, gnash::key::a, gnash::fn_call::arg(), attached(), gnash::StreamProvider::baseURL(), gnash::SharedMem::begin(), gnash::key::d, gnash::SimpleBuffer::data(), gnash::fn_call::dump_args(), gnash::SharedMem::end(), gnash::image::end(), equal(), gnash::key::f, getMember(), gnash::VM::getNative(), getRunResources(), getSWFVersion(), gnash::VM::getTime(), getURI(), getVM(), gnash::URL::hostname(), gnash::key::i, IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), invoke(), gnash::as_value::is_bool(), gnash::as_value::is_string(), log_aserror(), log_debug(), log_error(), gnash::key::m, name, gnash::fn_call::nargs, gnash::VM::registerNative(), gnash::as_object::setRelay(), gnash::RunResources::streamProvider(), gnash::FunctionArgs< T >::swap(), gnash::as_value::to_function(), gnash::as_value::to_string(), toInt(), url, test::w, and gnash::amf::Writer::writeString().
Referenced by gnash::Global_as::makeObject().
void gnash::registerMathNative | ( | as_object & | proto | ) |
References getVM(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerMicrophoneNative | ( | as_object & | global | ) |
References gnash::Global_as::createFunction(), gnash::as_object::DefaultFlags, getGlobal(), gnash::VM::getNative(), getVM(), gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::as_object::init_readonly_property(), gnash::key::o, gnash::PropFlags::onlySWF6Up, and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerMovieClipLoaderNative | ( | as_object & | global | ) |
References getVM(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
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().
void gnash::registerNetStreamNative | ( | as_object & | global | ) |
References callMethod(), getVM(), gnash::key::o, gnash::ActiveRelay::owner(), gnash::NSV::PROP_ON_STATUS, and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject(), and gnash::NetStream_as::setInvalidatedVideo().
void gnash::registerNumberNative | ( | as_object & | global | ) |
References getVM(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerObjectNative | ( | as_object & | global | ) |
References getVM(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerSelectionNative | ( | as_object & | global | ) |
Register native selection methods.
References _, gnash::fn_call::arg(), gnash::PropFlags::dontDelete, gnash::PropFlags::dontEnum, gnash::image::end(), gnash::fn_call::env(), findTarget(), gnash::TextField::getCaretIndex(), gnash::movie_root::getFocus(), gnash::VM::getNative(), getRoot(), gnash::TextField::getSelection(), getSWFVersion(), gnash::DisplayObject::getTarget(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::as_value::is_null(), gnash::as_value::is_string(), gnash::as_value::is_undefined(), log_aserror(), gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::readOnly, gnash::VM::registerNative(), gnash::as_value::set_null(), gnash::movie_root::setFocus(), gnash::TextField::setSelection(), start, gnash::as_value::to_string(), toInt(), and toObject().
Referenced by gnash::Global_as::makeObject().
void gnash::registerSharedObjectNative | ( | as_object & | o | ) |
References _, __FUNCTION__, gnash::SimpleBuffer::append(), gnash::SimpleBuffer::appendNetworkLong(), gnash::SimpleBuffer::appendNetworkShort(), gnash::fn_call::arg(), arraySize(), gnash::NSV::CLASS_SHARED_OBJECT, constructInstance(), gnash::Global_as::createFunction(), createObject(), data, gnash::PropFlags::dontDelete, gnash::PropFlags::dontEnum, gnash::fn_call::dump_args(), gnash::key::e, gnash::image::end(), gnash::VM::getGlobal(), getGlobal(), gnash::SharedObjectLibrary::getLocal(), getMember(), gnash::VM::getNative(), gnash::VM::getSharedObjectLibrary(), getSWFVersion(), getURI(), getVM(), GNASH_REPORT_FUNCTION, IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), log_aserror(), log_debug(), log_error(), LOG_ONCE, log_unimpl(), gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF6Up, gnash::VM::registerNative(), gnash::as_object::relay(), gnash::as_object::set_member(), gnash::as_value::set_null(), gnash::as_object::setRelay(), gnash::as_value::to_function(), gnash::as_value::to_string(), toInt(), UNUSED, gnash::as_object::visitProperties(), and test::w.
Referenced by gnash::Global_as::makeObject().
void gnash::registerSoundNative | ( | as_object & | global | ) |
References _, __FUNCTION__, gnash::movie_root::addAdvanceCallback(), gnash::fn_call::arg(), gnash::StreamProvider::baseURL(), gnash::fn_call::callerDef, callMethod(), gnash::fn_call::dump_args(), gnash::media::AudioInfo::duration, gnash::key::e, ensure(), gnash::movie_definition::exportID(), gnash::movie_definition::get_sound_sample(), getGlobal(), gnash::VM::getNative(), getRoot(), getRunResources(), gnash::StreamProvider::getStream(), getURI(), getVM(), gnash::DisplayObject::getVolume(), IF_VERBOSE_ACTION, IF_VERBOSE_ASCODING_ERRORS, IF_VERBOSE_MALFORMED_SWF, gnash::as_object::init_member(), gnash::as_object::init_property(), gnash::as_value::is_null(), gnash::as_value::is_undefined(), log_action(), log_aserror(), log_debug(), log_error(), LOG_ONCE, log_swferror(), log_unimpl(), gnash::sound_sample::m_sound_handler_id, gnash::key::n, name, gnash::fn_call::nargs, gnash::key::o, gnash::NSV::PROP_DURATION, gnash::NSV::PROP_ON_LOAD, gnash::NSV::PROP_ON_SOUND_COMPLETE, gnash::NSV::PROP_POSITION, readOnly(), gnash::VM::registerNative(), gnash::movie_root::removeAdvanceCallback(), gnash::key::s, gnash::as_object::set_member(), gnash::as_object::setRelay(), gnash::DisplayObject::setVolume(), start, stop, gnash::RunResources::streamProvider(), toBool(), toInt(), toNumber(), toObject(), ts, UNUSED, url, and volume.
Referenced by gnash::Global_as::makeObject().
void gnash::registerStageNative | ( | as_object & | o | ) |
This is the Stage ActionScript object.
Some Stage methods are implemented in movie_root, because it provides the interface to the Gui and/or all the values required are necessarily in movie_root:
References _, gnash::fn_call::arg(), gnash::movie_root::DISPLAYSTATE_FULLSCREEN, gnash::movie_root::DISPLAYSTATE_NORMAL, getRoot(), gnash::movie_root::getShowMenuState(), gnash::movie_root::getStageAlignMode(), gnash::movie_root::getStageDisplayState(), gnash::movie_root::getStageHeight(), gnash::movie_root::getStageScaleMode(), gnash::movie_root::getStageWidth(), getSWFVersion(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_property(), log_aserror(), LOG_ONCE, log_unimpl(), gnash::key::m, gnash::fn_call::nargs, gnash::key::o, gnash::VM::registerNative(), gnash::movie_root::SCALEMODE_EXACTFIT, gnash::movie_root::SCALEMODE_NOBORDER, gnash::movie_root::SCALEMODE_NOSCALE, gnash::movie_root::SCALEMODE_SHOWALL, gnash::movie_root::setShowMenuState(), gnash::movie_root::setStageAlignment(), gnash::movie_root::setStageDisplayState(), gnash::movie_root::setStageScaleMode(), stringToStageAlign(), and toBool().
Referenced by gnash::Global_as::makeObject().
void gnash::registerStringNative | ( | as_object & | global | ) |
References getVM(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject(), and gnash::String_as::value().
void gnash::registerSystemNative | ( | as_object & | where | ) |
References _, gnash::fn_call::arg(), arraySize(), gnash::movie_root::callInterface(), gnash::Global_as::createFunction(), gnash::PropFlags::dontDelete, gnash::PropFlags::dontEnum, gnash::URL::encode(), gnash::RcInitFile::getDefaultInstance(), gnash::RcInitFile::getFlashSystemManufacturer(), getGlobal(), gnash::VM::getNative(), gnash::VM::getOSName(), gnash::VM::getPlayerVersion(), gnash::VM::getRoot(), getRoot(), gnash::VM::getSystemLanguage(), getURI(), getVM(), gnash::as_object::init_member(), gnash::as_object::init_property(), LOG_ONCE, log_unimpl(), gnash::key::m, gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::onlySWF6Up, gnash::HostMessage::PIXEL_ASPECT_RATIO, gnash::HostMessage::PLAYER_TYPE, gnash::PropFlags::readOnly, registerBuiltinObject(), gnash::VM::registerNative(), gnash::movie_root::runResources(), gnash::key::s, gnash::HostMessage::SCREEN_COLOR, gnash::HostMessage::SCREEN_DPI, gnash::HostMessage::SCREEN_RESOLUTION, gnash::HostMessage::SET_CLIPBOARD, and gnash::RunResources::soundHandler().
Referenced by gnash::Global_as::makeObject().
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().
void gnash::registerTextFormatNative | ( | as_object & | o | ) |
References gnash::TextFormat_as::blockIndent(), gnash::TextFormat_as::blockIndentSet(), gnash::TextFormat_as::boldSet(), gnash::TextFormat_as::bullet(), gnash::TextFormat_as::bulletSet(), gnash::TextFormat_as::fontSet(), get(), getVM(), gnash::TextFormat_as::indent(), gnash::TextFormat_as::indentSet(), gnash::TextFormat_as::italicSet(), gnash::TextFormat_as::leading(), gnash::TextFormat_as::leadingSet(), gnash::TextFormat_as::leftMargin(), gnash::TextFormat_as::leftMarginSet(), gnash::VM::registerNative(), gnash::TextFormat_as::rightMargin(), gnash::TextFormat_as::rightMarginSet(), gnash::TextFormat_as::size(), gnash::TextFormat_as::sizeSet(), gnash::TextFormat_as::targetSet(), gnash::TextFormat_as::underlinedSet(), and gnash::TextFormat_as::urlSet().
Referenced by gnash::TextFormat_as::displaySet(), and gnash::Global_as::makeObject().
void gnash::registerTextSnapshotNative | ( | as_object & | global | ) |
References getVM(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerVideoNative | ( | as_object & | global | ) |
References _, gnash::fn_call::arg(), gnash::Video::clear(), gnash::PropFlags::dontDelete, emptyFunction(), gnash::VM::getNative(), getVM(), gnash::Video::height(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::as_object::init_property(), isNativeType(), log_aserror(), log_unimpl(), gnash::fn_call::nargs, gnash::key::o, gnash::PropFlags::readOnly, gnash::VM::registerNative(), gnash::Video::setSmoothing(), gnash::Video::setStream(), gnash::Video::smoothing(), toBool(), toObject(), UNUSED, and gnash::Video::width().
Referenced by gnash::Global_as::makeObject().
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().
void gnash::registerXMLNodeNative | ( | as_object & | where | ) |
Register ASnative methods.
References getVM(), and gnash::VM::registerNative().
Referenced by gnash::Global_as::makeObject().
void gnash::registerXMLSocketNative | ( | as_object & | global | ) |
References _, gnash::fn_call::arg(), callMethod(), gnash::NSV::CLASS_XML, constructInstance(), gnash::Global_as::createFunction(), gnash::fn_call::dump_args(), gnash::fn_call::env(), getGlobal(), getMember(), gnash::VM::getNative(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), log_aserror(), log_debug(), log_error(), gnash::fn_call::nargs, gnash::key::o, gnash::NSV::PROP_ON_XML, gnash::VM::registerNative(), gnash::as_object::setRelay(), gnash::fn_call::this_ptr, gnash::as_value::to_function(), gnash::as_value::to_string(), and toNumber().
Referenced by gnash::Global_as::makeObject().
bool gnash::remoteCallback | ( | NPObject * | npobj, |
NPIdentifier | name, | ||
const NPVariant * | args, | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
References gnash::plugin::ExternalInterface::convertNPVariant(), gnash::GnashNPVariant::copy(), data, gnash::key::i, log_debug(), log_error(), gnash::plugin::ExternalInterface::makeInvoke(), NPN_IdentifierIsString(), NPN_IntFromIdentifier(), NPN_UTF8FromIdentifier(), gnash::plugin::ExternalInterface::parseXML(), gnash::GnashPluginScriptObject::readPlayer(), and gnash::GnashPluginScriptObject::writePlayer().
Referenced by remove_handler().
gboolean gnash::remove_handler | ( | GIOChannel * | , |
GIOCondition | , | ||
gpointer | |||
) |
References __PRETTY_FUNCTION__, gnash::GnashPluginScriptObject::AddMethod(), gnash::plugin::ExternalInterface::convertNPVariant(), data, gnash::nsPluginInstance::getScriptObject(), HasScripting(), gnash::key::i, invoke(), log_debug(), log_error(), LOG_ONCE, name, NPN_GetStringIdentifier(), NPN_GetURL(), NPN_GetValue(), NPN_Invoke(), NPN_PostURL(), NPN_ReleaseObject(), NPN_ReleaseVariantValue(), NPVariantToString(), gnash::plugin::ExternalInterface::parseInvoke(), remoteCallback(), url, and gnash::GnashPluginScriptObject::writePlayer().
bool gnash::Rewind | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | , | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
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().
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.
o | The object to send the event to. |
env | The environment to use, generally provided by the calling DisplayObject |
name | The 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().
bool gnash::setDisplayObjectProperty | ( | DisplayObject & | obj, |
const ObjectURI & | uri, | ||
const as_value & | val | ||
) |
Set special properties.
This sets the magic properties of DisplayObjects.
key | The string table key of the property to set. |
obj | The DisplayObject whose property should be set |
val | An as_value representing the new value of the property. Some values may be rejected. |
Referenced by gnash::as_object::set_member().
void gnash::setHeight | ( | DisplayObject & | o, |
const as_value & | val | ||
) |
References _, getObject(), gnash::DisplayObject::getTarget(), getVM(), IF_VERBOSE_ASCODING_ERRORS, log_aserror(), pixelsToTwips(), gnash::DisplayObject::setHeight(), toNumber(), and typeName().
Referenced by gnash::TextField::getSelection(), and gnash::DisplayObject::transform().
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
index | The index of the property to set. |
o | The DisplayObject whose property should be set |
val | An 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().
|
inline |
References gnash::LineStyle::set_lerp().
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().
Set a local variable in this CallFrame.
If the variable does not already exist, it is created.
c | The CallFrame to set the variable in. |
name | The name of the variable to set. |
val | The 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().
|
inline |
Set a value to NaN.
References gnash::as_value::set_double().
Referenced by gnash::SWF::SWFHandlers::execute(), gnash::abc::Machine::execute(), and string_class_init().
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.
ctx | Timeline context to use for variable finding. |
path | Variable path. |
val | The value to assign to the variable. |
scope | The 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().
bool gnash::SetVariableCallback | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | args, | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
References __PRETTY_FUNCTION__, log_debug(), NPStringToString(), and gnash::GnashPluginScriptObject::SetVariable().
Referenced by gnash::GnashPluginScriptObject::AddProperty().
bool gnash::SetZoomRect | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | args, | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
Initialize the global SharedObject class.
References gnash::Global_as::createClass(), createObject(), gnash::as_object::DefaultFlags, emptyFunction(), getGlobal(), and gnash::as_object::init_member().
Referenced by gnash::Global_as::makeObject().
Initialize the global Stage class.
References gnash::AsBroadcaster::initialize(), and registerBuiltinObject().
Referenced by gnash::Global_as::makeObject().
bool gnash::StopPlay | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | , | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
Initialize the global String class.
References _, gnash::fn_call::arg(), gnash::key::c, gnash::fn_call::callerDef, callMethod(), gnash::Global_as::createArray(), createObject(), gnash::utf8::decodeCanonicalString(), gnash::utf8::decodeNextUnicodeCharacter(), gnash::as_object::DefaultFlags, gnash::PropFlags::dontEnum, gnash::fn_call::dump_args(), gnash::key::e, gnash::utf8::encodeCanonicalString(), gnash::utf8::encodeLatin1Character(), gnash::utf8::encodeUnicodeCharacter(), gnash::image::end(), gnash::movie_definition::get_version(), getGlobal(), gnash::VM::getNative(), getSWFVersion(), getVM(), gnash::key::i, IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_member(), gnash::as_value::is_undefined(), gnash::fn_call::isInstantiation(), gnash::key::l, log_aserror(), log_error(), gnash::fn_call::nargs, gnash::key::o, gnash::NSV::PROP_CONSTRUCTOR, gnash::NSV::PROP_LENGTH, gnash::NSV::PROP_PROTOTYPE, gnash::NSV::PROP_PUSH, gnash::key::s, setNaN(), gnash::as_object::setRelay(), start, gnash::String_as::String_as(), gnash::fn_call::this_ptr, gnash::as_value::to_string(), toInt(), and gnash::String_as::value().
Referenced by gnash::Global_as::registerClasses(), and gnash::String_as::value().
DSOEXPORT const char * gnash::string_of_FOURCC | ( | std::uint32_t | fourcc | ) |
Return a string representation of a FOURCC.
Referenced by gnash::VaapiImage::~VaapiImage().
DSOEXPORT const char * gnash::string_of_VAEntrypoint | ( | VAEntrypoint | entrypoint | ) |
Return a string representation of a VAEntrypoint.
References ENTRYPOINT.
DSOEXPORT const char * gnash::string_of_VAProfile | ( | VAProfile | profile | ) |
Return a string representation of a VAProfile.
References PROFILE.
Referenced by gnash::VaapiContext::VaapiContext().
DSOEXPORT short gnash::stringToStageAlign | ( | const std::string & | str | ) |
References gnash::movie_root::STAGE_ALIGN_B, gnash::movie_root::STAGE_ALIGN_L, gnash::movie_root::STAGE_ALIGN_R, and gnash::movie_root::STAGE_ALIGN_T.
Referenced by registerStageNative(), and gnash::Player::run().
Carry out ActionSubtract.
op1 | The as_value to subtract from. |
op2 | The as_value to subtract. |
vm | The 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().
Initialize the global System class.
References registerBuiltinObject().
Referenced by gnash::Global_as::makeObject().
void gnash::terminate_signal | ( | int | ) |
Referenced by gnash::DumpGui::init().
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().
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().
Initialize the global TextRenderer class.
References __FUNCTION__, gnash::Global_as::createFunction(), getGlobal(), gnash::as_object::init_member(), gnash::as_object::init_property(), LOG_ONCE, log_unimpl(), gnash::key::o, and registerBuiltinClass().
References registerBuiltinClass().
Referenced by gnash::Global_as::makeObject().
Convert an as_value to boolean type.
val | The value to return as a boolean |
vm | The VM to use for the conversion. |
References gnash::VM::getSWFVersion(), and gnash::as_value::to_bool().
Referenced by gnash::DisplayObject::allowHandCursor(), bevelfilter_class_init(), gnash::BufferedAudioStreamer::cleanAudioQueue(), dropshadowfilter_class_init(), gnash::SWF::SWFHandlers::execute(), externalinterface_class_init(), fileio_asyncmode(), gnash::MovieClip::getBounds(), glowfilter_class_init(), gradientbevelfilter_class_init(), gradientglowfilter_class_init(), gnash::MovieClip::handleFocus(), gnash::Button::isEnabled(), rectangle_class_init(), registerBitmapDataNative(), registerBooleanNative(), registerMovieClipNative(), registerSoundNative(), registerStageNative(), registerTextFieldNative(), registerVideoNative(), registerXMLNative(), textformat_class_init(), gnash::Button::trackAsMenu(), gnash::MovieClip::trackAsMenu(), xmlnode_class_init(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
SWFCxForm gnash::toCxForm | ( | const ColorTransform_as & | tr | ) |
Convert a ColorTransform_as to a SWFCxForm record.
References gnash::SWFCxForm::aa, gnash::SWFCxForm::ab, gnash::SWFCxForm::ba, gnash::SWFCxForm::bb, gnash::key::c, gnash::key::d, gnash::SWFCxForm::ga, gnash::SWFCxForm::gb, gnash::ColorTransform_as::getAlphaMultiplier(), gnash::ColorTransform_as::getAlphaOffset(), gnash::ColorTransform_as::getBlueMultiplier(), gnash::ColorTransform_as::getBlueOffset(), gnash::ColorTransform_as::getGreenMultiplier(), gnash::ColorTransform_as::getGreenOffset(), gnash::ColorTransform_as::getRedMultiplier(), gnash::ColorTransform_as::getRedOffset(), gnash::SWFCxForm::ra, and gnash::SWFCxForm::rb.
Referenced by registerBitmapDataNative(), and transform_class_init().
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.
val | The value to return as an int. |
vm | The VM to use for the conversion. |
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().
DSOTEXPORT double gnash::toNumber | ( | const as_value & | v, |
const VM & | vm | ||
) |
Convert an as_value to a double.
val | The value to return as a double |
vm | The VM to use for the conversion. |
References gnash::VM::getSWFVersion(), and gnash::as_value::to_number().
Referenced by arrayKey(), bevelfilter_class_init(), gnash::DisplayObject::blendMode(), blurfilter_class_init(), gnash::BufferedAudioStreamer::cleanAudioQueue(), color_class_init(), dropshadowfilter_class_init(), gnash::SWF::SWFHandlers::execute(), gnash::abc::Machine::execute(), externalinterface_class_init(), fileio_fputc(), fileio_fseek(), gnash::MovieClip::get_frame_number(), glowfilter_class_init(), gradientbevelfilter_class_init(), gradientglowfilter_class_init(), gnash::Global_as::makeObject(), math_class_init(), matrix_class_init(), newAdd(), newLessThan(), point_class_init(), rectangle_class_init(), registerBitmapDataNative(), registerColorTransformNative(), registerDateNative(), registerMovieClipNative(), registerSoundNative(), registerTextFieldNative(), registerXMLNative(), registerXMLSocketNative(), setHeight(), subtract(), textformat_class_init(), toSWFMatrix(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
Convert an as_value to an object.
val | The value to return as an object |
vm | The VM to use for the conversion. |
References gnash::as_value::to_object().
Referenced by arrayKey(), gnash::BufferedAudioStreamer::cleanAudioQueue(), color_class_init(), gnash::as_function::construct(), gnash::Global_as::createArray(), externalinterface_class_init(), function_class_init(), gnash::as_object::get_prototype(), getObjectWithPrototype(), getPathElement(), gnash::AsBroadcaster::init(), gnash::AsBroadcaster::initialize(), initObjectClass(), gnash::as_object::instanceOf(), invoke(), gnash::Global_as::makeObject(), matrix_class_init(), moviecliploader_class_init(), mysql_qetData(), gnash::XMLNode_as::object(), gnash::MovieClip::pathElement(), point_class_init(), rectangle_class_init(), registerBitmapDataNative(), registerColorTransformNative(), registerMovieClipNative(), registerSelectionNative(), registerSoundNative(), registerTextFieldNative(), registerVideoNative(), registerXMLNative(), gnash::movie_root::testInvariant(), textformat_class_init(), transform_class_init(), gnash::NetConnection_as::update(), and xmlnode_class_init().
References gnash::VM::getStringTable(), and gnash::ObjectURI::toString().
Referenced by gnash::SWFRect::getRange().
Convert an object to a SWFMatrix.
References gnash::key::a, gnash::key::b, gnash::key::c, gnash::key::d, getMember(), getVM(), gnash::key::h, pixelsToTwips(), gnash::NSV::PROP_A, gnash::NSV::PROP_B, gnash::NSV::PROP_C, gnash::NSV::PROP_D, gnash::NSV::PROP_H, gnash::NSV::PROP_MATRIX_TYPE, gnash::NSV::PROP_R, gnash::NSV::PROP_TX, gnash::NSV::PROP_TY, gnash::NSV::PROP_W, gnash::NSV::PROP_X, gnash::NSV::PROP_Y, gnash::key::r, toNumber(), test::w, x, and y.
Referenced by registerBitmapDataNative(), registerMovieClipNative(), and transform_class_init().
bool gnash::TotalFrames | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | , | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
References __PRETTY_FUNCTION__, gnash::GnashNPVariant::copy(), data, gnash::GnashNPVariant::get(), log_debug(), log_error(), gnash::plugin::ExternalInterface::makeInvoke(), gnash::plugin::ExternalInterface::parseXML(), gnash::GnashPluginScriptObject::readPlayer(), and gnash::GnashPluginScriptObject::writePlayer().
Referenced by gnash::GnashPluginScriptObject::AddProperty().
Initialize the global Transform class.
References _, __FUNCTION__, gnash::SWFMatrix::a(), gnash::SWFCxForm::aa, gnash::SWFCxForm::ab, gnash::fn_call::arg(), gnash::SWFMatrix::b(), gnash::SWFCxForm::ba, gnash::SWFCxForm::bb, gnash::SWFMatrix::c(), gnash::key::c, constructInstance(), gnash::Global_as::createClass(), createObject(), gnash::SWFMatrix::d(), gnash::fn_call::dump_args(), gnash::fn_call::env(), findObject(), gnash::SWFCxForm::ga, gnash::SWFCxForm::gb, getGlobal(), getVM(), IF_VERBOSE_ASCODING_ERRORS, gnash::as_object::init_destructive_property(), gnash::as_object::init_property(), gnash::as_object::init_readonly_property(), isNativeType(), log_aserror(), log_debug(), LOG_ONCE, log_unimpl(), gnash::key::m, gnash::fn_call::nargs, gnash::key::o, gnash::SWFCxForm::ra, gnash::SWFCxForm::rb, gnash::as_object::setRelay(), gnash::as_value::to_function(), toCxForm(), toObject(), toSWFMatrix(), twipsToPixels(), gnash::SWFMatrix::tx(), gnash::SWFMatrix::ty(), and UNUSED.
std::int32_t gnash::truncateWithFactor | ( | double | a | ) |
References isNaN().
|
inline |
Referenced by gnash::BitmapMovieDefinition::get_height_pixels(), gnash::SWFMovieDefinition::get_height_pixels(), gnash::BitmapMovieDefinition::get_width_pixels(), gnash::SWFMovieDefinition::get_width_pixels(), getHeight(), operator<<(), registerMovieClipNative(), registerTextFieldNative(), textformat_class_init(), transform_class_init(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
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.
std::string gnash::typeName | ( | const T & | inst | ) |
Return (unmangled) name of this instance type. Used for logging in various places.
References name.
Referenced by gnash::DisplayObject::boundsInClippingArea(), gnash::GC::countCollectables(), ensure(), gnash::DisplayObject::getLoadedMovie(), initObjectClass(), gnash::SWF::DefineButtonCxformTag::loader(), gnash::SWF::VideoFrameTag::loader(), gnash::SWF::DefineButtonSoundTag::loader(), gnash::GcResource::markReachableResources(), gnash::DisplayList::mergeDisplayList(), gnash::ActionExec::operator()(), operator<<(), gnash::movie_root::registerButton(), gnash::TextField::removeTextField(), setHeight(), gnash::Gui::setInvalidatedRegions(), gnash::GcResource::setReachable(), gnash::GC::~GC(), and gnash::DisplayObject::MaskRenderer::~MaskRenderer().
void gnash::unescapeXML | ( | std::string & | text | ) |
Referenced by externalinterface_class_init(), gnash::XML_as::ignoreWhite(), and gnash::XML_as::toString().
bool DSOEXPORT gnash::vaapi_check_status | ( | VAStatus | status, |
const char * | msg | ||
) |
Check VA status for success or print out an error.
References vaapi_dprintf().
Referenced by gnash::VaapiSurface::associateSubpicture(), gnash::VaapiSurface::clear(), gnash::VaapiSurface::deassociateSubpicture(), gnash::VaapiImage::map(), gnash::GtkAggVaapiGlue::render(), gnash::VaapiImage::unmap(), gnash::VaapiContext::~VaapiContext(), gnash::VaapiDisplay::~VaapiDisplay(), gnash::VaapiGlobalContext::~VaapiGlobalContext(), gnash::VaapiImage::~VaapiImage(), and gnash::VaapiSubpicture::~VaapiSubpicture().
void DSOEXPORT gnash::vaapi_dprintf | ( | const char * | format, |
... | |||
) |
Debug output.
Referenced by vaapi_check_status(), and gnash::VaapiDisplay::~VaapiDisplay().
bool DSOEXPORT gnash::vaapi_is_enabled | ( | ) |
Check whether video acceleration is enabled.
Referenced by gnash::media::ffmpeg::VaapiContextFfmpeg::create(), and gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg().
void DSOEXPORT gnash::vaapi_set_is_enabled | ( | bool | enabled | ) |
Enable video acceleration (with VA API)
Referenced by gnash::VaapiGlobalContext::get(), and gnash_canvas_setup().
References gnash::Global_as::createClass(), createObject(), gnash::as_object::DefaultFlags, emptyFunction(), getGlobal(), and gnash::as_object::init_member().
Referenced by gnash::Global_as::makeObject().
|
inline |
Is this member supposed to be visible by a VM of given version ?
References gnash::PropFlags::get_visible(), and gnash::Property::getFlags().
Referenced by gnash::DisplayObject::findDropTarget(), gnash::as_object::findProperty(), gnash::as_object::get_prototype(), gnash::IsVisible::operator()(), gnash::DisplayObject::pointInVisibleShape(), gnash::as_object::set_member(), and gnash::DisplayObject::transformedByScript().
void gnash::wait_for_gdb | ( | ) |
void gnash::writeLong | ( | std::uint8_t *& | ptr, |
std::uint32_t | i | ||
) |
Register the XML class.
References gnash::NSV::CLASS_XMLNODE, constructInstance(), gnash::Global_as::createClass(), gnash::as_object::DefaultFlags, getGlobal(), getMember(), getVM(), gnash::as_object::init_member(), gnash::NSV::PROP_PROTOTYPE, and gnash::as_value::to_function().
Referenced by gnash::XML_as::ignoreWhite(), and gnash::Global_as::makeObject().
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().
Initialize the global XMLSocket class.
References registerBuiltinClass().
Referenced by gnash::Global_as::makeObject().
bool gnash::Zoom | ( | NPObject * | npobj, |
NPIdentifier | , | ||
const NPVariant * | args, | ||
uint32_t | argCount, | ||
NPVariant * | result | ||
) |
struct lirc_config* gnash::config |
Referenced by gnash::gui::GtkOvgGlue::configure(), gnash::renderer::EGLDevice::isBufferDestroyed(), gnash::renderer::directfb::DirectFBDevice::isContextBackBuffered(), gnash::renderer::directfb::DirectFBDevice::isContextSingleBuffered(), gnash::renderer::directfb::DirectFBDevice::printFBInputDevice(), and gnash::VaapiContext::~VaapiContext().
std::string gnash::cookiefile |
Referenced by gnash::nsPluginInstance::~nsPluginInstance().
static LogFile & gnash::dbglogfile = LogFile::getDefaultInstance() |
Referenced by gnash::LogFile::getDefaultInstance(), processLog_abc(), processLog_action(), processLog_aserror(), processLog_debug(), processLog_error(), processLog_network(), processLog_parse(), processLog_security(), processLog_swferror(), processLog_trace(), processLog_unimpl(), and gnash::Player::setScale().
const int gnash::GNASH_HIDDEN = 'GHID' |
const int gnash::GNASH_KEY_EVENT = 'GKKE' |
const int gnash::GNASH_MOUSE_CLICKED = 'GMCL' |
const int gnash::GNASH_MOUSE_MOVED = 'GMMV' |
const int32 gnash::GNASH_PULSE = 'GPLS' |
const int32 gnash::GNASH_QUITTING = 'GQUI' |
const int gnash::GNASH_RESIZE = 'GRSZ' |
const int32 gnash::GNASH_SEND_PULSE = 'GSPL' |
const int gnash::GNASH_SET_FULLSCREEN = 'GSFS' |
Referenced by gnash::HaikuGui::setFullscreen().
const int gnash::GNASH_SHOWN = 'GSHN' |
const int gnash::GNASH_UNSET_FULLSCREEN = 'GUFS' |
Referenced by gnash::HaikuGui::unsetFullscreen().
WindowRef gnash::myWindow = NULL |
NPBool gnash::plugInitialized = FALSE |
Referenced by gnash::nsPluginInstance::isInitialized(), NS_PluginInitialize(), and NS_PluginShutdown().
std::sig_atomic_t gnash::terminate_request = false |