Slider controller.
More...
#include <ofxOuiSlider.hpp>
|
| Slider (int x_=0, int y_=0, int width_=0, int height_=0) |
| Constructor. More...
|
|
virtual | ~Slider () |
| Destructor. More...
|
|
virtual void | update () |
| OF-like update function. More...
|
|
template<typename T , typename args , class ListenerClass > |
void | onEditValue (T *owner, void(ListenerClass::*listenerMethod)(args)) |
| Set callback function for value editing events. 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 | |
§ Slider()
ofxOui::Slider::Slider |
( |
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 |
§ ~Slider()
ofxOui::Slider::~Slider |
( |
| ) |
|
|
virtual |
§ clipValue()
void ofxOui::Numbox::clipValue |
( |
| ) |
|
|
protectedinherited |
§ 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::Slider::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
§ keyPressed()
void ofxOui::Numbox::keyPressed |
( |
ofKeyEventArgs & |
e | ) |
|
|
protectedvirtualinherited |
§ mouseDragged()
void ofxOui::Slider::mouseDragged |
( |
ofMouseEventArgs & |
e | ) |
|
|
protectedvirtual |
§ mousePressed()
void ofxOui::Slider::mousePressed |
( |
ofMouseEventArgs & |
e | ) |
|
|
protectedvirtual |
§ mouseReleased()
void ofxOui::Numbox::mouseReleased |
( |
ofMouseEventArgs & |
e | ) |
|
|
protectedvirtualinherited |
§ onEditValue()
template<typename T , typename args , class ListenerClass >
void ofxOui::Numbox::onEditValue |
( |
T * |
owner, |
|
|
void(ListenerClass::*)(args) |
listenerMethod |
|
) |
| |
|
inlineinherited |
Set callback function for value 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::Slider::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)
§ drag_step_
float ofxOui::Numbox::drag_step_ |
|
protectedinherited |
§ dragging_
bool ofxOui::Numbox::dragging_ |
|
protectedinherited |
§ 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::Numbox::max |
|
inherited |
§ min
float ofxOui::Numbox::min |
|
inherited |
§ numbox_event_callback_
§ origin
Origin of the slider filling.
§ precision
int ofxOui::Numbox::precision |
|
inherited |
precision of the number display
§ shape
§ slider_rect_
ofRectangle ofxOui::Slider::slider_rect_ |
|
protected |
§ style
§ type_
§ user_input_
string ofxOui::Numbox::user_input_ |
|
protectedinherited |
§ value
float ofxOui::Numbox::value |
|
inherited |
§ value_pressed_
float ofxOui::Numbox::value_pressed_ |
|
protectedinherited |
§ value_text_
TextBox ofxOui::Numbox::value_text_ |
|
protectedinherited |
§ width
float ofxOui::Component::width |
|
inherited |
float ofxOui::Component::x |
|
inherited |
float ofxOui::Component::y |
|
inherited |
§ y_pressed_
int ofxOui::Numbox::y_pressed_ |
|
protectedinherited |
The documentation for this class was generated from the following files: