IupGetInt

IUP - Portable User Interface

IupGetInt

Verifies the value of an interface element attribute and converts it to int.

Parameters/Return

int IupGetInt(Ihandle *element, char *a); [in C]
[There is no equivalent in IupLua]

element: Identifier of the interface element.
a: name of the attribute.

This function returns the value of the interface element converted to int.

Notes

If the attribute value is "YES"/"NO" or "ON"/"OFF", the function returns 1 / 0, respectively.

The call to function IupGetInt invalidates IUP’s internal buffer. This means that after a call to this function the contents previously returned by IupGetAttribute will no longer be valid.

See Also

IupGetAttribute, IupGetFloat.