TouchCalibrateView

class

Touch Calibration View, that calibrates the touch system.

This calibration is stored in Mono persistent settings storage ISettings. If there already exists a calibration, then this calibration will be loaded and the setCalibrationDoneCallback handler will be called immediately after the call to show.

Public Functions

TouchCalibrateView::TouchCalibrateView()

Construct a CalibrationView that takes the whole display.

TouchCalibrateView::TouchCalibrateView(geo::Rect viewRct)

Construct a CalibrationView inside a given rectangle.

Parameters
  • viewRct -

    The rectangle on the display, where the view the shown

void TouchCalibrateView::StartNewCalibration()

Trigger a new calibration of the touch.

This will force at new calibration to be done. The Calibration will take over the touch input and screen and run its calibration routine.

virtual void TouchCalibrateView::show()

Shows (repaints) the view and insert into the responder chain.

See
View::show

virtual void TouchCalibrateView::respondTouchBegin(TouchEvent &event)

Internal touch handler, you should not overwrite this

Protected Functions

virtual void TouchCalibrateView::repaint()

Repaint the view content, using the View::painter.

Re-paint the view content. This method should be called when the view content has changed. You can call this method directly, but it might cause graphics artifacts because the display is not double buffered. Instead you should schedule a repaint by calling the scheduleRepaint() method. This method will schedule the repaint, right after the next display update.

The display system will not schedule any repaints automatically. The view does not contain any state information, so you or other classes utilizing view must schedule repaints.

In subclasses of View, this method must be overwritten.