C# 클래스 BrightIdeasSoftware.FlagRenderer

A class to render a value that contains a bitwise-OR'ed collection of values.
상속: BaseRenderer
파일 보기 프로젝트 열기: soywiz/cspspemu

공개 메소드들

메소드 설명
Add ( Object key, Object imageSelector ) : void

Register the given image to the given value

Render ( Graphics g, Rectangle r ) : void

Draw the flags

보호된 메소드들

메소드 설명
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()

메소드 상세

Add() 공개 메소드

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
리턴 void

HandleHitTest() 보호된 메소드

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
리턴 void

Render() 공개 메소드

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