summaryrefslogtreecommitdiff
path: root/iup/src/iup_box.h
blob: 5d79263af8acd5d60e830393026f6985359efdb2 (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
/** \file
 * \brief Base for box Controls.
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUP_BOX_H 
#define __IUP_BOX_H

#ifdef __cplusplus
extern "C" {
#endif


struct _IcontrolData 
{
  int alignment,
      expand_children,
      is_homogeneous,
      normalize_size,
      margin_x,
      margin_y,
      gap;
  int children_naturalsize,   /* calculated in ComputeNaturalSize, used in SetChildrenCurrentSize */
      homogeneous_size;       /* calculated in SetChildrenCurrentSize, used in SetChildrenPosition */
};

Iclass* iupBoxClassBase(void);

/* Implemented in iup_normalizer.c */
void iupNormalizeSizeBoxChild(Ihandle *ih, int normalize, int children_natural_maxwidth, int children_natural_maxheight);
int iupNormalizeGetNormalizeSize(const char* value);
char* iupNormalizeGetNormalizeSizeStr(int normalize);


#ifdef __cplusplus
}
#endif

#endif