27 float getDecreaseStepValue ()
const {
return decreaseValue; }
28 virtual void setDecreaseStepValue (
float value) { decreaseValue = value; }
31 virtual CBitmap* getOffBitmap ()
const {
return offBitmap; }
33 virtual void setOffBitmap (
CBitmap* bitmap);
35 int32_t getNbLed ()
const {
return nbLed; }
36 void setNbLed (int32_t nb) { nbLed = nb;
invalid (); }
38 void setStyle (int32_t newStyle) { style = newStyle;
invalid (); }
39 int32_t getStyle ()
const {
return style; }
Rect structure.
Definition: crect.h:17
void onIdle() override
called on idle when view wants idle
Definition: cvumeter.cpp:103
void setViewSize(const CRect &newSize, bool invalid=true) override
set views size
Definition: cvumeter.cpp:64
A drawing context encapsulates the drawing context of the underlying OS.
Definition: cdrawcontext.h:29
void draw(CDrawContext *pContext) override
called if the view should draw itself
Definition: cvumeter.cpp:110
CBitmap * getBackground() const
get the background image of this view
Definition: cview.cpp:773
Definition: cvumeter.h:17
Encapsulates various platform depended kinds of bitmaps.
Definition: cbitmap.h:21
Definition: customcontrols.cpp:8
bool sizeToFit() override
resize view to optimal size
Definition: cvumeter.cpp:72
base class of all VSTGUI controls
Definition: ccontrol.h:76
virtual void setBackground(CBitmap *background)
set the background image of this view
Definition: cview.cpp:765
virtual void invalid()
mark whole view as invalid
Definition: cview.h:63
void setDirty(bool state) override
set the view to dirty so that it is redrawn in the next idle. Thread Safe !
Definition: cvumeter.cpp:97
CVuMeter(const CRect &size, CBitmap *onBitmap, CBitmap *offBitmap, int32_t nbLed, int32_t style=kVertical)
Definition: cvumeter.cpp:25