blob: 842f436fb59f54cae0654a1b318746aa5a73fe7b (
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
40
41
|
/** \file
* \brief User Element.
*
* See Copyright Notice in "iup.h"
*/
#include <stdio.h>
#include <stdlib.h>
#include "iup.h"
#include "iup_object.h"
#include "iup_stdcontrols.h"
static int iUserSetClearAttributesAttrib(Ihandle* ih, const char* value)
{
(void)value;
iupTableClear(ih->attrib);
return 0;
}
Ihandle* IupUser(void)
{
return IupCreate("user");
}
Iclass* iupUserGetClass(void)
{
Iclass* ic = iupClassNew(NULL);
ic->name = "user";
ic->format = NULL; /* no parameters */
ic->nativetype = IUP_TYPEVOID;
ic->childtype = IUP_CHILDNONE;
ic->is_interactive = 0;
iupClassRegisterAttribute(ic, "CLEARATTRIBUTES", NULL, iUserSetClearAttributesAttrib, NULL, NULL, IUPAF_NOT_MAPPED|IUPAF_NO_INHERIT);
return ic;
}
|