Class Index | File Index

Classes


Class Dialog


Extends Frame.
a centered dialog position at the top of the GUI. disables and grays out rest of the guy
Defined in: gamejs-gui.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Dialog(parent, constrain, size, position, surface, visible)
Fields borrowed from class Frame:
constrain
Fields borrowed from class View:
children, parent, position, size, surface
Method Summary
Method Attributes Method Name and Description
 
unlock gui & hide dialog
 
show()
lock GUI & show dialog
Methods borrowed from class Frame:
destroy, move, paint
Methods borrowed from class View:
addChild, blitChild, center, despatchEvent, draw, getGUI, getPosition, getRect, getSize, hide, isFocused, isHovered, isVisible, moveRelative, on, refresh, removeChild, resize, update
Class Detail
Dialog(parent, constrain, size, position, surface, visible)
Parameters:
{GUI} parent
parent GUI object
{Bool} constrain
if true, frame cannot be moved out of visible area
{Array} size
array containing width & height of the element, eg. [width, height]
{Array} position
position of the view relative to parent, eg. [x, y]. OPTIONAL, default [0, 0]
{gamejs.Surface} surface
surface to render this view on, OPTIONAL
{Bool} visible
is this view visible? default true
Method Detail
close()
unlock gui & hide dialog

show()
lock GUI & show dialog

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Aug 15 2011 16:17:32 GMT+0300 (EEST)