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
43
44
45
46
47
48
|
/** \file
* \brief Text Controls Private Declarations
*
* See Copyright Notice in "iup.h"
*/
#ifndef __IUP_TEXT_H
#define __IUP_TEXT_H
#ifdef __cplusplus
extern "C" {
#endif
void iupdrvTextInitClass(Iclass* ic);
void iupdrvTextAddBorders(int *w, int *h);
void iupdrvTextAddSpin(int *w, int h);
void iupdrvTextAddFormatTag(Ihandle* ih, Ihandle* formattag);
void iupdrvTextConvertLinColToPos(Ihandle* ih, int lin, int col, int *pos);
void iupdrvTextConvertPosToLinCol(Ihandle* ih, int pos, int *lin, int *col);
void iupTextUpdateFormatTags(Ihandle* ih);
char* iupTextGetPaddingAttrib(Ihandle* ih);
char* iupTextGetNCAttrib(Ihandle* ih);
int iupTextSetFormattingAttrib(Ihandle* ih, const char* value);
char* iupTextGetFormattingAttrib(Ihandle* ih);
int iupTextSetAddFormatTagAttrib(Ihandle* ih, const char* value);
int iupTextSetAddFormatTagHandleAttrib(Ihandle* ih, const char* value);
struct _IcontrolData
{
int is_multiline,
has_formatting,
append_newline,
nc,
sb, /* scrollbar configuration, can be changed only before map */
horiz_padding, vert_padding, /* button margin */
last_caret_pos;
Iarray* formattags;
Imask* mask;
};
#ifdef __cplusplus
}
#endif
#endif
|