diff options
author | David Robillard <d@drobilla.net> | 2008-08-08 22:45:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-08 22:45:58 +0000 |
commit | e360047054117d63fb579ec9231e9dc77c99f12a (patch) | |
tree | 4a497365f6ecd30449e2c66c1fe77c816bd1fe4a /lvz/lvzgui.h | |
download | mda.lv2-e360047054117d63fb579ec9231e9dc77c99f12a.tar.gz mda.lv2-e360047054117d63fb579ec9231e9dc77c99f12a.tar.bz2 mda.lv2-e360047054117d63fb579ec9231e9dc77c99f12a.zip |
Add preliminary (library side only) LV2 port of MDA (open-sourced VST plugins).
git-svn-id: http://svn.drobilla.net/lad/mda-lv2@1321 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'lvz/lvzgui.h')
-rw-r--r-- | lvz/lvzgui.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/lvz/lvzgui.h b/lvz/lvzgui.h new file mode 100644 index 0000000..c28c2a6 --- /dev/null +++ b/lvz/lvzgui.h @@ -0,0 +1,85 @@ +/* LVZ - A C++ interface for writing LV2 plugins. + * Copyright (C) 2008 Dave Robillard <http://drobilla.net> + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef __lvz_gui_h +#define __lvz_gui_h + +#include "audioeffectx.h" + +static const uint32_t kBlackCColor = 0x00000000; + + +class CRect { +public: + CRect(long x=0, long y=0, long w=0, long h=0) + : left(x), top(y), right(x+w), bottom(y+h) + {} + void offset(long x, long y) {} + long left, top, right, bottom; +}; + +class CControl { +public: + CControl(CRect& size) {} + void setDirty(bool dirty) {} + void setValue(float value) {} +}; + +class CPoint { +public: + CPoint(long a_x, long a_y) : x(a_x), y(a_y) {} + long x, y; +}; + +class CFrame { +public: + CFrame(CRect& size, void* ptr, void* editor) {} + void addView(CControl* control) {} +}; + +class CDrawContext { +public: + void setFillColor(uint32_t color) {} + void fillRect(CRect& rect); +}; + +class CBitmap { +public: + CBitmap(long something) {} + + long getWidth() { return 0; } + long getHeight() { return 0; } + + void draw(CDrawContext* context, CRect& rect) {} +}; + +class AEffGUIEditor { +public: + AEffGUIEditor(AudioEffect* eff) : effect(eff), rect(0, 0, 0, 0) {} + void open(void* ptr) {} + + void idle() {} + +protected: + AudioEffect* effect; + CRect rect; + CFrame* frame; +}; + +#endif // __lvz_gui_h + |