C# 클래스 Paint.Gauge

Abstract Base class for all types of Guage
상속: ToolBoxToolTouchBase, IGauge
파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
CurrentMarker float
GaugeColor Color
MarkerWidth int
PreviousMarker float

공개 메소드들

메소드 설명
Draw ( bool refreshDisplay ) : void

Draw the gauge.

Gauge ( Color backgroundColor, IGraphicsDisplay graphicsDisplay, Rectangle bounds, int markerWidth, Color gaugeColor, float startMarker ) : System

Initializes a new instance of the Paint.Gauge class.

보호된 메소드들

메소드 설명
CreateGaugeRectangle ( ) : Rectangle

Simply creates a rectangle that defines the location and size of the gauge

CreateMarkerRectangle ( ) : Rectangle

Creates a rectangle that defines the location and size of the marker

OnMarkerChanged ( EventArgs e ) : void

Raises the marker changed event.

메소드 상세

CreateGaugeRectangle() 보호된 추상적인 메소드

Simply creates a rectangle that defines the location and size of the gauge
protected abstract CreateGaugeRectangle ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

CreateMarkerRectangle() 보호된 추상적인 메소드

Creates a rectangle that defines the location and size of the marker
protected abstract CreateMarkerRectangle ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

Draw() 공개 메소드

Draw the gauge.
public Draw ( bool refreshDisplay ) : void
refreshDisplay bool /// True = we should completely redraw the gauge /// False = we should just draw the regions that have changed since we last drew the gauge ///
리턴 void

Gauge() 공개 메소드

Initializes a new instance of the Paint.Gauge class.
public Gauge ( Color backgroundColor, IGraphicsDisplay graphicsDisplay, Rectangle bounds, int markerWidth, Color gaugeColor, float startMarker ) : System
backgroundColor Color
graphicsDisplay IGraphicsDisplay
bounds Microsoft.Xna.Framework.Rectangle
markerWidth int
gaugeColor Color
startMarker float
리턴 System

OnMarkerChanged() 보호된 메소드

Raises the marker changed event.
protected OnMarkerChanged ( EventArgs e ) : void
e System.EventArgs /// Any relevant EventArgs - should be EventArgs.Empty ///
리턴 void

프로퍼티 상세

CurrentMarker 보호되어 있는 프로퍼티

The current position/value of the marker.
protected float CurrentMarker
리턴 float

GaugeColor 보호되어 있는 프로퍼티

The color of the gauge.
protected Color GaugeColor
리턴 Color

MarkerWidth 보호되어 있는 프로퍼티

The size of the marker.
protected int MarkerWidth
리턴 int

PreviousMarker 보호되어 있는 프로퍼티

The previous position/value of the marker.
protected float PreviousMarker
리턴 float