The SliderTool painted by writing its pixels directly into the Frame Buffer. This happens in two steps:
- The Tool, consisting of buttons and rail, is generated (see left picture).
- The Slider, as movable part, is painted on top of the Tool, regarding the current status of the SliderTool. (see right picture)
The buttons as like as the slider are given as pictures, which can be found in the './images' folder. Both can easily be adapted by changing the corresponding pictures, resp. the filepath in the sourcecode.
- The Button-pictures have to be squared.
- The Button-pictures have to be from the same size.
- The width of picture for the Slider have to be the same as the width of the Button-pictures
- The Slider-picture should not have any transparency, as this is not supported. (all other Pictures can have transparency)
|
|
|