17 #ifndef DGL_IMAGE_KNOB_HPP_INCLUDED
18 #define DGL_IMAGE_KNOB_HPP_INCLUDED
39 virtual void imageKnobDragStarted(
ImageKnob* imageKnob) = 0;
40 virtual void imageKnobDragFinished(
ImageKnob* imageKnob) = 0;
41 virtual void imageKnobValueChanged(
ImageKnob* imageKnob,
float value) = 0;
44 explicit ImageKnob(
Window& parent,
const Image& image, Orientation orientation = Vertical) noexcept;
45 explicit
ImageKnob(
Widget* widget, const
Image& image, Orientation orientation = Vertical) noexcept;
50 float getValue() const noexcept;
52 void setDefault(
float def) noexcept;
53 void setRange(
float min,
float max) noexcept;
54 void setStep(
float step) noexcept;
55 void setValue(
float value,
bool sendCallback = false) noexcept;
56 void setUsingLogScale(
bool yesNo) noexcept;
58 void setCallback(
Callback* callback) noexcept;
59 void setOrientation(Orientation orientation) noexcept;
60 void setRotationAngle(
int angle);
62 void setImageLayerCount(uint count) noexcept;
80 Orientation fOrientation;
96 float _logscale(
float value) const;
97 float _invlogscale(
float value) const;
106 #endif // DGL_IMAGE_KNOB_HPP_INCLUDED
void onDisplay() override
Definition: Window.hpp:30
bool onMouse(const MouseEvent &) override
Definition: ImageKnob.hpp:35
bool onMotion(const MotionEvent &) override
bool onScroll(const ScrollEvent &) override
Definition: ImageKnob.hpp:27