summaryrefslogtreecommitdiff
path: root/iup/include/iupcontrols.h
blob: c7bc56636d0ce4d70307a3e2155692da97e713ef (plain)
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
/** \file
 * \brief initializes dial, gauge, colorbrowser, colorbar controls.
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUPCONTROLS_H 
#define __IUPCONTROLS_H

#ifdef __cplusplus
extern "C" {
#endif


int IupControlsOpen(void);
void IupControlsClose(void);   /* for backward compatibility only, does nothing since IUP 3 */

void IupOldValOpen(void);
void IupOldTabsOpen(void);

Ihandle* IupColorbar(void);
Ihandle* IupCells(void);
Ihandle *IupColorBrowser(void);
Ihandle *IupColorBrowser(void);
Ihandle *IupGauge(void);
Ihandle *IupDial(const char* type);
Ihandle* IupMatrix(const char *action);

/* IupMatrix utilities */
void  IupMatSetAttribute  (Ihandle* ih, const char* name, int lin, int col, char* value);
void  IupMatStoreAttribute(Ihandle* ih, const char* name, int lin, int col, char* value);
char* IupMatGetAttribute  (Ihandle* ih, const char* name, int lin, int col);
int   IupMatGetInt        (Ihandle* ih, const char* name, int lin, int col);
float IupMatGetFloat      (Ihandle* ih, const char* name, int lin, int col);
void  IupMatSetfAttribute (Ihandle* ih, const char* name, int lin, int col, char* format, ...);

/* Used by IupColorbar */
#define IUP_PRIMARY -1
#define IUP_SECONDARY -2


#ifdef __cplusplus
}
#endif

#endif