summaryrefslogtreecommitdiff
path: root/iup/src/iup_tabs.h
blob: 7f5df2e318e307ea72ad01464c951248e54e8ff7 (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
43
44
45
46
47
48
49
50
/** \file
 * \brief Tabs Control
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUP_TABS_H 
#define __IUP_TABS_H

#ifdef __cplusplus
extern "C" {
#endif


char* iupTabsGetTabOrientationAttrib(Ihandle* ih);
char* iupTabsGetTabTypeAttrib(Ihandle* ih);
char* iupTabsAttribGetStrId(Ihandle* ih, const char* name, int pos);
char* iupTabsGetPaddingAttrib(Ihandle* ih);

int iupdrvTabsExtraDecor(Ihandle* ih);
int iupdrvTabsGetLineCountAttrib(Ihandle* ih);
void iupdrvTabsSetCurrentTab(Ihandle* ih, int pos);
int iupdrvTabsGetCurrentTab(Ihandle* ih);
void iupdrvTabsInitClass(Iclass* ic);

typedef enum
{
  ITABS_TOP, ITABS_BOTTOM, ITABS_LEFT, ITABS_RIGHT
} ItabsType;

typedef enum
{
  ITABS_HORIZONTAL, ITABS_VERTICAL
} ItabsOrientation;

/* Control context */
struct _IcontrolData
{
  ItabsType type;
  ItabsOrientation orientation;
  int horiz_padding, vert_padding;  /* tab title margin */
  int is_multiline; /* used only in Windows */
};


#ifdef __cplusplus
}
#endif

#endif