Revision 66 ofxArgosUI_View.h
| ofxArgosUI_View.h (revision 66) | ||
|---|---|---|
| 1 | 1 |
/*********************************************************************** |
| 2 | 2 |
|
| 3 |
Copyright (c) 2009 Dimitri Diakopoulos, http://www.dimitridiakopoulos.com/ |
|
| 4 |
=== Google Summer of Code 2009 - NUI Group === |
|
| 3 |
Copyright (c) 2009, 2010 Dimitri Diakopoulos, http://www.dimitridiakopoulos.com/ |
|
| 5 | 4 |
|
| 6 |
Portions Copyright (c) 2008, 2009 Memo Atkens, http://www.memo.tv/ |
|
| 5 |
Portions Copyright (c) 2008, 2009 Memo Aktens, http://www.memo.tv/ |
|
| 7 | 6 |
-> Based on ofxSimpleGuiToo |
| 8 | 7 |
|
| 9 | 8 |
Portions Copyright (c) 2008 Todd Vanderlin, http://toddvanderlin.com/ |
| ... | ... | |
| 37 | 36 |
#pragma once |
| 38 | 37 |
|
| 39 | 38 |
#include "ofxArgosUI_Includes.h" |
| 39 |
#include "ofxArgosUI_Focus.h" |
|
| 40 |
#include "StateManager.h" |
|
| 40 | 41 |
|
| 41 | 42 |
class ofxArgosUI_View : public ofxArgosUI_Control {
|
| 42 | 43 |
|
| ... | ... | |
| 51 | 52 |
void loadFromXML(ofxXmlSettings &XML); |
| 52 | 53 |
void saveToXML(ofxXmlSettings &XML); |
| 53 | 54 |
|
| 55 |
ofxArgosUI_Control *addSystemControl (ofxArgosUI_Control *control); |
|
| 56 |
ofxArgosUI_Panel *addSystemPanel (string name, int x, int y, int width, int height); |
|
| 57 |
|
|
| 54 | 58 |
ofxArgosUI_Control *addControl (ofxArgosUI_Control *control); |
| 55 |
|
|
| 56 | 59 |
ofxArgosUI_Panel *addPanel (string name, int x, int y, int width, int height); |
| 57 | 60 |
ofxArgosUI_Button *addButton (string name, int x, int y, int width, int height, bool *value); |
| 58 | 61 |
ofxArgosUI_Toggle *addToggle (string name, int x, int y, int width, int height, bool *value); |
| ... | ... | |
| 63 | 66 |
ofxArgosUI_TextField *addTextField (string name, int x, int y, int width, int height, string *value); |
| 64 | 67 |
ofxArgosUI_FPSCounter *addFPSCounter (int x, int y, int width, int height); |
| 65 | 68 |
ofxArgosUI_Icon *addIcon (int x, int y, int width, int height); |
| 66 |
ofxArgosUI_Title *addTitle (string name, bool *value = NULL); |
|
| 67 |
|
|
| 69 |
ofxArgosUI_Title *addTitle (string name, bool *value = NULL); |
|
| 70 |
|
|
| 68 | 71 |
void update(ofEventArgs &e); |
| 69 | 72 |
|
| 70 |
void mousePressed(ofMouseEventArgs &e); |
|
| 71 |
|
|
| 72 |
|
|
| 73 |
protected: |
|
| 74 | 73 |
vector <ofxArgosUI_Control*> controls; |
| 74 |
vector <ofxArgosUI_Control*> systemcontrols; |
|
| 75 | 75 |
|
| 76 | 76 |
}; |
Also available in: Unified diff
