We can create an icon and set it as a âHomeâ standard icon.
Evas_Object *icon = elm_icon_add(parent); elm_icon_standard_set(icon, "Home");
Default images provided by Elementary's default theme are described below.
standard (since 1.13) | toolbar | menu | media player |
---|---|---|---|
âfolderâ | âhomeâ | âmenu/homeâ | âmedia_player/forwardâ |
âuser-homeâ | âcloseâ | âmenu/closeâ | âmedia_player/infoâ |
âuser-trashâ | âappsâ | âmenu/appsâ | âmedia_player/nextâ |
âview-closeâ | âarrow_upâ | âmenu/arrow_upâ | âmedia_player/pauseâ |
âview-refreshâ | âarrow_downâ | âmenu/arrow_downâ | âmedia_player/playâ |
âwindow-closeâ | âarrow_leftâ | âmenu/arrow_leftâ | âmedia_player/prevâ |
âdocument-closeâ | âarrow_rightâ | âmenu/arrow_rightâ | âmedia_player/rewindâ |
âdocument-editâ | âchatâ | âmenu/chatâ | âmedia_player/stopâ |
âdialog-infoâ | âclockâ | âmenu/clockâ | |
âdialog-closeâ | âdeleteâ | âmenu/deleteâ | |
âarrow-upâ | âeditâ | âmenu/editâ | |
âarrow-downâ | ârefreshâ | âmenu/refreshâ | |
âarrow-leftâ | âfolderâ | âmenu/folderâ | |
âarrow-rightâ | âfileâ | âmenu/fileâ | |
âarrow-up-leftâ | |||
âarrow-up-rightâ | |||
âarrow-down-leftâ | |||
âarrow-down-rightâ | |||
âedit-deleteâ | |||
âapplication-chatâ | |||
âapplication-clockâ | |||
âmedia-seek-forwardâ | |||
âmedia-seek-backwardâ | |||
âmedia-skip-forwardâ | |||
âmedia-skip-backwardâ | |||
âmedia-playback-pauseâ | |||
âmedia-playback-startâ | |||
âmedia-playback-stopâ | |||
âmedia-ejectâ | |||
âaudio-volumeâ | |||
âaudio-volume-mutedâ |
We can change the image by using an image in the filesystem (for example, /tmp/Home.png),
elm_image_file_set(icon, "/tmp/Home.png", NULL);
or a group in an Edje file (for example, /tmp/Home.edj).
elm_image_file_set(icon, "/tmp/Home.edj", "elm/icon/Home/default");
A thumbnail can be generated and cached for future use. (For this, you need the Ethumb library support.)
elm_icon_thumb_set(icon, "/tmp/Home.png", NULL);
This function sets the file in the icon and enables the use of a cached thumbnail if it already exists. Otherwise, it creates a new thumbnail and caches it for future use.
The icon widget emits the following signals:
âthumb,doneâ
- elm_icon_thumb_set() is completed with success.âthumb,errorâ
- elm_icon_thumb_set() fails.In both cases, event_info is NULL;