MultiSlider.
More...
#include <ofxOuiMultiSlider.hpp>
|
template<typename T , typename args , class ListenerClass > |
void | onEditSlider (T *owner, void(ListenerClass::*listenerMethod)(args)) |
| Set callback function for slider editing events. More...
|
|
| MultiSlider (int x_=0, int y_=0, int width_=0, int height_=0) |
| Constructor. More...
|
|
virtual | ~MultiSlider () |
| Destructor. More...
|
|
virtual void | update () |
| OF-like update function. More...
|
|
virtual void | draw () |
| OF-like draw function. More...
|
|
virtual bool | inside (float x_, float y_) const |
| checks if a point is inside the component (depending on the shape) More...
|
|
Type | type () const |
| get the type of the component More...
|
|
§ Layout
Display Layout.
Enumerator |
---|
Horizontal | |
Vertical | |
§ Origin
Origin of the slider filling.
Enumerator |
---|
Lower | |
Upper | |
Zero | |
§ MultiSlider()
ofxOui::MultiSlider::MultiSlider |
( |
int |
x_ = 0 , |
|
|
int |
y_ = 0 , |
|
|
int |
width_ = 0 , |
|
|
int |
height_ = 0 |
|
) |
| |
Constructor.
- Parameters
-
x_ | x position (left) |
y_ | y position (top) |
width_ | component width |
height_ | component height |
§ ~MultiSlider()
ofxOui::MultiSlider::~MultiSlider |
( |
| ) |
|
|
virtual |
§ clipValues()
void ofxOui::MultiSlider::clipValues |
( |
| ) |
|
|
protected |
§ draw()
void ofxOui::Component::draw |
( |
| ) |
|
|
virtualinherited |
OF-like draw function.
this method is subdivided in protected sub-methods that can be overloaded in inherited components
Reimplemented in ofxOui::Matrix, and ofxOui::DropDown.
§ drawBackground()
void ofxOui::Component::drawBackground |
( |
| ) |
|
|
protectedvirtualinherited |
§ drawFrame()
void ofxOui::Component::drawFrame |
( |
| ) |
|
|
protectedvirtualinherited |
§ drawIcon()
void ofxOui::Component::drawIcon |
( |
| ) |
|
|
protectedvirtualinherited |
§ drawLabel()
void ofxOui::MultiSlider::drawLabel |
( |
| ) |
|
|
protectedvirtual |
§ inside()
bool ofxOui::Component::inside |
( |
float |
x_, |
|
|
float |
y_ |
|
) |
| const |
|
virtualinherited |
checks if a point is inside the component (depending on the shape)
- Returns
- true if the point of coordinates (x, y) is inside the component
§ mouseDragged()
void ofxOui::MultiSlider::mouseDragged |
( |
ofMouseEventArgs & |
e | ) |
|
|
protectedvirtual |
§ mousePressed()
void ofxOui::MultiSlider::mousePressed |
( |
ofMouseEventArgs & |
e | ) |
|
|
protectedvirtual |
§ onEditSlider()
template<typename T , typename args , class ListenerClass >
void ofxOui::MultiSlider::onEditSlider |
( |
T * |
owner, |
|
|
void(ListenerClass::*)(args) |
listenerMethod |
|
) |
| |
|
inline |
Set callback function for slider editing events.
- Parameters
-
owner | pointer to the owner object |
listenerMethod | method to be called on eaech event |
- Template Parameters
-
T | type of the owner object |
args | arguments of the callback function |
ListenerClass | class to which the listener method belongs |
§ type()
Type ofxOui::Component::type |
( |
| ) |
const |
|
inlineinherited |
get the type of the component
- Returns
- type of the component
§ update()
void ofxOui::MultiSlider::update |
( |
| ) |
|
|
virtual |
§ active
bool ofxOui::Component::active = false |
|
inherited |
specifies if the component is active
§ blocking_component
§ current_background_color_
ofColor ofxOui::Component::current_background_color_ |
|
protectedinherited |
§ current_frame_color_
ofColor ofxOui::Component::current_frame_color_ |
|
protectedinherited |
§ disabled
bool ofxOui::Component::disabled = false |
|
inherited |
specifies if the component should be in "disabled" mode (no interaction)
§ dragging_
bool ofxOui::MultiSlider::dragging_ = false |
|
protected |
§ font
textbox for the main label of the component
§ height
float ofxOui::Component::height |
|
inherited |
§ hover_
bool ofxOui::Component::hover_ = false |
|
protectedinherited |
§ icon
Icon ofxOui::Component::icon |
|
inherited |
icon box of the component
§ labelOff
string ofxOui::Component::labelOff = "" |
|
inherited |
Label of the component (not active)
§ labelOn
string ofxOui::Component::labelOn = "" |
|
inherited |
Label of the component (active)
§ layout
§ max
float ofxOui::MultiSlider::max = 1. |
Maximum value of each slider.
§ min
float ofxOui::MultiSlider::min = 0. |
Minimum value of each slider.
§ multislider_event_callback_
§ origin
Origin of the slider filling.
§ previous_position_
ofVec2f ofxOui::MultiSlider::previous_position_ |
|
protected |
§ shape
§ slider_rect_
ofRectangle ofxOui::MultiSlider::slider_rect_ |
|
protected |
§ style
§ type_
§ values
vector<float> ofxOui::MultiSlider::values |
§ width
float ofxOui::Component::width |
|
inherited |
float ofxOui::Component::x |
|
inherited |
float ofxOui::Component::y |
|
inherited |
The documentation for this class was generated from the following files: