Home2L - C/C++ API  v1.2-2-ga4fe (2023-04-15)
Smart Tools for a Private Home
Classes | Macros

Description

Horizontal or vertical slider.

Collaboration diagram for Slider:

Classes

class  CSlider
 Slider widget. More...
 

Macros

#define SLIDER_WIDTH   48
 Default width of a slider.
 
#define SLIDER_BAR_HEIGHT   16
 Default height of a slider bar.
 
#define SLIDER_TRAMPOLINE(CB_NAME, CLASS_NAME, METHOD_NAME)
 Macro to define a trampoline to another class. More...
 

Macro Definition Documentation

◆ SLIDER_TRAMPOLINE

#define SLIDER_TRAMPOLINE (   CB_NAME,
  CLASS_NAME,
  METHOD_NAME 
)
Value:
void CB_NAME (class CSlider *slider, int val, int lastVal, void *data) { \
((CLASS_NAME *) data)->METHOD_NAME (slider, val, lastVal); \
}
Slider widget.
Definition: ui_widgets.H:996

Macro to define a trampoline to another class.

The class must define a method:

void CLASS_NAME::METHOD_NAME (CSlider *slider, int val, int lastVal)

If the method is protected, the following line may be added to the class:

friend CB_NAME (CButton *, int, int, void *);

To the slider, the trampoline must be passed by a call like:

CSlider::SetCbValueChanged (CB_NAME, <class object pointer>)

Definition at line 991 of file ui_widgets.H.