|
|
__init__(self,
size,
buffered)
Return Surface subclassed from a Canvas implementation.
The size argument is the dimension (w,h) of surface. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
preventContextMenu(self,
setting=True)
Control contextmenu event.
Optional bool setting to prevent event, default to True. |
|
|
|
|
resize(self,
width,
height)
Resize surface. |
|
|
|
|
|
|
|
| load_images(self,
images) |
|
|
|
|
| onImagesLoaded(self,
images) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from surface.Surface:
__repr__,
__str__,
blit,
copy,
fill,
getSubimage,
get_at,
get_colorkey,
get_height,
get_offset,
get_parent,
get_rect,
get_size,
get_width,
replace_color,
set_at,
set_colorkey,
subsurface,
toDataURL
Inherited from pyjsobj.HTML5Canvas:
arc,
beginPath,
clear,
closePath,
drawImage,
fillRect,
fillText,
getContext,
getElement,
getImageData,
lineTo,
measureText,
moveTo,
putImageData,
restoreContext,
rotate,
saveContext,
scale,
setFillStyle,
setFont,
setLineWidth,
setStrokeStyle,
setTextAlign,
setTextBaseline,
stroke,
strokeRect,
strokeText,
toBlob,
transform,
translate
Inherited from pyjsobj.FocusElement:
addFocusListener,
addKeyEventListener,
addKeyboardListener,
addMouseListener,
blur,
focus,
onBlur,
onFocus,
onKeyPress,
removeKeyEventListener,
sinkEvents
Inherited from pyjsobj.Element:
addEventListener,
appendChild,
click,
getAttribute,
getAttributes,
getBoundingClientRect,
getClientHeight,
getClientLeft,
getClientTop,
getClientWidth,
getID,
getMouseWheelEventType,
getScrollHeight,
getScrollLeft,
getScrollTop,
getScrollWidth,
getStyle,
getTitle,
removeChild,
removeEventListener,
setAttribute,
setElement,
setHeight,
setID,
setSize,
setTitle,
setWidth,
style
|