blob: 399c080bbcf312d9fca48758d78bd57065b9f30e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include <Elementary.hh>
EAPI_MAIN int
elm_main (int argc, char *argv[])
{
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
::elm::win win(elm_win_util_standard_add("icon", "Icon"));
win.autohide_set(true);
::elm::icon icon(efl::eo::parent = win);
icon.order_lookup_set(ELM_ICON_LOOKUP_THEME_FDO);
icon.standard_set("home");
const char *path, *group;
icon.file_get(&path, &group);
std::cout << "path = " << path << ", group = "<< group;
efl::eina::optional<std::string> name;
name = icon.standard_get();
std::cout << ", name = " << *name << std::endl;
icon.no_scale_set(true);
icon.resizable_set(false, true);
icon.smooth_set(false);
icon.fill_outside_set(true);
icon.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
win.resize_object_add(icon);
icon.visible_set(true);
win.size_set(320, 320);
win.visible_set(true);
elm_run();
return 0;
}
ELM_MAIN()
|