The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
PluginInstance Class Reference
Inheritance diagram for PluginInstance:
Inheritance graph

Classes

class  JSDirectoryReader
 
class  ProgressHandler
 

Public Member Functions

 PluginInstance (PP_Instance instance)
 
 ~PluginInstance ()
 
virtual void DidChangeView (const pp::Rect &position, const pp::Rect &clip)
 
bool HandleInputEvent (const pp::InputEvent &event)
 
void HandleMessage (const pp::Var &message)
 
bool Init (int argc, const char *argn[], const char *argv[])
 

Private Member Functions

voidsdl_thread ()
 

Static Private Member Functions

static voidsdl_thread_static (void *param)
 

Private Attributes

bool sdl_thread_started_
 
pthread_t sdl_main_thread_
 
int width_
 
int height_
 
KernelProxy * proxy_
 
MainThreadRunner * runner_
 
pp::FileSystem * fs_
 
ProgressHandler progress_handler_
 
JSDirectoryReader directory_reader_
 

Detailed Description

Definition at line 46 of file plugin.cc.

Constructor & Destructor Documentation

PluginInstance::PluginInstance ( PP_Instance  instance)
inlineexplicit

Definition at line 48 of file plugin.cc.

References fs_, proxy_, and runner_.

PluginInstance::~PluginInstance ( )
inline

Definition at line 65 of file plugin.cc.

References sdl_main_thread_.

Member Function Documentation

virtual void PluginInstance::DidChangeView ( const pp::Rect &  position,
const pp::Rect &  clip 
)
inlinevirtual

Definition at line 71 of file plugin.cc.

References height_, sdl_main_thread_, sdl_thread_started_, sdl_thread_static(), and width_.

bool PluginInstance::HandleInputEvent ( const pp::InputEvent &  event)
inline

Definition at line 94 of file plugin.cc.

void PluginInstance::HandleMessage ( const pp::Var &  message)
inline
bool PluginInstance::Init ( int  argc,
const char *  argn[],
const char *  argv[] 
)
inline

Definition at line 104 of file plugin.cc.

void* PluginInstance::sdl_thread ( )
inlineprivate
static void* PluginInstance::sdl_thread_static ( void param)
inlinestaticprivate

Definition at line 117 of file plugin.cc.

References sdl_thread().

Referenced by DidChangeView().

Member Data Documentation

JSDirectoryReader PluginInstance::directory_reader_
private

Definition at line 249 of file plugin.cc.

Referenced by HandleMessage(), and sdl_thread().

pp::FileSystem* PluginInstance::fs_
private

Definition at line 115 of file plugin.cc.

Referenced by PluginInstance().

int PluginInstance::height_
private

Definition at line 112 of file plugin.cc.

Referenced by DidChangeView().

ProgressHandler PluginInstance::progress_handler_
private

Definition at line 206 of file plugin.cc.

Referenced by sdl_thread().

KernelProxy* PluginInstance::proxy_
private

Definition at line 113 of file plugin.cc.

Referenced by PluginInstance().

MainThreadRunner* PluginInstance::runner_
private

Definition at line 114 of file plugin.cc.

Referenced by PluginInstance().

pthread_t PluginInstance::sdl_main_thread_
private

Definition at line 110 of file plugin.cc.

Referenced by DidChangeView(), and ~PluginInstance().

bool PluginInstance::sdl_thread_started_
private

Definition at line 109 of file plugin.cc.

Referenced by DidChangeView().

int PluginInstance::width_
private

Definition at line 111 of file plugin.cc.

Referenced by DidChangeView().


The documentation for this class was generated from the following file: