Go to the documentation of this file.
19 #ifndef FLASH_TEXT_PACKAGE_H
20 #define FLASH_TEXT_PACKAGE_H
static LogFile & getDefaultInstance()
Definition: log.cpp:77
VGPath path
Definition: testr_gtk.cpp:84
std::string NPStringToString(const NPString &str)
Construct a std::string from an NPString.
Definition: GnashNPVariant.h:87
DSOEXPORT Renderer_agg_base * create_Renderer_agg(const char *pixelformat)
Create a render handler.
Definition: Renderer_agg.cpp:2048
static std::string makeObject(std::map< std::string, std::string > &args)
Definition: external.cpp:181
std::string name
Definition: LocalConnection_as.cpp:149
TestState runtest
Definition: test_glue.cpp:76
void NPN_MemFree(void *ptr)
Definition: test.cpp:377
size_t width() const
Get the image's width.
Definition: GnashImage.h:126
TestState & runtest
Definition: test.cpp:45
The base class for all ActionScript objects.
Definition: as_object.h:162
bool attachWindow(GnashDevice::native_window_t window)
Definition: eglDevice.cpp:376
string_table::key getName(const ObjectURI &o)
Get the name element of an ObjectURI.
Definition: ObjectURI.h:116
nsPluginInstanceBase * NS_NewPluginInstance(nsPluginCreateData *)
Definition: test.cpp:391
#define dbglogfile
Definition: gtkext.cpp:48
std::shared_ptr< GnashVaapiImageProxy > RenderImage
Definition: Renderer.h:349
void * NPN_MemAlloc(uint32_t size)
Definition: test.cpp:369
void log_debug(StringType msg, Args... args)
Definition: log.h:301
std::int32_t y
Definition: BitmapData_as.cpp:435
@ stop
Definition: klash_part.cpp:330
@ GNASH_NODEV
Definition: GnashDevice.h:48
A basic RGBA type.
Definition: RGBA.h:36
An interval timer.
Definition: Timers.h:50
bool bindClient(GnashDevice::rtype_t rtype)
Definition: eglDevice.cpp:332
virtual std::string description() const =0
Return a description of this renderer.
virtual void drawLine(const std::vector< point > &coords, const rgba &color, const SWFMatrix &mat)=0
Draw a line-strip directly, using a thin, solid line.
#define _(String)
Definition: log.h:44
TestState runtest
Definition: testr.cpp:89
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
static std::vector< GnashNPVariant > parseArguments(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:430
virtual CachedBitmap * createCachedBitmap(std::unique_ptr< image::GnashImage > im)=0
Given an image, returns a pointer to a CachedBitmap class that can later be passed to FillStyleX_bitm...
Base class for different types of bitmaps.
Definition: GnashImage.h:78
void NPN_ReleaseObject(NPObject *npobj)
Definition: test.cpp:502
FileType
Definition: GnashEnums.h:25
Base class for render handlers.
Definition: Renderer.h:189
void NS_DestroyPluginInstance(nsPluginInstanceBase *)
Definition: test.cpp:424
@ start
Definition: klash_part.cpp:330
@ OPENVG
Definition: GnashDevice.h:46
NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *)
Definition: test.cpp:385
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
void test_geometry(Renderer *renderer, const std::string &type)
Definition: testr.cpp:497
char * NPP_GetMIMEDescription(void)
Definition: test.cpp:417
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
static std::string makeNumber(double num)
Definition: external.cpp:133
void log_error(StringType msg, Args... args)
Definition: log.h:283
static std::string makeProperty(const std::string &str, const std::string &data)
Definition: external.cpp:123
bool isNull() const
Returns true if this is the NULL Range2d.
Definition: Range2d.h:181
const NPVariant & get() const
Obtain a reference to the contained NPVariant.
Definition: GnashNPVariant.h:162
bool init_destructive_property(const ObjectURI &uri, as_function &getter, int flags=PropFlags::dontEnum)
Initialize a destructive getter property.
Definition: as_object.cpp:720
as_object * createObject(const Global_as &gl)
Definition: Global_as.cpp:303
virtual image::GnashImage & image()=0
Return a GnashImage for manipulation.
void flash_text_package_init(as_object &where, const ObjectURI &uri)
Definition: text_pkg.cpp:48
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
DSOEXPORT Renderer * create_handler(const char *)
Definition: OpenVGRenderer.cpp:1265
const VGfloat color[4]
Definition: testr_gtk.cpp:82
const NPUTF8 * GetNPStringChars(const NPString &str)
Definition: GnashNPVariant.h:42
void test_device(Renderer *renderer, const std::string &type)
Definition: testr.cpp:311
VGPaint fill
Definition: testr_gtk.cpp:86
void write(SimpleBuffer &buf, const std::string &str)
Write a string to an AMF buffer.
Definition: AMF.cpp:161
@ a
Definition: GnashKey.h:147
virtual RenderImages::const_iterator getFirstRenderImage() const
Definition: Renderer.h:353
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.
Definition: Global_as.h:166
type
Definition: GnashKey.h:330
virtual geometry::Range2d< int > world_to_pixel(const SWFRect &worldbounds) const =0
Converts world coordinates to pixel coordinates.
static std::string makeArray(std::vector< std::string > &args)
Definition: external.cpp:163
bool NPN_GetProperty(NPP, NPObject *, NPIdentifier name, NPVariant *value)
Definition: test.cpp:438
T * get(as_object *o)
Extract the DisplayObject attached to an object.
Definition: as_object.h:842
virtual void drawVideoFrame(image::GnashImage *frame, const Transform &xform, const SWFRect *bounds, bool smooth)=0
Draws a video frame.
NPError NS_PluginGetValue(NPPVariable, void *)
Retrieve values from the plugin for the Browser.
Definition: test.cpp:397
void textrenderer_class_init(as_object &where, const ObjectURI &uri)
Initialize the global TextRenderer class.
Definition: TextRenderer_as.cpp:44
@ h
Definition: GnashKey.h:154
This class holds ownership of (a copy of) an NPVariant.
Definition: GnashNPVariant.h:116
Definition: X11Device.h:46
bool NPN_HasProperty(NPP, NPObject *, NPIdentifier name)
Definition: test.cpp:449
virtual void renderToImage(std::unique_ptr< IOChannel >, FileType, int) const
Draw the current rendering buffer to an image file.
Definition: Renderer.h:316
@ z
Definition: GnashKey.h:172
geometry::Point2d point
Definition: Point2d.h:143
void NS_PluginShutdown()
Definition: test.cpp:409
static std::map< std::string, GnashNPVariant > parseProperties(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:402
virtual void draw_poly(const std::vector< point > &corners, const rgba &fill, const rgba &outline, const SWFMatrix &mat, bool masked)=0
Draw a simple, solid filled polygon with a thin (~1 pixel) outline.
void test_iterators(Renderer *renderer, const std::string &type)
Definition: testr.cpp:578
Definition: SWFMatrix.h:54
2D Point class
Definition: Point2d.h:39
void test_renderer(Renderer *renderer, const std::string &type)
Definition: testr.cpp:344
std::map< NPIdentifier, NPInvokeFunctionPtr > _methods
Definition: test.cpp:48
static std::string convertNPVariant(const NPVariant *npv)
Definition: external.cpp:369
static GnashNPVariant parseXML(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:266
DSOEXPORT Renderer * create_handler()
Create a render handler.
Definition: Renderer_cairo.cpp:1136
virtual point pixel_to_world(int x, int y) const =0
Converts pixel coordinates to world coordinates (TWIPS)
VGPaint paint
Definition: testr_gtk.cpp:85
const VGfloat white_color[4]
Definition: testr_gtk.cpp:81
Definition: RawFBDevice.h:46
virtual void drawShape(const SWF::ShapeRecord &shape, const Transform &xform)=0
bool initDevice(int argc, char *argv[])
Definition: eglDevice.cpp:169
static std::shared_ptr< invoke_t > parseInvoke(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:203
std::map< NPIdentifier, NPVariant * > _properties
Definition: test.cpp:47
NPError NPN_GetValue(NPP, NPNVariable, void *)
Definition: test.cpp:460
LogFile & dbglogfile
Definition: fileio.cpp:76
@ f
Definition: GnashKey.h:152
int main(int, char **)
Definition: test.cpp:51
bool NPN_Invoke(NPP, NPObject *, NPIdentifier, const NPVariant *, uint32_t, NPVariant *)
Definition: test.cpp:466
Definition: eglDevice.h:57
uri
Definition: test.py:12
@ c
Definition: GnashKey.h:149
void createWindow(const char *name, int x, int y, int width, int height)
Definition: X11Device.cpp:207
int getHandle()
Definition: RawFBDevice.h:117
Renderer * create_handler(const char *)
Definition: Renderer_gles1.cpp:315
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
bool NPN_SetProperty(NPP, NPObject *, NPIdentifier name, const NPVariant *value)
Definition: test.cpp:430
int main(int argc, char *argv[])
Definition: test_glue.cpp:135
static std::string makeString(const std::string &str)
Definition: external.cpp:96
Object * win
Definition: aos4_gnash_prefs.cpp:31
@ X11
Definition: GnashDevice.h:48
Holds information needed to draw a shape.
Definition: ShapeRecord.h:127
void NPN_ReleaseVariantValue(NPVariant *variant)
Definition: test.cpp:473
Renderer * create_handler(bool init)
Definition: Renderer_ogl.cpp:1836
void set_scale_rotation(double x_scale, double y_scale, double rotation)
Set the scale & rotation part of the SWFMatrix. angle in radians.
Definition: SWFMatrix.cpp:197
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
A URI for describing as_objects.
Definition: ObjectURI.h:45
A CachedBitmap is created by the renderer in a format of its choosing.
Definition: CachedBitmap.h:38
std::int32_t x
Definition: BitmapData_as.cpp:434
NPObject * NPN_RetainObject(NPObject *obj)
Definition: test.cpp:497
int getHandle()
Definition: X11Device.h:96
Renderer * create_handler(const char *pixelformat)
Definition: Renderer_DirectFB.cpp:267
int main(int argc, char *argv[])
Definition: testr.cpp:150
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
virtual RenderImages::const_iterator getLastRenderImage() const
Definition: Renderer.h:357
void eventLoop(size_t passes)
Definition: X11Device.cpp:253
size_t height() const
Get the image's width.
Definition: GnashImage.h:133
32-bit RGBA bitmap
Definition: GnashImage.h:236
static std::string makeInvoke(const std::string &method, std::vector< std::string > args)
Definition: external.cpp:43
NPError NS_PluginInitialize()
Definition: test.cpp:403
virtual bool bounds_in_clipping_area(const geometry::Range2d< int > &) const
Checks if the given bounds are (partially) in the current drawing clipping area.
Definition: Renderer.h:422