-
Notifications
You must be signed in to change notification settings - Fork 1
/
Qt_SliderPainter_proc.h
40 lines (28 loc) · 1.79 KB
/
Qt_SliderPainter_proc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* Copyright 2012 Kjetil S. Matheussen
This program 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 program 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <QGraphicsItem>
struct SliderPainter;
SliderPainter *SLIDERPAINTER_create(QSlider *qslider);
SliderPainter *SLIDERPAINTER_create(QGraphicsItem *graphics_item, int x1, int y1, int x2, int y2);
void SLIDERPAINTER_delete(SliderPainter *painter);
void SLIDERPAINTER_paint(SliderPainter *painter, QPainter *p);
void SLIDERPAINTER_set_num_channels(SliderPainter *painter, int num_channels);
void SLIDERPAINTER_setValue(SliderPainter *painter, int value); // only works with graphics item.
float *SLIDERPAINTER_obtain_peak_value_pointers(SliderPainter *painter, int num_channels);
void SLIDERPAINTER_set_peak_value_pointers(SliderPainter *painter, int num_channels, float *pointers);
float *SLIDERPAINTER_obtain_automation_value_pointer(SliderPainter *painter);
int *SLIDERPAINTER_obtain_automation_color_pointer(SliderPainter *painter);
void SLIDERPAINTER_release_automation_pointers(SliderPainter *painter);
void SLIDERPAINTER_set_alternative_color(SliderPainter *painter);
void SLIDERPAINTER_set_string(SliderPainter *painter,QString string);
QString SLIDERPAINTER_get_string(SliderPainter *painter);