C# Class GrafitiDemo.Calculator

Inheritance: IGestureListener, IPinchable
Show file Open project: nuigroup/grafiti Class Usage Examples

Public Properties

Property Type Description
DECIMAL_SEPARATOR string

Public Methods

Method Description
Calculator ( ) : System
Draw ( ) : void
GetPinchReference ( float &x, float &y, float &size, float &rotation ) : void
GetTargetAt ( float x, float y, IGestureListener &zGestureListener, object &zControl ) : void
OnPinch ( object obj, GestureEventArgs args ) : void

Private Methods

Method Description
ProcessDigit ( int digit ) : void
ProcessItem ( Items item, bool hover ) : void
ProcessNonDigit ( Items item, bool hover ) : void
PushOperand ( ) : void
Reset ( ) : void

Method Details

Calculator() public method

public Calculator ( ) : System
return System

Draw() public method

public Draw ( ) : void
return void

GetPinchReference() public method

public GetPinchReference ( float &x, float &y, float &size, float &rotation ) : void
x float
y float
size float
rotation float
return void

GetTargetAt() public method

public GetTargetAt ( float x, float y, IGestureListener &zGestureListener, object &zControl ) : void
x float
y float
zGestureListener IGestureListener
zControl object
return void

OnPinch() public method

public OnPinch ( object obj, GestureEventArgs args ) : void
obj object
args Grafiti.GestureEventArgs
return void

Property Details

DECIMAL_SEPARATOR public static property

public static string DECIMAL_SEPARATOR
return string