ASPiK SDK
plugguieditor.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 __plugguieditor__
6 #define __plugguieditor__
7 
8 #include "../vstgui.h"
9 
10 //----------------------------------------------------------------------
11 struct ERect
12 {
13  int16_t top;
14  int16_t left;
15  int16_t bottom;
16  int16_t right;
17 };
18 
19 //-----------------------------------------------------------------------------
20 // AEffGUIEditor Declaration
21 //-----------------------------------------------------------------------------
23 {
24 public :
25 
26  PluginGUIEditor (void *pEffect);
27 
28  virtual ~PluginGUIEditor ();
29 
30  virtual void setParameter (int32_t index, float value) {}
31  virtual bool getRect (ERect **ppRect);
32  virtual bool open (void *ptr);
33  virtual void close () { systemWindow = 0; }
34  virtual void idle ();
35  virtual void draw (ERect *pRect);
36 
37  // wait (in ms)
38  void wait (uint32_t ms);
39 
40  // get the current time (in ms)
41  uint32_t getTicks ();
42 
43  // feedback to appli.
44  virtual void doIdleStuff ();
45 
46  // get the effect attached to this editor
47  void *getEffect () { return effect; }
48 
49  // get version of this VSTGUI
50  int32_t getVstGuiVersion () { return (VSTGUI_VERSION_MAJOR << 16) + VSTGUI_VERSION_MINOR; }
51 
52  // set/get the knob mode
53  virtual int32_t setKnobMode (int32_t val);
54  virtual int32_t getKnobMode () const { return knobMode; }
55 
56  // get the CFrame object
57  #if USE_NAMESPACE
58  VSTGUI::CFrame *getFrame () { return frame; }
59  #else
60  CFrame *getFrame () { return frame; }
61  #endif
62 
63  virtual void beginEdit (int32_t index) {}
64  virtual void endEdit (int32_t index) {}
65 
66 //---------------------------------------
67 protected:
68  ERect rect;
69 
70  void* effect;
71  void* systemWindow;
72 
73 private:
74  uint32_t lLastTicks;
75  bool inIdleStuff;
76 
77  static int32_t knobMode;
78 };
79 
80 #endif
Definition: cframe.h:229
Definition: plugguieditor.h:11
Definition: plugguieditor.h:22
The CFrame is the parent container of all views.
Definition: cframe.h:32