-
Notifications
You must be signed in to change notification settings - Fork 0
/
ofxJFControlPanel.h
49 lines (30 loc) · 982 Bytes
/
ofxJFControlPanel.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
45
46
47
48
49
//
// ofxJFControlPanel.h
// ofxJFControl
//
// Created by João Fonseca on 09/04/15.
//
//
#pragma once
#include "ofxJFIncludes.h"
class ofxJFControlPanel: public ofxJFWidget, ofxJFLabel {
public:
ofxJFControlPanel();
ofxJFControlPanel(string _name, int _x, int _y, int _width, int _height=40);
void createGroup(string _name);
void addSlider(string _name, float _min, float _max);
void addSlider(string _name, float &_var, float _min, float _max);
void addMultiSlider(string _name, float _min, float _max);
void addMultiSlider(string _name, ofPoint &_var, float _min, float _max);
void relocateGroup(int _pos);
void update();
void drawController();
void mousePressed(int x, int y, int button);
ofPoint groupLocation;
ofVec2f groupSize;
int offsetY;
int offsetX;
int maximizedSize;
int tSize;
vector<ofxJFControlGroup *> groups;
};