summaryrefslogtreecommitdiff
path: root/iup/srccontrols/matrix/iupmat_getset.h
blob: 9ae3d074b511fdfd959a947892b53626f6554c46 (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 iupmatrix control
 * attributes set and get.
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUPMAT_GETSET_H 
#define __IUPMAT_GETSET_H

#ifdef __cplusplus
extern "C" {
#endif

void  iupMatrixCellSetValue(Ihandle* ih, int lin, int col, const char* value);
char* iupMatrixCellGetValue(Ihandle* ih, int lin, int col);

void iupMatrixCellSetFlag(Ihandle* ih, int lin, int col, unsigned char attr, int set);

void  iupMatrixPrepareDrawData(Ihandle* ih);
char* iupMatrixGetFgColor(Ihandle* ih, int lin, int col);
char* iupMatrixGetBgColor(Ihandle* ih, int lin, int col);
char* iupMatrixGetFont   (Ihandle* ih, int lin, int col);
void iupMatrixGetBgRGB(Ihandle* ih, int lin, int col, unsigned char *r, unsigned char *g, unsigned char *b);
void iupMatrixGetFgRGB(Ihandle* ih, int lin, int col, unsigned char *r, unsigned char *g, unsigned char *b);

void iupMatrixCellUpdateValue(Ihandle* ih);

char* iupMatrixGetSize(Ihandle* ih, int index, int m, int pixels);

int   iupMatrixCheckCellPos(Ihandle* ih, int lin, int col);

#ifdef __cplusplus
}
#endif

#endif