From d577d991b97ae2b5ee1af23641bcffc3f83af5b2 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 4 Nov 2009 11:56:41 -0800 Subject: Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux. --- iup/src/iup_toggle.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 iup/src/iup_toggle.h (limited to 'iup/src/iup_toggle.h') diff --git a/iup/src/iup_toggle.h b/iup/src/iup_toggle.h new file mode 100755 index 0000000..08e14b0 --- /dev/null +++ b/iup/src/iup_toggle.h @@ -0,0 +1,37 @@ +/** \file + * \brief Toggle Controls Private Declarations + * + * See Copyright Notice in "iup.h" + */ + +#ifndef __IUP_TOGGLE_H +#define __IUP_TOGGLE_H + +#ifdef __cplusplus +extern "C" { +#endif + + +void iupdrvButtonAddBorders(int *x, int *y); /* reuse button borders */ + +void iupdrvToggleInitClass(Iclass* ic); +void iupdrvToggleAddCheckBox(int *x, int *y); + +Ihandle *iupRadioFindToggleParent(Ihandle* ih_toggle); +char* iupToggleGetPaddingAttrib(Ihandle* ih); + +enum {IUP_TOGGLE_IMAGE, IUP_TOGGLE_TEXT}; + +struct _IcontrolData +{ + int type, /* the 2 toggle possibilities */ + radio, + horiz_padding, vert_padding; /* toggle margin for images */ +}; + + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3