Gnash  0.8.11dev
text_pkg.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 // Free Software Foundation, Inc
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 
19 #ifndef FLASH_TEXT_PACKAGE_H
20 #define FLASH_TEXT_PACKAGE_H
21 
22 namespace gnash {
23 
24 class as_object;
25 
26 void flash_text_package_init(as_object& pkg, const ObjectURI& uri);
27 
28 } // end of gnash namespace
29 
30 // __FLASH_TEXT_PACKAGE_H__
31 #endif
32 
gnash::geometry::SnappingRanges2d< std::int32_t >
Renderer_agg.h
gnash::LogFile::getDefaultInstance
static LogFile & getDefaultInstance()
Definition: log.cpp:77
path
VGPath path
Definition: testr_gtk.cpp:84
gnash::geometry::Range2d< int >
OpenVGRenderer.h
gnash::NPStringToString
std::string NPStringToString(const NPString &str)
Construct a std::string from an NPString.
Definition: GnashNPVariant.h:87
gnash::create_Renderer_agg
DSOEXPORT Renderer_agg_base * create_Renderer_agg(const char *pixelformat)
Create a render handler.
Definition: Renderer_agg.cpp:2048
gnash::plugin::ExternalInterface::makeObject
static std::string makeObject(std::map< std::string, std::string > &args)
Definition: external.cpp:181
fb_glue_ovg.h
name
std::string name
Definition: LocalConnection_as.cpp:149
runtest
TestState runtest
Definition: test_glue.cpp:76
gtk_glue_gtkglext.h
NPN_MemFree
void NPN_MemFree(void *ptr)
Definition: test.cpp:377
gnash::image::GnashImage::width
size_t width() const
Get the image's width.
Definition: GnashImage.h:126
ShapeRecord.h
runtest
TestState & runtest
Definition: test.cpp:45
gnash::as_object
The base class for all ActionScript objects.
Definition: as_object.h:162
fb_glue_gles2.h
as_object.h
gnash::renderer::EGLDevice::attachWindow
bool attachWindow(GnashDevice::native_window_t window)
Definition: eglDevice.cpp:376
gnash::getName
string_table::key getName(const ObjectURI &o)
Get the name element of an ObjectURI.
Definition: ObjectURI.h:116
NS_NewPluginInstance
nsPluginInstanceBase * NS_NewPluginInstance(nsPluginCreateData *)
Definition: test.cpp:391
dbglogfile
#define dbglogfile
Definition: gtkext.cpp:48
Renderer_gles1.h
external.h
gnash::Renderer::RenderImage
std::shared_ptr< GnashVaapiImageProxy > RenderImage
Definition: Renderer.h:349
NPN_MemAlloc
void * NPN_MemAlloc(uint32_t size)
Definition: test.cpp:369
gnash::log_debug
void log_debug(StringType msg, Args... args)
Definition: log.h:301
y
std::int32_t y
Definition: BitmapData_as.cpp:435
gnash::LogFile
Definition: log.h:64
stop
@ stop
Definition: klash_part.cpp:330
gnash::renderer::GnashDevice::GNASH_NODEV
@ GNASH_NODEV
Definition: GnashDevice.h:48
gnash::rgba
A basic RGBA type.
Definition: RGBA.h:36
fb_glue_gles1.h
gnash::Timer
An interval timer.
Definition: Timers.h:50
gnash::renderer::EGLDevice::bindClient
bool bindClient(GnashDevice::rtype_t rtype)
Definition: eglDevice.cpp:332
gnash::Renderer::description
virtual std::string description() const =0
Return a description of this renderer.
gnash::Renderer::drawLine
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
Renderer.h
runtest
TestState runtest
Definition: testr.cpp:89
Transform.h
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::plugin::ExternalInterface::parseArguments
static std::vector< GnashNPVariant > parseArguments(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:430
gnash::Renderer::createCachedBitmap
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...
gnash::image::GnashImage
Base class for different types of bitmaps.
Definition: GnashImage.h:78
NPN_ReleaseObject
void NPN_ReleaseObject(NPObject *npobj)
Definition: test.cpp:502
gnash::FileType
FileType
Definition: GnashEnums.h:25
gnash::Renderer
Base class for render handlers.
Definition: Renderer.h:189
NS_DestroyPluginInstance
void NS_DestroyPluginInstance(nsPluginInstanceBase *)
Definition: test.cpp:424
gtk_glue_cairo.h
start
@ start
Definition: klash_part.cpp:330
gnash::renderer::GnashDevice::OPENVG
@ OPENVG
Definition: GnashDevice.h:46
gtk_glue_agg.h
Global_as.h
gnash::SWFCxForm
Color transformation record.
Definition: SWFCxForm.h:35
NPN_GetStringIdentifier
NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *)
Definition: test.cpp:385
gnash::getGlobal
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
test_geometry
void test_geometry(Renderer *renderer, const std::string &type)
Definition: testr.cpp:497
NPP_GetMIMEDescription
char * NPP_GetMIMEDescription(void)
Definition: test.cpp:417
gnash::getVM
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
gnash::plugin::ExternalInterface::makeNumber
static std::string makeNumber(double num)
Definition: external.cpp:133
gnash::log_error
void log_error(StringType msg, Args... args)
Definition: log.h:283
gnash::plugin::ExternalInterface::makeProperty
static std::string makeProperty(const std::string &str, const std::string &data)
Definition: external.cpp:123
gnash::geometry::Range2d::isNull
bool isNull() const
Returns true if this is the NULL Range2d.
Definition: Range2d.h:181
gnash::GnashNPVariant::get
const NPVariant & get() const
Obtain a reference to the contained NPVariant.
Definition: GnashNPVariant.h:162
gnash::as_object::init_destructive_property
bool init_destructive_property(const ObjectURI &uri, as_function &getter, int flags=PropFlags::dontEnum)
Initialize a destructive getter property.
Definition: as_object.cpp:720
gnash::createObject
as_object * createObject(const Global_as &gl)
Definition: Global_as.cpp:303
gnash::CachedBitmap::image
virtual image::GnashImage & image()=0
Return a GnashImage for manipulation.
CachedBitmap.h
gnash::flash_text_package_init
void flash_text_package_init(as_object &where, const ObjectURI &uri)
Definition: text_pkg.cpp:48
gnash::SWFRect
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
Renderer_cairo.h
gnash::renderer::openvg::create_handler
DSOEXPORT Renderer * create_handler(const char *)
Definition: OpenVGRenderer.cpp:1265
color
const VGfloat color[4]
Definition: testr_gtk.cpp:82
gnash::GetNPStringChars
const NPUTF8 * GetNPStringChars(const NPString &str)
Definition: GnashNPVariant.h:42
test_device
void test_device(Renderer *renderer, const std::string &type)
Definition: testr.cpp:311
fill
VGPaint fill
Definition: testr_gtk.cpp:86
gnash::amf::write
void write(SimpleBuffer &buf, const std::string &str)
Write a string to an AMF buffer.
Definition: AMF.cpp:161
gnash::key::a
@ a
Definition: GnashKey.h:147
gnash::Renderer::getFirstRenderImage
virtual RenderImages::const_iterator getFirstRenderImage() const
Definition: Renderer.h:353
gnash::invoke
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
gnash::key::type
type
Definition: GnashKey.h:330
gnash::Renderer::world_to_pixel
virtual geometry::Range2d< int > world_to_pixel(const SWFRect &worldbounds) const =0
Converts world coordinates to pixel coordinates.
GnashVaapiImage.h
gnash::plugin::ExternalInterface::makeArray
static std::string makeArray(std::vector< std::string > &args)
Definition: external.cpp:163
NPN_GetProperty
bool NPN_GetProperty(NPP, NPObject *, NPIdentifier name, NPVariant *value)
Definition: test.cpp:438
gnash::get
T * get(as_object *o)
Extract the DisplayObject attached to an object.
Definition: as_object.h:842
gnash::Renderer::drawVideoFrame
virtual void drawVideoFrame(image::GnashImage *frame, const Transform &xform, const SWFRect *bounds, bool smooth)=0
Draws a video frame.
NS_PluginGetValue
NPError NS_PluginGetValue(NPPVariable, void *)
Retrieve values from the plugin for the Browser.
Definition: test.cpp:397
gnash::textrenderer_class_init
void textrenderer_class_init(as_object &where, const ObjectURI &uri)
Initialize the global TextRenderer class.
Definition: TextRenderer_as.cpp:44
gnash::key::h
@ h
Definition: GnashKey.h:154
gnash::GnashNPVariant
This class holds ownership of (a copy of) an NPVariant.
Definition: GnashNPVariant.h:116
gnash::renderer::x11::X11Device
Definition: X11Device.h:46
NPN_HasProperty
bool NPN_HasProperty(NPP, NPObject *, NPIdentifier name)
Definition: test.cpp:449
gnash::Renderer::renderToImage
virtual void renderToImage(std::unique_ptr< IOChannel >, FileType, int) const
Draw the current rendering buffer to an image file.
Definition: Renderer.h:316
gnash::key::z
@ z
Definition: GnashKey.h:172
GnashNPVariant.h
test.w
w
Definition: test.py:8
gnash::point
geometry::Point2d point
Definition: Point2d.h:143
NS_PluginShutdown
void NS_PluginShutdown()
Definition: test.cpp:409
eglDevice.h
gnash::plugin::ExternalInterface::parseProperties
static std::map< std::string, GnashNPVariant > parseProperties(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:402
gnash::Renderer::draw_poly
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.
test_iterators
void test_iterators(Renderer *renderer, const std::string &type)
Definition: testr.cpp:578
gnash::SWFMatrix
Definition: SWFMatrix.h:54
gnash::geometry::Point2d
2D Point class
Definition: Point2d.h:39
test_renderer
void test_renderer(Renderer *renderer, const std::string &type)
Definition: testr.cpp:344
_methods
std::map< NPIdentifier, NPInvokeFunctionPtr > _methods
Definition: test.cpp:48
VM.h
gnash::plugin::ExternalInterface::convertNPVariant
static std::string convertNPVariant(const NPVariant *npv)
Definition: external.cpp:369
gnash::plugin::ExternalInterface::parseXML
static GnashNPVariant parseXML(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:266
TextRenderer_as.h
gnash::renderer::cairo::create_handler
DSOEXPORT Renderer * create_handler()
Create a render handler.
Definition: Renderer_cairo.cpp:1136
gnash::Renderer::pixel_to_world
virtual point pixel_to_world(int x, int y) const =0
Converts pixel coordinates to world coordinates (TWIPS)
paint
VGPaint paint
Definition: testr_gtk.cpp:85
white_color
const VGfloat white_color[4]
Definition: testr_gtk.cpp:81
log.h
gnash::renderer::rawfb::RawFBDevice
Definition: RawFBDevice.h:46
gnash::Renderer::drawShape
virtual void drawShape(const SWF::ShapeRecord &shape, const Transform &xform)=0
fn_call.h
gnash::renderer::EGLDevice::initDevice
bool initDevice(int argc, char *argv[])
Definition: eglDevice.cpp:169
gnash::plugin::ExternalInterface::parseInvoke
static std::shared_ptr< invoke_t > parseInvoke(GnashPluginScriptObject *scriptobj, const std::string &xml)
Definition: external.cpp:203
_properties
std::map< NPIdentifier, NPVariant * > _properties
Definition: test.cpp:47
X11Device.h
NPN_GetValue
NPError NPN_GetValue(NPP, NPNVariable, void *)
Definition: test.cpp:460
gnash::dbglogfile
LogFile & dbglogfile
Definition: fileio.cpp:76
gnash::key::f
@ f
Definition: GnashKey.h:152
gnashconfig.h
main
int main(int, char **)
Definition: test.cpp:51
namedStrings.h
NPN_Invoke
bool NPN_Invoke(NPP, NPObject *, NPIdentifier, const NPVariant *, uint32_t, NPVariant *)
Definition: test.cpp:466
gnash::renderer::EGLDevice
Definition: eglDevice.h:57
test.uri
uri
Definition: test.py:12
gnash::key::c
@ c
Definition: GnashKey.h:149
gnash::renderer::x11::X11Device::createWindow
void createWindow(const char *name, int x, int y, int width, int height)
Definition: X11Device.cpp:207
gnash::renderer::rawfb::RawFBDevice::getHandle
int getHandle()
Definition: RawFBDevice.h:117
gnash::renderer::gles1::create_handler
Renderer * create_handler(const char *)
Definition: Renderer_gles1.cpp:315
gnash::getURI
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
NPN_SetProperty
bool NPN_SetProperty(NPP, NPObject *, NPIdentifier name, const NPVariant *value)
Definition: test.cpp:430
GnashVaapiImageProxy.h
main
int main(int argc, char *argv[])
Definition: test_glue.cpp:135
gnash::plugin::ExternalInterface::makeString
static std::string makeString(const std::string &str)
Definition: external.cpp:96
win
Object * win
Definition: aos4_gnash_prefs.cpp:31
gnash::renderer::GnashDevice::X11
@ X11
Definition: GnashDevice.h:48
gnash::SWF::ShapeRecord
Holds information needed to draw a shape.
Definition: ShapeRecord.h:127
NPN_ReleaseVariantValue
void NPN_ReleaseVariantValue(NPVariant *variant)
Definition: test.cpp:473
text_pkg.h
gnash::renderer::opengl::create_handler
Renderer * create_handler(bool init)
Definition: Renderer_ogl.cpp:1836
fb_glue_agg.h
gnash::Transform
The Transform class expresses a stage in a cumulative transformation.
Definition: Transform.h:34
dejagnu.h
gnash::SWFMatrix::set_scale_rotation
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
Renderer_ogl.h
gnash::log_unimpl
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
gnash::ObjectURI
A URI for describing as_objects.
Definition: ObjectURI.h:45
gnash::CachedBitmap
A CachedBitmap is created by the renderer in a format of its choosing.
Definition: CachedBitmap.h:38
x
std::int32_t x
Definition: BitmapData_as.cpp:434
NPN_RetainObject
NPObject * NPN_RetainObject(NPObject *obj)
Definition: test.cpp:497
gnash::renderer::x11::X11Device::getHandle
int getHandle()
Definition: X11Device.h:96
gnash::renderer::DirectFB::create_handler
Renderer * create_handler(const char *pixelformat)
Definition: Renderer_DirectFB.cpp:267
main
int main(int argc, char *argv[])
Definition: testr.cpp:150
test.v
v
Definition: test.py:11
data
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
gnash::Renderer::getLastRenderImage
virtual RenderImages::const_iterator getLastRenderImage() const
Definition: Renderer.h:357
gnash::renderer::x11::X11Device::eventLoop
void eventLoop(size_t passes)
Definition: X11Device.cpp:253
gnash::image::GnashImage::height
size_t height() const
Get the image's width.
Definition: GnashImage.h:133
SWFMatrix.h
gnash::image::ImageRGBA
32-bit RGBA bitmap
Definition: GnashImage.h:236
gnash::plugin::ExternalInterface::makeInvoke
static std::string makeInvoke(const std::string &method, std::vector< std::string > args)
Definition: external.cpp:43
NS_PluginInitialize
NPError NS_PluginInitialize()
Definition: test.cpp:403
gnash::Renderer::bounds_in_clipping_area
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