summaryrefslogtreecommitdiff
path: root/iup/src/iup_canvas.h
blob: 29d644c8867a7d82dc7a59aea54417bb3ad6c170 (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
/** \file
 * \brief Canvas Controls Private Declarations
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUP_CANVAS_H 
#define __IUP_CANVAS_H

#ifdef __cplusplus
extern "C" {
#endif


void iupdrvCanvasInitClass(Iclass* ic);
void iupCanvasCalcScrollIntPos(double min, double max, double page, double pos, 
                                 int imin,   int imax,  int *ipage,  int *ipos);
void iupCanvasCalcScrollRealPos(double min, double max, double *pos, 
                                 int imin,   int imax,  int ipage,  int *ipos);
char* iupCanvasGetPosXAttrib(Ihandle* ih);
char* iupCanvasGetPosYAttrib(Ihandle* ih);

#define IUP_SB_MIN 0
#define IUP_SB_MAX INT_MAX-1

struct _IcontrolData 
{
  int sb;    /* scrollbar configuration, valid only after map, use iupBaseGetScrollbar before map */
  float posx, posy;
};


#ifdef __cplusplus
}
#endif

#endif