ASPiK SDK
cspecialdigit.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #ifndef __cspecialdigit__
6 #define __cspecialdigit__
7 
8 #include "ccontrol.h"
9 
10 namespace VSTGUI {
11 
12 //-----------------------------------------------------------------------------
13 // CSpecialDigit Declaration
16 //-----------------------------------------------------------------------------
17 class CSpecialDigit : public CControl
18 {
19 public:
20  CSpecialDigit (const CRect& size, IControlListener* listener, int32_t tag, int32_t dwPos, int32_t iNumbers, int32_t* xpos, int32_t* ypos, int32_t width, int32_t height, CBitmap* background);
21  CSpecialDigit (const CSpecialDigit& digit);
22 
23  void draw (CDrawContext*) override;
24 
25  CLASS_METHODS(CSpecialDigit, CControl)
26 protected:
27  ~CSpecialDigit () noexcept override = default;
28  int32_t iNumbers;
29  int32_t xpos[7];
30  int32_t ypos[7];
31  int32_t width;
32  int32_t height;
33 };
34 
35 } // namespace
36 
37 #endif
Rect structure.
Definition: crect.h:17
Definition: xmlparse.c:181
A drawing context encapsulates the drawing context of the underlying OS.
Definition: cdrawcontext.h:29
void draw(CDrawContext *) override
called if the view should draw itself
Definition: cspecialdigit.cpp:86
CSpecialDigit(const CRect &size, IControlListener *listener, int32_t tag, int32_t dwPos, int32_t iNumbers, int32_t *xpos, int32_t *ypos, int32_t width, int32_t height, CBitmap *background)
Definition: cspecialdigit.cpp:34
Encapsulates various platform depended kinds of bitmaps.
Definition: cbitmap.h:21
Definition: customcontrols.cpp:8
base class of all VSTGUI controls
Definition: ccontrol.h:76
special display with custom numbers (0...9)
Definition: cspecialdigit.h:17
Definition: icontrollistener.h:14