Package envi :: Package memcanvas :: Class MemoryCanvas
[hide private]
[frames] | no frames]

Class MemoryCanvas

source code

Known Subclasses:

A memory canvas is a place where the textual representation of memory will be displayed. The methods implemented here show how a memory canvas which simply prints would be implemented.

Instance Methods [hide private]
 
__init__(self, mem, syms=None) source code
 
_beginRenderAppend(self) source code
 
_beginRenderMemory(self, va, size, rend) source code
 
_beginRenderPrepend(self) source code
 
_beginRenderVa(self, va) source code
 
_beginUpdateVas(self, valist) source code
 
_endRenderAppend(self) source code
 
_endRenderMemory(self, va, size, rend) source code
 
_endRenderPrepend(self) source code
 
_endRenderVa(self, va) source code
 
_endUpdateVas(self) source code
 
_isRendered(self, va, maxva)
Returns true if any part of the current render overlaps with the specified region.
source code
 
addNameText(self, text, name=None, typename=None) source code
 
addRenderer(self, name, rend) source code
 
addText(self, text, tag=None)
Add text to the canvas with a specified tag.
source code
 
addVaText(self, text, va) source code
 
clearCanvas(self) source code
 
getNameTag(self, name, typename=None)
Retrieve a "tag" object for a name.
source code
 
getRenderer(self, name) source code
 
getRendererNames(self) source code
 
getTag(self, typename)
Retrieve a non-named tag (doesn't highlight or do anything particularly special, but allows color by typename).
source code
 
getVaTag(self, va)
Retrieve a tag object suitable for showing that the text added with this tag should link through to the specified virtual address in the memory canvas.
source code
 
render(self, va, size, rend=None) source code
 
renderMemory(self, va, size, rend=None) source code
 
renderMemoryAppend(self, size) source code
 
renderMemoryPrepend(self, size) source code
 
renderMemoryUpdate(self, va, size) source code
 
setNavCallback(self, callback)
Set a navigation "callback" that will be called with a memory expression as it's first argument anytime the canvas recieves user input which desires nav...
source code
 
setRenderer(self, name) source code
 
setScrolledCanvas(self, scroll) source code
 
write(self, msg) source code
Method Details [hide private]

addText(self, text, tag=None)

source code 

Add text to the canvas with a specified tag.

NOTE: Implementors should probably check _canv_scrolled to decide if they should scroll to the end of the view...

getNameTag(self, name, typename=None)

source code 

Retrieve a "tag" object for a name. "Name" tags will (if possible) be highlighted in the rendered interface