FreeWRL/FreeX3D
3.0.0
Main Page
Related Pages
Data Structures
Files
File List
plugin.h
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* ***** BEGIN LICENSE BLOCK *****
3
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
4
*
5
* The contents of this file are subject to the Netscape Public License
6
* Version 1.1 (the "License"); you may not use this file except in
7
* compliance with the License. You may obtain a copy of the License at
8
* http://www.mozilla.org/NPL/
9
*
10
* Software distributed under the License is distributed on an "AS IS" basis,
11
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12
* for the specific language governing rights and limitations under the
13
* License.
14
*
15
* The Original Code is mozilla.org code.
16
*
17
* The Initial Developer of the Original Code is
18
* Netscape Communications Corporation.
19
* Portions created by the Initial Developer are Copyright (C) 1998
20
* the Initial Developer. All Rights Reserved.
21
*
22
* Contributor(s):
23
*
24
* Alternatively, the contents of this file may be used under the terms of
25
* either the GNU General Public License Version 2 or later (the "GPL"), or
26
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27
* in which case the provisions of the GPL or the LGPL are applicable instead
28
* of those above. If you wish to allow use of your version of this file only
29
* under the terms of either the GPL or the LGPL, and not to allow others to
30
* use your version of this file under the terms of the NPL, indicate your
31
* decision by deleting the provisions above and replace them with the notice
32
* and other provisions required by the GPL or the LGPL. If you do not delete
33
* the provisions above, a recipient may use your version of this file under
34
* the terms of any one of the NPL, the GPL or the LGPL.
35
*
36
* ***** END LICENSE BLOCK ***** */
37
38
#ifndef __PLUGIN_H__
39
#define __PLUGIN_H__
40
41
#include "npapi.h"
42
#include "npruntime.h"
43
44
class
CdllFreeWRL
;
45
46
class
CPlugin
47
{
48
private
:
49
NPP
m_pNPInstance;
50
51
52
53
#ifdef XP_WIN
54
HWND m_hWnd;
55
#else
56
long
int
* m_hWnd;
57
#endif
58
59
NPWindow
* m_Window;
60
61
NPStream
* m_pNPStream;
62
NPBool m_bInitialized;
63
64
//reference to the script helper
65
NPObject
*m_pScriptableObject;
66
67
CdllFreeWRL
* m_pfreeWRLPlayer;
68
69
char
* m_sceneUrl;
70
bool
m_EAIflag;
71
72
public
:
73
char
m_String[128];
74
75
public
:
76
CPlugin
(
NPP
pNPInstance);
77
~
CPlugin
();
78
79
NPBool init(
NPWindow
* pNPWindow);
80
void
shut();
81
NPBool isInitialized();
82
83
int16_t handleEvent(
void
* event);
84
85
void
showVersion();
86
void
clear();
87
void
getVersion(
char
* *aVersion);
88
89
//sets the scene url
90
void
setSceneUrl(
char
* sceneUrl);
91
92
//sets the EAI flag to true
93
void
setEAIFlag();
94
95
#if defined(WIN32)
96
LRESULT handleWindowEvents(HWND hWnd, UINT eventmsg, WPARAM wParam, LPARAM lParam);
97
#endif
98
99
NPObject
*GetScriptableObject();
100
UINT_PTR m_pTimerID;
101
};
102
103
#endif // __PLUGIN_H__
CPlugin
Definition:
plugin.h:46
NPObject
Definition:
npruntime.h:355
_NPStream
Definition:
npapi.h:156
CPlugin::CPlugin
CPlugin(NPP pNPInstance)
CPlugin class.constructor.
Definition:
plugin.cpp:73
CdllFreeWRL
Definition:
dllFreeWRL.h:18
_NPWindow
Definition:
npapi.h:400
_NPP
Definition:
npapi.h:148
src
plugin_win32
plugin.h
Generated on Thu Dec 14 2017 12:15:25 for FreeWRL/FreeX3D by
1.8.6