forked from julapy/ofxFlashLite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathofxFlashDisplayObjectContainer.h
More file actions
51 lines (38 loc) · 1.47 KB
/
ofxFlashDisplayObjectContainer.h
File metadata and controls
51 lines (38 loc) · 1.47 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
/*
* ofxFlashDisplayObjectContainer.h
* emptyExample
*
* Created by lukasz karluk on 1/11/10.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
*/
#pragma once
#include "ofxFlashInteractiveObject.h"
class ofxFlashDisplayObjectContainer : public ofxFlashInteractiveObject
{
public:
ofxFlashDisplayObjectContainer();
~ofxFlashDisplayObjectContainer();
const bool& mouseChildren ();
void mouseChildren ( bool value );
const bool& tabChildren ();
void tabChildren ( bool value );
const int& numChildren ();
vector<ofxFlashDisplayObject*> children;
ofxFlashDisplayObject* addChild ( ofxFlashDisplayObject* child );
ofxFlashDisplayObject* addChildAt ( ofxFlashDisplayObject* child, int index );
bool contains ( ofxFlashDisplayObject* child );
ofxFlashDisplayObject* getChildAt ( int index );
ofxFlashDisplayObject* getChildByName ( string name );
int getChildIndex ( ofxFlashDisplayObject* child );
vector<ofxFlashDisplayObject*> getObjectsUnderPoint ( ofPoint point );
ofxFlashDisplayObject* removeChild ( ofxFlashDisplayObject* child );
ofxFlashDisplayObject* removeChildAt ( int index );
void setChildIndex ( ofxFlashDisplayObject* child, int index );
void swapChildren ( ofxFlashDisplayObject* child1, ofxFlashDisplayObject* child2 );
void swapChildrenAt ( int index1, int index2 );
private:
bool _mouseChildren;
bool _tabChildren;
int _numChildren;
};