diff options
author | Pixel <pixel@nobis-crew.org> | 2009-11-04 11:56:41 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-11-04 11:59:33 -0800 |
commit | d577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch) | |
tree | 590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /iup/src/iup_button.h |
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/src/iup_button.h')
-rwxr-xr-x | iup/src/iup_button.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/iup/src/iup_button.h b/iup/src/iup_button.h new file mode 100755 index 0000000..f85720a --- /dev/null +++ b/iup/src/iup_button.h @@ -0,0 +1,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 |