Class n.c.Canvas(rend.Page):

Part of nevow.canvas View Source View In Hierarchy

A page which can embed canvases. Simplest usage is to subclass and override width, height and onload. Then, putting render_canvas in the template will output that canvas there.

You can also embed more than one canvas in a page using the canvas helper function, canvas(width, height, onload). The resulting stan will cause a canvas of the given height and width to be embedded in the page at that location, and the given onload callable to be called with a CanvasSocket when the connection is established.

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
439 Method __init__ Undocumented
452 Method child_canvas_socket Undocumented
465 Method render_canvas Undocumented

Inherited from Page:

Line # Kind Name Docs
530 Method renderHTTP Render a request
571 Method rememberStuff Undocumented
575 Method renderString Render this page outside of the context of a web request, returning
595 Method renderSynchronously Render this page synchronously, returning a string result immediately.
615 Method child_ When addSlash is True, a page rendered at a url with no
627 Method webFormPost Accept a web form post, either redisplaying the original form (with
687 Method onPostSuccess Undocumented
695 Method onPostFailure Undocumented

Inherited from Fragment (via Page):

Line # Kind Name Docs
384 Method get Return the data
387 Method rend Turn this instance into stan suitable for displaying it in a web page.
432 Method remember Remember an object for an interface on new PageContexts which are

Inherited from DataFactory (via Page, Fragment):

Line # Kind Name Docs
120 Method child Return a conceptual child; an attribute, or a key,

Inherited from RenderFactory (via Page, Fragment):

Line # Kind Name Docs
60 Method renderer Return a renderer with the given name.

Inherited from MacroFactory (via Page, Fragment):

Line # Kind Name Docs
90 Method macro Return a macro with the given name.

Inherited from ConfigurableMixin (via Page, Fragment):

Line # Kind Name Docs
193 Method getBindingNames Expose bind_* methods and attributes on this class.
200 Method getBinding Massage bind_* methods and attributes into an
223 Method getDefault Get a default value for a given binding. If the
235 Method postForm Accept a form post to the given bindingName.

Inherited from ConfigurableFactory (via Page):

Line # Kind Name Docs
263 Method locateConfigurable formless.webform.renderForms calls locateConfigurable on the IConfigurableFactory
276 Method configurable_ Configurable factory for use when self is a configurable;
302 Method configurable_original Configurable factory for use when self.original is a configurable;

Inherited from ChildLookupMixin (via Page):

Line # Kind Name Docs
456 Method locateChild Locate a child page of this one. ctx is a
497 Method childFactory Used by locateChild to return children which are generated
509 Method putChild Undocumented

Inherited from FreeformChildMixin (via Page, ChildLookupMixin):

Line # Kind Name Docs
168 Method child_freeform_hand Undocumented
Line # Kind Name Docs
439 Method __init__ Undocumented
120 Method child Return a conceptual child; an attribute, or a key,
615 Method child_ When addSlash is True, a page rendered at a url with no
452 Method child_canvas_socket Undocumented
168 Method child_freeform_hand Undocumented
497 Method childFactory Used by locateChild to return children which are generated
276 Method configurable_ Configurable factory for use when self is a configurable;
302 Method configurable_original Configurable factory for use when self.original is a configurable;
384 Method get Return the data
200 Method getBinding Massage bind_* methods and attributes into an
193 Method getBindingNames Expose bind_* methods and attributes on this class.
223 Method getDefault Get a default value for a given binding. If the
456 Method locateChild Locate a child page of this one. ctx is a
263 Method locateConfigurable formless.webform.renderForms calls locateConfigurable on the IConfigurableFactory
90 Method macro Return a macro with the given name.
695 Method onPostFailure Undocumented
687 Method onPostSuccess Undocumented
235 Method postForm Accept a form post to the given bindingName.
509 Method putChild Undocumented
432 Method remember Remember an object for an interface on new PageContexts which are
571 Method rememberStuff Undocumented
387 Method rend Turn this instance into stan suitable for displaying it in a web page.
465 Method render_canvas Undocumented
60 Method renderer Return a renderer with the given name.
530 Method renderHTTP Render a request
575 Method renderString Render this page outside of the context of a web request, returning
595 Method renderSynchronously Render this page synchronously, returning a string result immediately.
627 Method webFormPost Accept a web form post, either redisplaying the original form (with
def __init__(self, original=None, width=None, height=None, onload=None, onMouseMove=None, onMouseDown=None, onMouseUp=None, onKeyDown=None, onKeyUp=None, **kw): (source)
Undocumented
def child_canvas_socket(self, ctx): (source)
Undocumented
def render_canvas(self, ctx, data): (source)
Undocumented
API Documentation for Nevow, generated by pydoctor.