summaryrefslogtreecommitdiff
path: root/iup/src/iup_toggle.h
blob: 08e14b01ea7ad40c9bea2792581d42d2847b6f3a (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
/** \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