-
Notifications
You must be signed in to change notification settings - Fork 0
/
ofxJFControlGroup.h
44 lines (27 loc) · 922 Bytes
/
ofxJFControlGroup.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
//
// ofxJFControlPanel.h
// jfGui
//
// Created by João Fonseca on 03/04/15.
//
//
#pragma once
#include "ofxJFIncludes.h"
class ofxJFControlGroup: public ofxJFWidget, ofxJFLabel {
public:
ofxJFControlGroup();
ofxJFControlGroup(string _name, int _x, int _y, int _width, int _height=30);
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 drawController();
void update();
int initialWigetYlocation();
void relocateControls(int _pos);
void setLocation(ofPoint _location);
void mousePressed(int x, int y, int button);
vector<ofxJFWidget *> controls;
int widgetHeight;
int maximizedHeight;
};