r3icon
oops/r3icon.h
r3oops
Icon Class. Icon can be associated with buttons etc. similar to text.
r3Root
R3CLID_ROOT
r3Icon
R3CLID_ICON - 80
R3ICONCM_REGISTERLOADER
REGISTERLOADER
R3ICONCM_REGISTERLOADER
R3BOOL, True if registration succeeded
rc = obj.REGISTERLOADER();
Register image loader hook. These hooks are called * when an icon is created. If the image with the specified name * was found, it is loaded and used. If not, the built-in data is * used to create the icon
Data
Data
R3ICONA_Data
String
void*
platform specific icon data
value = jsobj.GetData();
void* value;
R3GetAttrs(r3obj, R3ICONA_Data, &value, R3TAG_END);
Width
Width
R3ICONA_Width
Integer
R3INT
width of image
value = jsobj.GetWidth();
R3INT value;
R3GetAttrs(r3obj, R3ICONA_Width, &value, R3TAG_END);
Height
Height
R3ICONA_Height
Integer
R3INT
height of image
value = jsobj.GetHeight();
R3INT value;
R3GetAttrs(r3obj, R3ICONA_Height, &value, R3TAG_END);
Depth
Depth
R3ICONA_Depth
Integer
R3INT
depth ie. bits per pixel
value = jsobj.GetDepth();
R3INT value;
R3GetAttrs(r3obj, R3ICONA_Depth, &value, R3TAG_END);
Name
Name
R3ICONA_Name
String
char*
specifies the icon, overrides R3ICONA_Data
jsobj.SetName(value);
value = jsobj.GetName();
char* value = ...;
R3SetAttrs(r3obj, R3ICONA_Name, value, R3TAG_END);
char* value;
R3GetAttrs(r3obj, R3ICONA_Name, &value, R3TAG_END);