Class n.c.CanvasSocket(GroupBase):

Part of nevow.canvas View Source View In Hierarchy

Implements interfaces: nevow.inevow.IResource

An object which represents the client-side canvas. Defines APIs for drawing on the canvas. An instance of this class will be passed to your onload callback.

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
295 Method __init__ Undocumented
299 Method locateChild Locate another object which can be adapted to IResource
303 Method renderHTTP Render a request
319 Method dataReceived Undocumented
327 Method gotMessage Undocumented
336 Method connectionLost Undocumented
340 Method done Done drawing; close the connection with the movie
347 Method handle_onKeyDown Undocumented
351 Method handle_onKeyUp Undocumented
355 Method handle_onMouseUp Undocumented
359 Method handle_onMouseDown Undocumented
363 Method handle_onMouseMove Undocumented
367 Method handle_diagnostic Undocumented

Inherited from GroupBase:

Line # Kind Name Docs
105 Method call Call a client-side method with the given arguments. Arguments
117 Method reposition Reposition all the elements in this group
124 Method rotate Rotate all the elements of this group
130 Method alpha Set the alpha value of this group
136 Method line Draw a line from the current point to the given point.
145 Method move Move the pen to the given point.
154 Method pen Change the current pen attributes.
163 Method clear Clear the current pen attributes.
168 Method fill Set the current fill. Fill will not be drawn until close is called.
176 Method close Close the current shape. A line will be drawn from the end point
182 Method curve Draw a curve
187 Method gradient Draw a gradient. Currently the API for this sucks, see the flash documentation
198 Method text Place the given text on the canvas using the given x, y, height and width.
208 Method image Load an image from the URL "where". The result is an Image object which
218 Method sound Load an mp3 from the URL "where". The result is a Sound object which
229 Method group Create a new group of shapes. The returned object will
Line # Kind Name Docs
295 Method __init__ Undocumented
130 Method alpha Set the alpha value of this group
105 Method call Call a client-side method with the given arguments. Arguments
163 Method clear Clear the current pen attributes.
176 Method close Close the current shape. A line will be drawn from the end point
336 Method connectionLost Undocumented
182 Method curve Draw a curve
319 Method dataReceived Undocumented
340 Method done Done drawing; close the connection with the movie
168 Method fill Set the current fill. Fill will not be drawn until close is called.
327 Method gotMessage Undocumented
187 Method gradient Draw a gradient. Currently the API for this sucks, see the flash documentation
229 Method group Create a new group of shapes. The returned object will
367 Method handle_diagnostic Undocumented
347 Method handle_onKeyDown Undocumented
351 Method handle_onKeyUp Undocumented
359 Method handle_onMouseDown Undocumented
363 Method handle_onMouseMove Undocumented
355 Method handle_onMouseUp Undocumented
208 Method image Load an image from the URL "where". The result is an Image object which
136 Method line Draw a line from the current point to the given point.
299 Method locateChild Locate another object which can be adapted to IResource
145 Method move Move the pen to the given point.
154 Method pen Change the current pen attributes.
303 Method renderHTTP Render a request
117 Method reposition Reposition all the elements in this group
124 Method rotate Rotate all the elements of this group
218 Method sound Load an mp3 from the URL "where". The result is a Sound object which
198 Method text Place the given text on the canvas using the given x, y, height and width.
def __init__(self): (source)
Undocumented
def locateChild(self, ctx, segs): (source)
Locate another object which can be adapted to IResource Return a tuple of resource, path segments
def renderHTTP(self, ctx): (source)
Render a request
def dataReceived(self, data): (source)
Undocumented
def gotMessage(self, message): (source)
Undocumented
def connectionLost(self, reason): (source)
Undocumented
def done(self): (source)
Done drawing; close the connection with the movie
def handle_onKeyDown(self, info): (source)
Undocumented
def handle_onKeyUp(self, info): (source)
Undocumented
def handle_onMouseUp(self, info): (source)
Undocumented
def handle_onMouseDown(self, info): (source)
Undocumented
def handle_onMouseMove(self, info): (source)
Undocumented
def handle_diagnostic(self, info): (source)
Undocumented
API Documentation for Nevow, generated by pydoctor.