C# Class Reko.Gui.Windows.Controls.MemoryControl.MemoryControlPainter

Exibir arquivo Open project: uxmal/reko

Public Methods

Method Description
MemoryControlPainter ( MemoryControl ctrl ) : Reko
PaintWindow ( Graphics g, Size cellSize, Point ptAddr, bool render ) : Address

Paints the control's window area. Strategy is to find the spans that make up the whole segment, and paint them one at a time.

Private Methods

Method Description
GetBrushTheme ( ImageMapItem item, bool selected ) : BrushTheme
GetColorPreferences ( ) : void
PaintLine ( Graphics g, Rectangle rc, Reko.Core.ImageReader rdr, Point ptAddr, bool render ) : Address

Paints a line of the memory control, starting with the address.

The strategy is to find any items present at the current address, and try to paint as many adjacent items as possible.

RenderCode ( byte bytes ) : string

Method Details

MemoryControlPainter() public method

public MemoryControlPainter ( MemoryControl ctrl ) : Reko
ctrl MemoryControl
return Reko

PaintWindow() public method

Paints the control's window area. Strategy is to find the spans that make up the whole segment, and paint them one at a time.
public PaintWindow ( Graphics g, Size cellSize, Point ptAddr, bool render ) : Address
g System.Drawing.Graphics
cellSize System.Drawing.Size
ptAddr Point
render bool
return Address