Last modified: 2013-3-2
Class JitterGUIElement
JitterGUIUtils -- classes for managing 3D UI objects.
subclass this to make a UI object.
Constructor Attributes | Constructor Name and Description |
---|---|
JitterGUIElement(mobj)
subclass this to make a UI object.
|
Field Attributes | Field Name and Description |
---|---|
JitterObject jit.gl.sketch | |
Array | |
set true to get events even if we are behind another object
|
|
Float | |
Array |
Method Attributes | Method Name and Description |
---|---|
void |
drawto(destination)
|
free()
free our jitter object.
|
|
get_intersect(raystart, rayend, p1)
return the intersection of the unit quad in world space
with the line defined by raystart and rayend.
|
|
abstract void |
handle_event(event)
handle a UI event.
|
init(destination)
set the drawing destination.
|
|
set_attr_args(args)
parse jitter-style js arguments.
|
|
adding the unique_index property allows one js instance
to own multiple JitterGUIElements
|
|
void |
update()
|
Class Detail
JitterGUIElement
(mobj)
subclass this to make a UI object. JitterGUIElement constructor. called with the max object which
is making us, so that we can get rid of duplicate objects.
- Example:
//TODO
- Parameters:
- mobj
Field Detail
delete_me
- Example:
//TODO
destination
- Example:
//TODO
frontmost
- Example:
//TODO
highlight
- Example:
//TODO
intersect
- Example:
//TODO
{JitterObject jit.gl.sketch}
jitterobj
- Example:
//TODO
{Array}
localint
- Example:
//TODO
maxobj
stilldown
- Example:
//TODO
unblockable
set true to get events even if we are behind another object
- Example:
//TODO
unique_index
- Example:
//TODO
{Float}
val
- Example:
//TODO
was_frontmost
- Example:
//TODO
{Array}
worldint
- Example:
//TODO
Method Detail
{void}
drawto
(destination)- Example:
//TODO
- Parameters:
- destination
free
()
free our jitter object. called by notifydeleted() function in js.
- Example:
//TODO
get_intersect
(raystart, rayend, p1)
return the intersection of the unit quad in world space
with the line defined by raystart and rayend. pass intersect in world coordinates
back to the caller in p1. stores local and world intersections locally.
- Example:
//TODO
- Parameters:
- raystart
- rayend
- p1
{abstract void}
handle_event
(event)
handle a UI event.
- Example:
//TODO
- Parameters:
- event
init
(destination)
set the drawing destination.
- Example:
//TODO
- Parameters:
- destination
set_attr_args
(args)
parse jitter-style js arguments.
if attr name is a property of JitterGUIElement, set the property.
otherwise set attribute of our jitter object.
- Example:
//TODO
- Parameters:
- args
set_unique_index
(k)
adding the unique_index property allows one js instance
to own multiple JitterGUIElements
- Example:
//TODO
- Parameters:
- k
{void}
update
()- Example:
//TODO