C# 클래스 Paint.HorizontalGauge

Horizontal gauge.
상속: Gauge
파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint

공개 메소드들

메소드 설명
HandleTouch ( float xPosition ) : void

Handles a particular touch/gesture made by the user

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

Initializes a new instance of the Paint.HorizontalGauge 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

HandleTouch ( ITouchPoint touch ) : void

Handles a particular touch/gesture made by the user

비공개 메소드들

메소드 설명
BoundedX ( int xPosition ) : int

Ensures the specified x co-ordinate is inside the bounds of the gauage

메소드 상세

CreateGaugeRectangle() 보호된 메소드

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

CreateMarkerRectangle() 보호된 메소드

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

HandleTouch() 보호된 메소드

Handles a particular touch/gesture made by the user
protected HandleTouch ( ITouchPoint touch ) : void
touch ITouchPoint /// The position and type of gesture/touch made ///
리턴 void

HandleTouch() 공개 메소드

Handles a particular touch/gesture made by the user
public HandleTouch ( float xPosition ) : void
xPosition float /// The x-position of the touch /// (This is all we are interested in) ///
리턴 void

HorizontalGauge() 공개 메소드

Initializes a new instance of the Paint.HorizontalGauge class.
public HorizontalGauge ( 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