This example shows a bubble with all fields set(label, info, content and icon) and the selected corner changing when the bubble is clicked. To be able use a bubble we need to do some setup and create a window, for this example we are going to ignore that part of the code since it isn't relevant to the bubble.
To have the selected corner change in a clockwise motion we are going to use the following callback:
Here we are creating an elm_label that is going to be used as the content for our bubble:
Despite it's name the bubble's icon doesn't have to be an icon, it can be any evas_object. For this example we are going to make the icon a simple blue rectangle:
And finally we have the actual bubble creation and the setting of it's label, info and content:
Now that we have our bubble all that is left is connecting the "clicked" signals to our callback:
This last bubble we created was very complete, so it's pertinent to show that most of that stuff is optional a bubble can be created with nothing but content:
Our example will look like this:
See the full source code bubble_example_01.c here.