r3timeg

r3timeg

Class

real/gadget/r3timeg.h

Library

r3gad

Description:

Time gadget

See Also

oops/r3gadget.h

Super Class

r3Gadget

R3CLID_GADGET

JavaScript

r3Timegadget

Class Identifier

R3CLID_TIMEGADGET - 1355

Methods

Attributes

Seconds, UnitConverter, ZeroBasedFrameIndex, Animator, Relative,

Registration

int R3RegisterTimeGadgetClass(R3APP *app);

Seconds

Attribute

Seconds

Identifier

R3TIMEGA_Seconds

JavaScript type

Number

C type

R3FLOAT

Description

seconds

Syntax


jsobj.SetSeconds(value);
value = jsobj.GetSeconds();


R3FLOAT value = ...;
R3SetAttrs(r3obj, R3TIMEGA_Seconds, value, R3TAG_END);
R3FLOAT value;
R3GetAttrs(r3obj, R3TIMEGA_Seconds, &value, R3TAG_END);

UnitConverter

Attribute

UnitConverter

Identifier

R3TIMEGA_UnitConverter

JavaScript type

Object

C type

R3OBJ*

Description

Syntax


jsobj.SetUnitConverter(value);


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

ZeroBasedFrameIndex

Attribute

ZeroBasedFrameIndex

Identifier

R3TIMEGA_ZeroBasedFrameIndex

JavaScript type

Boolean

C type

R3BOOL

Description

Syntax


jsobj.SetZeroBasedFrameIndex(value);


R3BOOL value = ...;
R3SetAttrs(r3obj, R3TIMEGA_ZeroBasedFrameIndex, value, R3TAG_END);

Animator

Attribute

Animator

Identifier

R3TIMEGA_Animator

JavaScript type

Object

C type

R3OBJ*

Description

Syntax


jsobj.SetAnimator(value);


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

Relative

Attribute

Relative

Identifier

R3TIMEGA_Relative

JavaScript type

Boolean

C type

R3BOOL

Description

true if the gadget defines relative value

Syntax


jsobj.SetRelative(value);


R3BOOL value = ...;
R3SetAttrs(r3obj, R3TIMEGA_Relative, value, R3TAG_END);