I'm porting a C-language kiosk application to a x86 machine, running Ubuntu 16.
I'm using the EFL GUI framework (version 1.20.7) - it is new to me.
I managed to add an icon to a button, but the button still has a frame and the 'pressed' GUI animation.
I want only my custom-button-image to be visible, possibly switching between 2 images: 'pressed' and 'unpressed' (upon matching events, of by configuration... maybe edge???).
I don't mind using any widget (image, etc.), if it has the callbacks for relevant events.
Thanks.
Asked
Active
Viewed 62 times
0

Rami Rosenbaum
- 467
- 5
- 18
1 Answers
0
Rather than using a button object which has a standard theme you could just use an image (evas_object_image_add) and change the image on mouse down/up (evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_DOWN, ...)).
You should note the difference between evas_ and elm_ namespaces - elm (the toolkit) has a standard theme and evas (the render library) is a "blank canvas" :). An Evas Object can be added to the UI just like any other Elm widget.

andy.xyz
- 2,567
- 1
- 13
- 18
-
Would you say it's good/normal practice to mix evas_ and elm_ objects, or does it require fine-tuning and deeper understanding of EFL to not 'fuck-up' something (pardon my French). – Rami Rosenbaum Jun 06 '18 at 18:20
-
Mixing the two is common in situations where you want a custom UI. Using elm alone will give a consistent interface design which is great if that’s what you want. At the end of the day it’s all Evas_Objects. – andy.xyz Jun 06 '18 at 22:51