![]() |
Defines | |
#define | iupATTRIB_ISINTERNAL(_name) ((_name[0] == '_' && _name[1] == 'I' && _name[2] == 'U' && _name[3] == 'P')? 1: 0) |
Functions | |
int | iupAttribIsPointer (Ihandle *ih, const char *name) |
void | iupAttribSetStr (Ihandle *ih, const char *name, const char *value) |
void | iupAttribStoreStr (Ihandle *ih, const char *name, const char *value) |
void | iupAttribSetStrf (Ihandle *ih, const char *name, const char *format,...) |
void | iupAttribSetInt (Ihandle *ih, const char *name, int num) |
void | iupAttribSetFloat (Ihandle *ih, const char *name, float num) |
char * | iupAttribGet (Ihandle *ih, const char *name) |
char * | iupAttribGetInherit (Ihandle *ih, const char *name) |
char * | iupAttribGetInheritNativeParent (Ihandle *ih, const char *name) |
char * | iupAttribGetStr (Ihandle *ih, const char *name) |
char * | iupAttribGetLocal (Ihandle *ih, const char *name) |
int | iupAttribGetInt (Ihandle *ih, const char *name) |
int | iupAttribGetBoolean (Ihandle *ih, const char *name) |
float | iupAttribGetFloat (Ihandle *ih, const char *name) |
void | iupAttribSetHandleName (Ihandle *ih) |
char * | iupAttribGetHandleName (Ihandle *ih) |
#define iupATTRIB_ISINTERNAL | ( | _name | ) | ((_name[0] == '_' && _name[1] == 'I' && _name[2] == 'U' && _name[3] == 'P')? 1: 0) |
Returns true if the attribute name if in the internal format "_IUP...".
int iupAttribIsPointer | ( | Ihandle * | ih, | |
const char * | name | |||
) |
Returns true if the attribute name is a known pointer.
void iupAttribSetStr | ( | Ihandle * | ih, | |
const char * | name, | |||
const char * | value | |||
) |
Sets the attribute only in the hash table as a pointer. It ignores children.
void iupAttribStoreStr | ( | Ihandle * | ih, | |
const char * | name, | |||
const char * | value | |||
) |
Sets the attribute only in the hash table as a string. The string is internally duplicated. It ignores children.
void iupAttribSetStrf | ( | Ihandle * | ih, | |
const char * | name, | |||
const char * | format, | |||
... | ||||
) |
Sets the attribute only in the hash table as a string. The string is internally duplicated. Use same format as sprintf. It ignores children.
void iupAttribSetInt | ( | Ihandle * | ih, | |
const char * | name, | |||
int | num | |||
) |
Sets an integer attribute only in the hash table. It will be stored as a string. It ignores children.
void iupAttribSetFloat | ( | Ihandle * | ih, | |
const char * | name, | |||
float | num | |||
) |
Sets an floating point attribute only in the hash table. It will be stored as a string. It ignores children.
char* iupAttribGet | ( | Ihandle * | ih, | |
const char * | name | |||
) |
Returns the attribute from the hash table only. NO inheritance, NO control implementation, NO defalt value here.
char* iupAttribGetInherit | ( | Ihandle * | ih, | |
const char * | name | |||
) |
Returns the attribute from the hash table only, but if not defined then checks in its parent tree. NO control implementation, NO defalt value here.
char* iupAttribGetInheritNativeParent | ( | Ihandle * | ih, | |
const char * | name | |||
) |
Returns the attribute from the hash table of a native parent. Don't check for default values. Don't check at the element. Used for BGCOLOR and BACKGROUND attributes.
char* iupAttribGetStr | ( | Ihandle * | ih, | |
const char * | name | |||
) |
Returns the attribute from the hash table as a string, but if not defined then checks in its parent tree if allowed by the control implementation, if still not defined then returns the registered default value if any. NO control implementation, only checks inheritance and default value from it.
char* iupAttribGetLocal | ( | Ihandle * | ih, | |
const char * | name | |||
) |
Returns the attribute from the hash table as a string, but if not defined then checks in the control implementation, if still not defined then returns the registered default value if any.
NO inheritance here. Used only in the IupLayoutDialog.
int iupAttribGetInt | ( | Ihandle * | ih, | |
const char * | name | |||
) |
Same as iupAttribGetStr but returns an integer number. Checks also for boolean values.
int iupAttribGetBoolean | ( | Ihandle * | ih, | |
const char * | name | |||
) |
Same as iupAttribGetStr but checks for boolean values. Use iupStrBoolean.
float iupAttribGetFloat | ( | Ihandle * | ih, | |
const char * | name | |||
) |
Same as iupAttribGetStr but returns an floating point number.
void iupAttribSetHandleName | ( | Ihandle * | ih | ) |
Set an internal name to a handle.
char* iupAttribGetHandleName | ( | Ihandle * | ih | ) |
Returns the internal name if set.