언어 설정

Menu
Sites
Language
Connect Cairo and UI

Suppose, I want to show some figure, that'll be drawing by Cairo after button clicking. So, when I start my app I need to create UI with button and add clicked event handler, that'll start drawing. What is the right way to destroy UI and start drawing?

Please, help :)

Edited by: Illia Lysenko on 08 2월, 2016

Responses

2 댓글
AVSukhov

Hello,

You can add button and callback using following example:

https://developer.tizen.org/community/code-snippet/native-code-snippet/create-simple-button-efl-specified-action

After clicking you can hide this button using evas_object_hide (Evas_Object *obj) method and start drawing:

https://developer.tizen.org/development/guides/native-application/graphics/cairo?langredirect=1

 

Alex Dem

Hi,
If you plan to use this button after: you could hide button (as proposed above) with evas_object_hide and show it again with evas_object_show. Registered "clicked" smart callback will be stored in this case.
Also you could delete button with evas_object_del at all.
Alexey.