/** \file
 * \brief Toggle Controls (not exported API)
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUP_TOGGLE_H 
#define __IUP_TOGGLE_H

#ifdef __cplusplus
extern "C" {
#endif


/* some drivers reuses iupdrvButtonAddBorders */
void iupdrvButtonAddBorders(Ihandle* ih, int *x, int *y);

void iupdrvToggleAddBorders(Ihandle* ih, int *x, int *y);

void iupdrvToggleInitClass(Iclass* ic);
void iupdrvToggleAddCheckBox(Ihandle* ih, int *x, int *y, const char* str);
void iupdrvToggleAddSwitch(Ihandle* ih, int *x, int *y, const char* str);

IUP_SDK_API Ihandle* iupRadioFindToggleParent(Ihandle* ih_toggle);
char* iupToggleGetPaddingAttrib(Ihandle* ih);

enum {IUP_TOGGLE_IMAGE, IUP_TOGGLE_TEXT};

struct _IcontrolData 
{
  int type,                         /* the 2 toggle possibilities */
      is_radio,
      flat,
      horiz_padding, vert_padding;  /* toggle margin for images */
};


#ifdef __cplusplus
}
#endif

#endif
