summaryrefslogtreecommitdiff
path: root/iup/src/iup_button.h
blob: f85720ab2527d37e3d5abab5ced1a70483567ade (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
/** \file
 * \brief Button Controls Private Declarations
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUP_BUTTON_H 
#define __IUP_BUTTON_H

#ifdef __cplusplus
extern "C" {
#endif


void iupdrvButtonInitClass(Iclass* ic);
void iupdrvButtonAddBorders(int *x, int *y);

char* iupButtonGetPaddingAttrib(Ihandle* ih);

enum{IUP_BUTTON_IMAGE=0x01, IUP_BUTTON_TEXT=0x02, IUP_BUTTON_BOTH=0x03};
enum{IUP_IMGPOS_LEFT, IUP_IMGPOS_RIGHT, IUP_IMGPOS_TOP, IUP_IMGPOS_BOTTOM};

struct _IcontrolData 
{
  int type,                         /* the 2 buttons possibilities */
      horiz_padding, vert_padding;  /* button margin */
  int spacing, img_position;        /* used when both text and image are displayed */

  /* used only by the Windows driver */
  int horiz_alignment, vert_alignment;  
  unsigned long fgcolor;
};


#ifdef __cplusplus
}
#endif

#endif