r3imglis

r3imglis

Class

real/gadget/r3imglis.h

Library

r3gad

Description:

ImageListGadget Class

See Also

oops/r3gadget.h

Super Class

r3Gadget

R3CLID_GADGET

JavaScript

r3Imagelistgadget

Class Identifier

R3CLID_IMAGELISTGADGET - 255

Methods

Attributes

ImageList, Selected, DragSourceObj, DragSourceMth, DropTargetObj, CanDropMth, DropMth, ImageWidth, ImageHeight,

Registration

int R3RegisterImageListGadgetClass(R3APP *app);

ImageList

Attribute

ImageList

Identifier

R3IMGLISTGA_ImageList

JavaScript type

r3List

C type

R3LIST

Description

list of images

Syntax


jsobj.SetImageList(value);


R3LIST value = ...;
R3SetAttrs(r3obj, R3IMGLISTGA_ImageList, value, R3TAG_END);

Selected

Attribute

Selected

Identifier

R3IMGLISTGA_Selected

JavaScript type

Object

C type

R3OBJ*

Description

currently selected image

Syntax


jsobj.SetSelected(value);


R3OBJ* value = ...;
R3SetAttrs(r3obj, R3IMGLISTGA_Selected, value, R3TAG_END);

DragSourceObj

Attribute

DragSourceObj

Identifier

R3IMGLISTGA_DragSourceObj

JavaScript type

Object

C type

R3OBJ*

Description

callback object for dragging images

Syntax


jsobj.SetDragSourceObj(value);


R3OBJ* value = ...;
R3SetAttrs(r3obj, R3IMGLISTGA_DragSourceObj, value, R3TAG_END);

DragSourceMth

Attribute

DragSourceMth

Identifier

R3IMGLISTGA_DragSourceMth

JavaScript type

Integer

C type

R3INT

Description

callback method for dragging images

Syntax


jsobj.SetDragSourceMth(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3IMGLISTGA_DragSourceMth, value, R3TAG_END);

DropTargetObj

Attribute

DropTargetObj

Identifier

R3IMGLISTGA_DropTargetObj

JavaScript type

Object

C type

R3OBJ*

Description

callback object for dropping

Syntax


jsobj.SetDropTargetObj(value);


R3OBJ* value = ...;
R3SetAttrs(r3obj, R3IMGLISTGA_DropTargetObj, value, R3TAG_END);

CanDropMth

Attribute

CanDropMth

Identifier

R3IMGLISTGA_CanDropMth

JavaScript type

Integer

C type

R3INT

Description

callback method for can drop

Syntax


jsobj.SetCanDropMth(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3IMGLISTGA_CanDropMth, value, R3TAG_END);

DropMth

Attribute

DropMth

Identifier

R3IMGLISTGA_DropMth

JavaScript type

Integer

C type

R3INT

Description

callback method for drop

Syntax


jsobj.SetDropMth(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3IMGLISTGA_DropMth, value, R3TAG_END);

ImageWidth

Attribute

ImageWidth

Identifier

R3IMGLISTGA_ImageWidth

JavaScript type

Integer

C type

R3INT

Description

if 0, size is fetched from the image

Syntax


jsobj.SetImageWidth(value);
value = jsobj.GetImageWidth();


R3INT value = ...;
R3SetAttrs(r3obj, R3IMGLISTGA_ImageWidth, value, R3TAG_END);
R3INT value;
R3GetAttrs(r3obj, R3IMGLISTGA_ImageWidth, &value, R3TAG_END);

ImageHeight

Attribute

ImageHeight

Identifier

R3IMGLISTGA_ImageHeight

JavaScript type

Integer

C type

R3INT

Description

if 0, size is fetched from the image

Syntax


jsobj.SetImageHeight(value);
value = jsobj.GetImageHeight();


R3INT value = ...;
R3SetAttrs(r3obj, R3IMGLISTGA_ImageHeight, value, R3TAG_END);
R3INT value;
R3GetAttrs(r3obj, R3IMGLISTGA_ImageHeight, &value, R3TAG_END);


r3appobj *