C# Class BrightIdeasSoftware.FlagRenderer

A class to render a value that contains a bitwise-OR'ed collection of values.
Inheritance: BaseRenderer
Exibir arquivo Open project: soywiz/cspspemu

Public Methods

Method Description
Add ( Object key, Object imageSelector ) : void

Register the given image to the given value

Render ( Graphics g, Rectangle r ) : void

Draw the flags

Protected Methods

Method Description
HandleHitTest ( Graphics g, BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void

Do the actual work of hit testing. Subclasses should override this rather than HitTest()

Method Details

Add() public method

Register the given image to the given value
public Add ( Object key, Object imageSelector ) : void
key Object When this flag is present...
imageSelector Object ...draw this image
return void

HandleHitTest() protected method

Do the actual work of hit testing. Subclasses should override this rather than HitTest()
protected HandleHitTest ( Graphics g, BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void
g System.Drawing.Graphics
hti BrightIdeasSoftware.OlvListViewHitTestInfo
x int
y int
return void

Render() public method

Draw the flags
public Render ( Graphics g, Rectangle r ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
return void