-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathiup_plot_ctrl.h
More file actions
55 lines (39 loc) · 1.23 KB
/
iup_plot_ctrl.h
File metadata and controls
55 lines (39 loc) · 1.23 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef __IUP_PLOT_CTRL_H__
#define __IUP_PLOT_CTRL_H__
#define IUP_PLOT_MAX_PLOTS 20
enum { IUP_PLOT_NATIVE, IUP_PLOT_NATIVEPLUS, IUP_PLOT_IMAGERGB, IUP_PLOT_OPENGL };
enum { IUP_PLOT_CROSSNONE, IUP_PLOT_CROSSVERT, IUP_PLOT_CROSSHORIZ };
struct _IcontrolData
{
iupCanvas canvas; /* from IupCanvas (must reserve it) */
iupPlot* plot_list[IUP_PLOT_MAX_PLOTS];
int plot_list_count;
iupPlot* current_plot;
int current_plot_index;
int numcol;
int sync_view;
int read_only;
cdCanvas* cd_canvas;
int graphics_mode;
int default_font_size;
int default_font_style;
int last_click_x,
last_click_y,
last_click_plot;
int show_cross_hair;
int last_pos_x,
last_pos_y,
last_pos_moving;
int last_cursor_plot,
last_cursor_ds,
last_cursor_sample;
};
void iupPlotRegisterAttributes(Iclass* ic);
void iupPlotUpdateViewports(Ihandle* ih);
void iupPlotRedraw(Ihandle* ih, int flush, int only_current, int reset_redraw);
void iupPlotResetZoom(Ihandle *ih, int redraw);
void iupPlotSetZoom(Ihandle *ih, int dir);
void iupPlotSetPlotCurrent(Ihandle* ih, int p);
void iupPlotShowMenuContext(Ihandle* ih, int screen_x, int screen_y, int x, int y);
int iupStrToColor(const char* str, long *color);
#endif