|
__init__(self)
Initialize Display module. |
|
|
|
init(self)
Initialize display. |
|
|
|
set_mode(self,
size,
buffered=True,
*args,
**kwargs)
Setup the display Surface.
Argument include size (x,y) of surface and optional buffered surface.
Return a reference to the display Surface. |
|
|
|
setup(self,
callback,
images=None)
Initialize Canvas for script execution.
Argument include callback function to run and optional images list to preload.
Callback function can also be an object with a run method to call.
The images can be image URL, or file-like object or base64 data in format (name.ext,data). |
|
|
|
set_callback(self,
callback)
Set Canvas callback function.
Argument callback function to run.
Callback function can also be an object with a run method to call. |
|
|
|
setup_images(self,
images)
Add images to image preload list.
The argument is an image or list of images representing an image URL, or file-like object or base64 data in format (name.ext,data).
Image preloading occurs at display.setup call. |
|
|
|
textbox_init(self)
Initiate textbox functionality and creates instances of pyjsdl.display.textbox and pyjsdl.display.textarea placed in lower VerticalPanel. |
|
|
|
is_canvas(self)
Check whether browser has HTML5 Canvas. |
|
|
|
get_surface(self)
Return display Surface. |
|
|
|
get_canvas(self)
Return Canvas. |
|
|
|
get_panel(self)
Return Panel. |
|
|
|
get_vpanel(self)
Return VerticalPanel positioned under Panel holding Canvas. |
|
|
|
getAbsoluteLeft(self)
Return canvas left-offset position. |
|
|
|
getAbsoluteTop(self)
Return canvas top-offset position. |
|
|
|
getScrollLeft(self)
Return page horizontal scroll offset. |
|
|
|
getScrollTop(self)
Return page vertical scroll offset. |
|
|
|
quit(self)
Uninitialize display. |
|
|
|
get_init(self)
Check that display module is initialized. |
|
|
|
get_active(self)
Check if display is visible. |
|
|
|
set_caption(self,
text)
Set Canvas element id.
Argument is the id text. |
|
|
|
get_caption(self)
Get Canvas element id. |
|
|
|
flip(self)
Repaint display. |
|
|
|
update(self,
rect_list=None)
Repaint display.
Optional rect or rect list to specify regions to repaint. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|