EFL
view release on metacpan or search on metacpan
t/elementary_test.t view on Meta::CPAN
evas_object_size_hint_weight_set($bb, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set($bb, EVAS_HINT_FILL, EVAS_HINT_FILL);
$av = elm_anchorblock_add($win);
elm_anchorblock_hover_style_set($av, "popout");
elm_anchorblock_hover_parent_set($av, $win);
elm_anchorblock_text_set($av,
"Hey what are you doing? This is the second last message "
. "Hi there. This is the most recent message in the "
. "list. It's a longer one so it can wrap more and "
. "contains a <a href=contact:john>John</a> contact "
. "link in it to test popups on links. The idea is that "
. "all SMS's are scanned for things that look like phone "
. "numbers or names that are in your contacts list, and "
. "if they are, they become clickable links that pop up "
. "a menus of obvious actions to perform on this piece "
. "of information. This of course can be later explicitly "
. "done by links maybe running local apps or even being "
. "web URL's too that launch the web browser and point it "
. "to that URL.");
evas_object_smart_callback_add($av, "anchor,clicked", \&my_anchorblock_anchor, $av);
t/elementary_test.t view on Meta::CPAN
elm_win_resize_object_add($win, $bg);
evas_object_size_hint_weight_set($bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show($bg);
$inwin = elm_win_inwin_add($win);
evas_object_show($inwin);
$lb = elm_label_add($win);
elm_label_label_set($lb,
"This is an \"inwin\" - a window in a<br>"
. "window. This is handy for quick popups<br>"
. "you want centered, taking over the window<br>"
. "until dismissed somehow. Unlike hovers they<br>"
. "don't hover over their target.");
elm_win_inwin_content_set($inwin, $lb);
evas_object_show($lb);
evas_object_resize($win, 320, 240);
evas_object_show($win);
}
t/elementary_test.t view on Meta::CPAN
evas_object_size_hint_weight_set($bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show($bg);
$inwin = elm_win_inwin_add($win);
elm_object_style_set($inwin, "minimal_vertical");
evas_object_show($inwin);
$lb = elm_label_add($win);
elm_label_label_set($lb,
"This is an \"inwin\" - a window in a<br>"
. "window. This is handy for quick popups<br>"
. "you want centered, taking over the window<br>"
. "until dismissed somehow. Unlike hovers they<br>"
. "don't hover over their target.<br>" . "<br>"
. "This inwin style compacts itself vertically<br>"
. "to the size of its contents minimum size.");
elm_win_inwin_content_set($inwin, $lb);
evas_object_show($lb);
evas_object_resize($win, 320, 240);
evas_object_show($win);
( run in 2.076 seconds using v1.01-cache-2.11-cpan-364913b4093 )