C# Класс Paint.HorizontalGauge

Horizontal gauge.
Наследование: Gauge
Показать файл Открыть проект

Открытые методы

Метод Описание
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