From d577d991b97ae2b5ee1af23641bcffc3f83af5b2 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 4 Nov 2009 11:56:41 -0800 Subject: Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux. --- iup/srccontrols/matrix/iupmat_aux.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 iup/srccontrols/matrix/iupmat_aux.h (limited to 'iup/srccontrols/matrix/iupmat_aux.h') diff --git a/iup/srccontrols/matrix/iupmat_aux.h b/iup/srccontrols/matrix/iupmat_aux.h new file mode 100755 index 0000000..296c1f5 --- /dev/null +++ b/iup/srccontrols/matrix/iupmat_aux.h @@ -0,0 +1,37 @@ +/** \file + * \brief iupmatrix control + * auxiliary functions. + * + * See Copyright Notice in "iup.h" + */ + +#ifndef __IUPMAT_AUX_H +#define __IUPMAT_AUX_H + +#ifdef __cplusplus +extern "C" { +#endif + +int iupMatrixAuxIsCellFullVisible(Ihandle* ih, int lin, int col); +int iupMatrixAuxIsCellVisible(Ihandle* ih, int lin, int col); +void iupMatrixAuxGetVisibleCellDim (Ihandle* ih, int lin, int col, int* x, int* y, int* w, int* h); + +void iupMatrixAuxCalcSizes(Ihandle* ih); + +void iupMatrixAuxUpdateVisiblePos(Ihandle* ih, int m); +void iupMatrixAuxUpdateLast(ImatLinColData *p); + +int iupMatrixAuxGetColumnWidth(Ihandle* ih, int col); +int iupMatrixAuxGetLineHeight (Ihandle* ih, int lin); + +int iupMatrixAuxGetLinColFromXY (Ihandle* ih, int x, int y, int* l, int* c); + +int iupMatrixAuxCallLeaveCellCb (Ihandle* ih); +void iupMatrixAuxCallEnterCellCb (Ihandle* ih); +int iupMatrixAuxCallEditionCbLinCol(Ihandle* ih, int lin, int col, int mode, int update); + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3