Question

I just started my adventure with Tizen.

I would like to draw on canvas with my finger, but I can't find an example on how to do this in internet (personally I hate c++). Do you know any good tutorial on how to do this in native application? I managed to do that using javascript (web app) but I would like to know how to do this using c++.

Was it helpful?

Solution

There's a sample application called MutipointTouch included with the SDK (in platforms\tizen2.1\samples\native\cpp\Sample\Tizen Native\MultipointTouch) which does what you're asking for. There's also a brief tutorial at the Tizen website which explains parts of the MultipointTouch application.

In essence, your Form will need to inherit from Tizen::Ui::ITouchEventListener and implement the touch event methods, like OnTouchPressed and OnTouchMoved. In those methods you could, for example, perform draw commands on a Tizen::Graphics::Canvas (which they show how to do in the MultipointTouch app).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top