C# Class BrightIdeasSoftware.FlagRenderer

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

Méthodes publiques

Méthode Description
Add ( Object key, Object imageSelector ) : void

Register the given image to the given value

Render ( Graphics g, Rectangle r ) : void

Draw the flags

Méthodes protégées

Méthode 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 méthode

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
Résultat void

HandleHitTest() protected méthode

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
Résultat void

Render() public méthode

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