forked from julapy/ofxFlashLite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathofxFlashInteractiveObject.h
More file actions
71 lines (52 loc) · 1.7 KB
/
ofxFlashInteractiveObject.h
File metadata and controls
71 lines (52 loc) · 1.7 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
* ofxFlashInteractiveObject.h
* emptyExample
*
* Created by lukasz karluk on 1/11/10.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
* Ported from ofxMSAInteractiveObject.
* https://github.com/of/ofx-msa/tree/master/ofxMSAInteractiveObject/
*
*/
#pragma once
#include "ofxFlashDisplayObject.h"
class ofxFlashInteractiveObject : public ofxFlashDisplayObject
{
public:
ofxFlashInteractiveObject();
~ofxFlashInteractiveObject();
friend class ofxFlashStage; // friends! http://www.cplusplus.com/doc/tutorial/inheritance/
const bool& doubleClickEnabled ();
void doubleClickEnabled ( bool value );
const bool& mouseEnabled ();
void mouseEnabled ( bool value );
const bool& mouseUpOutside ();
void mouseUpOutside ( bool value );
const bool& mouseOver ();
const bool& mouseDown ();
private:
void mouseOver ( bool value );
void mouseDown ( bool value );
bool mouseOverDirty;
bool mouseDownDirty;
bool _doubleClickEnabled;
bool _mouseEnabled;
bool _mouseUpOutside;
bool _tabEnabled;
int _tabIndex;
bool _mouseOver;
bool _mouseDown;
void enableMouseEvents ();
void disableMouseEvents ();
#ifdef OF_USING_POCO
void _mouseMoved ( ofMouseEventArgs &e ) { _mouseMoved ( e.x, e.y, -1 ); };
void _mouseDragged ( ofMouseEventArgs &e ) { _mouseDragged ( e.x, e.y, -1 ); };
void _mousePressed ( ofMouseEventArgs &e ) { _mousePressed ( e.x, e.y, -1 ); };
void _mouseReleased ( ofMouseEventArgs &e ) { _mouseReleased ( e.x, e.y, -1 ); };
#endif
void _mouseMoved ( int x, int y, int id );
void _mouseDragged ( int x, int y, int id );
void _mousePressed ( int x, int y, int id );
void _mouseReleased ( int x, int y, int id );
};