r3icon

r3icon

Class

oops/r3icon.h

Library

r3oops

Description:

Icon Class. Icon can be associated with buttons etc. similar to text.

See Also

oops/r3root.h

Super Class

r3Root

R3CLID_ROOT

JavaScript

r3Icon

Class Identifier

R3CLID_ICON - 80

Methods

REGISTERLOADER,

Attributes

Data, Width, Height, Depth, Name,

R3ICONCM_REGISTERLOADER

Method

REGISTERLOADER

Identifier

R3ICONCM_REGISTERLOADER

Return

R3BOOL, True if registration succeeded

JavaScript

rc = obj.REGISTERLOADER();

Description

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

Attribute

Data

Identifier

R3ICONA_Data

JavaScript type

String

C type

void*

Description

platform specific icon data

Syntax


value = jsobj.GetData();


void* value;
R3GetAttrs(r3obj, R3ICONA_Data, &value, R3TAG_END);

Width

Attribute

Width

Identifier

R3ICONA_Width

JavaScript type

Integer

C type

R3INT

Description

width of image

Syntax


value = jsobj.GetWidth();


R3INT value;
R3GetAttrs(r3obj, R3ICONA_Width, &value, R3TAG_END);

Height

Attribute

Height

Identifier

R3ICONA_Height

JavaScript type

Integer

C type

R3INT

Description

height of image

Syntax


value = jsobj.GetHeight();


R3INT value;
R3GetAttrs(r3obj, R3ICONA_Height, &value, R3TAG_END);

Depth

Attribute

Depth

Identifier

R3ICONA_Depth

JavaScript type

Integer

C type

R3INT

Description

depth ie. bits per pixel

Syntax


value = jsobj.GetDepth();


R3INT value;
R3GetAttrs(r3obj, R3ICONA_Depth, &value, R3TAG_END);

Name

Attribute

Name

Identifier

R3ICONA_Name

JavaScript type

String

C type

char*

Description

specifies the icon, overrides R3ICONA_Data

Syntax


jsobj.SetName(value);
value = jsobj.GetName();


char* value = ...;
R3SetAttrs(r3obj, R3ICONA_Name, value, R3TAG_END);
char* value;
R3GetAttrs(r3obj, R3ICONA_Name, &value, R3TAG_END);