forked from taxilian/indexeddb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
IndexedDatabasePlugin.h
44 lines (33 loc) · 1.3 KB
/
IndexedDatabasePlugin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**********************************************************\
Auto-generated IndexedDatabasePlugin.cpp
This file contains the auto-generated main plugin object
implementation for the ${PLUGIN.name} project
\**********************************************************/
#ifndef H_TEMPLATEPLUGIN
#define H_TEMPLATEPLUGIN
#include "PluginEvents/MouseEvents.h"
#include "PluginCore.h"
#include "PluginWindow.h"
class IndexedDatabasePlugin : public FB::PluginCore
{
public:
static void StaticInitialize();
static void StaticDeinitialize();
public:
IndexedDatabasePlugin();
virtual ~IndexedDatabasePlugin();
public:
virtual FB::JSAPIPtr createJSAPI();
virtual bool IsWindowless() { return false; }
BEGIN_PLUGIN_EVENT_MAP()
EVENTTYPE_CASE(FB::MouseDownEvent, onMouseDown, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseUpEvent, onMouseUp, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseMoveEvent, onMouseMove, FB::PluginWindow)
END_PLUGIN_EVENT_MAP()
/** BEGIN EVENTDEF -- DON'T CHANGE THIS LINE **/
virtual bool onMouseDown(FB::MouseDownEvent *evt, FB::PluginWindow*);
virtual bool onMouseUp(FB::MouseUpEvent *evt, FB::PluginWindow*);
virtual bool onMouseMove(FB::MouseMoveEvent *evt, FB::PluginWindow*);
/** END EVENTDEF -- DON'T CHANGE THIS LINE **/
};
#endif