-
Notifications
You must be signed in to change notification settings - Fork 0
/
ofxJFWidget.h
56 lines (40 loc) · 1005 Bytes
/
ofxJFWidget.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
50
51
52
53
54
55
56
//
// ofxJFControl.h
// jfGui
//
// Created by João Fonseca on 03/04/15.
//
//
#pragma once
#include "ofxJFEvent.h"
#include "ofxJFColors.h"
class ofxJFWidget: public ofxJFEvent {
public:
ofxJFWidget();
virtual void setLabelPosition(ofPoint _labelLocation);
virtual void showLabel(bool _state);
virtual void setValue(float _value);
virtual void setLocation(ofPoint _location);
virtual ofPoint getLocation();
virtual float getValue();
virtual void drawController();
virtual void update();
string name;
float value;
float * variablePointer;
bool isVariableBinded;
float max;
float min;
ofPoint location;
ofPoint initialLocation;
ofVec2f size;
bool updateValue;
bool labelIsVisible;
int totalHeight;
bool isMaximized;
bool widgetChangedSize;
ofColor panelColor;
ofColor backgroundColor;
ofColor sliderColor;
ofColor handleColor;
};