IUP: Attribute Environment

IUP - Portable User Interface

Attribute Environment
[Control SDK]


Detailed Description

The attributes that are not stored at the control, are stored in a hash table (see Hash Table).
See iup_attrib.h


Functions

int iupAttribIsInternal (const char *name)
int iupAttribIsPointer (const char *name)
int iupAttribIsInheritable (const char *name)
void iupAttribSetStr (Ihandle *ih, const char *name, char *value)
void iupAttribStoreStr (Ihandle *ih, const char *name, const char *value)
void iupAttribSetInt (Ihandle *ih, const char *name, int num)
char * iupAttribGetStr (Ihandle *ih, const char *name)
int iupAttribGetInt (Ihandle *ih, const char *name)

Function Documentation

int iupAttribIsInternal const char *  name  ) 
 

Returns true if the attribute name if in the internal format "_IUP...".

int iupAttribIsPointer const char *  name  ) 
 

Returns true if the attribute name is a known pointer.

int iupAttribIsInheritable const char *  name  ) 
 

Returns true if the attribute is inheritable. valid only for a small group of common attributes. Not used internally. The inheritance in handled directly by the Attribute Function registration in the Base Class.

void iupAttribSetStr Ihandle *  ih,
const char *  name,
char *  value
 

Sets the attribute only in the attribute environment as a pointer. It ignores children.

void iupAttribStoreStr Ihandle *  ih,
const char *  name,
const char *  value
 

Sets the attribute only in the attribute environment as a string. The string is internally duplicated. It ignores children.

void iupAttribSetInt Ihandle *  ih,
const char *  name,
int  num
 

Sets an integer attribute only in the attribute environment. It will be stored as a string. It ignores children.

char* iupAttribGetStr Ihandle *  ih,
const char *  name
 

Returns the attribute from the attribute environment. It ignores inheritance.

int iupAttribGetInt Ihandle *  ih,
const char *  name
 

Returns the attribute from the attribute environment as an integer. It ignores inheritance.