Gnash  0.8.11dev
System_as.h
Go to the documentation of this file.
1 // System_as.h: ActionScript 3 "System" class, for Gnash.
2 //
3 // Copyright (C) 2009, 2010, 2011, 2012 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 
20 #ifndef GNASH_ASOBJ3_SYSTEM_H
21 #define GNASH_ASOBJ3_SYSTEM_H
22 
23 namespace gnash {
24 
25 // Forward declarations
26 class as_object;
27 struct ObjectURI;
28 
30 void system_class_init(as_object& where, const ObjectURI& uri);
31 
32 void registerSystemNative(as_object& where);
33 
34 } // gnash namespace
35 
36 // GNASH_ASOBJ3_SYSTEM_H
37 #endif
38 
39 // local Variables:
40 // mode: C++
41 // indent-tabs-mode: t
42 // End:
43 
movie_root.h
gnash::as_object
The base class for all ActionScript objects.
Definition: as_object.h:162
gnash::arraySize
size_t arraySize(T(&)[N])
Get the size of an array without passing a pointer by mistake.
Definition: GnashAlgorithm.h:58
HostInterface.h
LOG_ONCE
#define LOG_ONCE(x)
Definition: log.h:49
_
#define _(String)
Definition: log.h:44
gnash::VM
The AVM1 virtual machine.
Definition: VM.h:72
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::registerBuiltinObject
as_object * registerBuiltinObject(as_object &where, Global_as::Properties p, const ObjectURI &uri)
Register a built-in object.
Definition: Global_as.h:114
gnash::PropFlags::dontEnum
@ dontEnum
Protect from enumeration.
Definition: PropFlags.h:36
gnash::PropFlags::dontDelete
@ dontDelete
Protect from deletion.
Definition: PropFlags.h:39
gnash::key::m
@ m
Definition: GnashKey.h:159
gnash::key::s
@ s
Definition: GnashKey.h:165
NativeFunction.h
Global_as.h
gnash::HostMessage::SCREEN_COLOR
@ SCREEN_COLOR
Definition: HostInterface.h:160
gnash::getGlobal
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
gnash::getVM
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
gnash::HostMessage::SET_CLIPBOARD
@ SET_CLIPBOARD
Definition: HostInterface.h:130
gnash::URL::encode
static void encode(std::string &str)
Encode a string to URL-encoded format converting all dodgy characters to AB hex sequences.
Definition: URL.cpp:391
gnash::system_class_init
void system_class_init(as_object &where, const ObjectURI &uri)
Initialize the global System class.
Definition: System_as.cpp:61
GnashAlgorithm.h
gnash::VM::registerNative
void registerNative(as_c_function_ptr fun, unsigned int x, unsigned int y)
Definition: VM.cpp:268
gnash::HostMessage::PLAYER_TYPE
@ PLAYER_TYPE
Definition: HostInterface.h:154
gnash::HostMessage::PIXEL_ASPECT_RATIO
@ PIXEL_ASPECT_RATIO
Definition: HostInterface.h:148
VM.h
log.h
gnash::getRoot
movie_root & getRoot(const as_environment &env)
Definition: as_environment.cpp:645
fn_call.h
gnash::PropFlags::onlySWF6Up
@ onlySWF6Up
Only visible by VM initialized for version 6 or higher.
Definition: PropFlags.h:45
gnash::HostMessage::SCREEN_RESOLUTION
@ SCREEN_RESOLUTION
Definition: HostInterface.h:136
gnash::RcInitFile::getDefaultInstance
static RcInitFile & getDefaultInstance()
Return the default instance of RC file.
Definition: rc.cpp:61
RunResources.h
test.uri
uri
Definition: test.py:12
gnash::getURI
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
gnash::registerSystemNative
void registerSystemNative(as_object &where)
Definition: System_as.cpp:68
gnash::key::o
@ o
Definition: GnashKey.h:161
gnash::PropFlags::readOnly
@ readOnly
Protect from assigning a value.
Definition: PropFlags.h:42
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
x
std::int32_t x
Definition: BitmapData_as.cpp:434
gnash::VM::getSystemLanguage
std::string getSystemLanguage() const
Definition: VM.cpp:124
gnash::HostMessage::SCREEN_DPI
@ SCREEN_DPI
Definition: HostInterface.h:142
System_as.h