summaryrefslogtreecommitdiff
path: root/iup/src/iup_val.h
blob: dea8df4f21672c0a241151bb361d0700e12a5ec0 (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
/** \file
 * \brief Valuator Control
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUP_VAL_H 
#define __IUP_VAL_H

#ifdef __cplusplus
extern "C" {
#endif

enum {IVAL_VERTICAL, IVAL_HORIZONTAL};

struct _IcontrolData
{
  int type;
  int show_ticks;  /* Windows and Motif only - can be used only after map */
  int inverted;
  double val;
  double step;
  double pagestep;
  double vmin;
  double vmax;
};

void  iupValCropValue(Ihandle* ih);
char* iupValGetValueAttrib(Ihandle* ih);
char* iupValGetStepAttrib(Ihandle* ih);
char* iupValGetPageStepAttrib(Ihandle* ih);
char* iupValGetShowTicksAttrib(Ihandle* ih);

void iupdrvValInitClass(Iclass* ic);
void iupdrvValGetMinSize(Ihandle* ih, int *w, int *h);


#ifdef __cplusplus
}
#endif

#endif