summaryrefslogtreecommitdiff
path: root/iup/srccontrols/matrix/iupmat_mark.h
blob: 819916e9bd1b5cb3dff43ae97ee5b901d5363e50 (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 iupmatrix. cell selection.
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUPMAT_MARK_H 
#define __IUPMAT_MARK_H

#ifdef __cplusplus
extern "C" {
#endif

/* Used to mark (or not mark) cells */
#define IMAT_MARK_NO      0
#define IMAT_MARK_LIN     1
#define IMAT_MARK_COL     2
#define IMAT_MARK_LINCOL  3
#define IMAT_MARK_CELL    4

int iupMatrixSetMarkedAttrib(Ihandle* ih, const char* value);
char* iupMatrixGetMarkedAttrib(Ihandle* ih);
char* iupMatrixGetMarkAttrib(Ihandle* ih, const char* name_id);
int iupMatrixSetMarkAttrib(Ihandle* ih, const char* name_id, const char* value);

void iupMatrixMarkClearAll(Ihandle* ih, int check);

int iupMatrixMarkCellGet(Ihandle* ih, int lin, int col, IFnii mark_cb, char* str);

int iupMatrixColumnIsMarked(Ihandle* ih, int col);
int iupMatrixLineIsMarked  (Ihandle* ih, int lin);

void iupMatrixMarkMouseBlock(Ihandle* ih, int lin2, int col2);
void iupMatrixMarkMouseItem(Ihandle* ih, int ctrl, int lin1, int col1);
void iupMatrixMarkMouseReset(Ihandle* ih);


#ifdef __cplusplus
}
#endif

#endif