ASPiK SDK
cmoviebitmap.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 __cmoviebitmap__
6 #define __cmoviebitmap__
7 
8 #include "ccontrol.h"
9 
10 namespace VSTGUI {
11 
12 //-----------------------------------------------------------------------------
13 // CMovieBitmap Declaration
16 //-----------------------------------------------------------------------------
18 {
19 public:
20  CMovieBitmap (const CRect& size, IControlListener* listener, int32_t tag, CBitmap* background, const CPoint& offset = CPoint (0, 0));
21  CMovieBitmap (const CRect& size, IControlListener* listener, int32_t tag, int32_t subPixmaps, CCoord heightOfOneImage, CBitmap* background, const CPoint& offset = CPoint (0, 0));
22  CMovieBitmap (const CMovieBitmap& movieBitmap);
23 
24  void draw (CDrawContext*) override;
25  bool sizeToFit () override;
26 
27  void setNumSubPixmaps (int32_t numSubPixmaps) override { IMultiBitmapControl::setNumSubPixmaps (numSubPixmaps); invalid (); }
28 
29  CLASS_METHODS(CMovieBitmap, CControl)
30 protected:
31  ~CMovieBitmap () noexcept override = default;
32  CPoint offset;
33 };
34 
35 } // namespace
36 
37 #endif
Rect structure.
Definition: crect.h:17
Definition: xmlparse.c:181
CMovieBitmap(const CRect &size, IControlListener *listener, int32_t tag, CBitmap *background, const CPoint &offset=CPoint(0, 0))
Definition: cmoviebitmap.cpp:23
A drawing context encapsulates the drawing context of the underlying OS.
Definition: cdrawcontext.h:29
bool sizeToFit() override
resize view to optimal size
Definition: cmoviebitmap.cpp:75
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
virtual void invalid()
mark whole view as invalid
Definition: cview.h:63
a bitmap view that displays different bitmaps according to its current value
Definition: cmoviebitmap.h:17
void draw(CDrawContext *) override
called if the view should draw itself
Definition: cmoviebitmap.cpp:61
Point structure.
Definition: cpoint.h:17
Definition: icontrollistener.h:14
interface for controls with sub images
Definition: ccontrol.h:182