// examples/button.rs use efl::elementary::{ button_add, init, object_text_set, policy_set, run, shutdown, win_autodel_set, win_resize_object_add, win_util_standard_add, POLICY_QUIT, POLICY_QUIT_LAST_WINDOW_CLOSED, }; use efl::evas::{object_resize, object_show, Evas_Object}; fn main() { init(); let win: *mut Evas_Object = win_util_standard_add("Main", "Button Example"); policy_set(POLICY_QUIT, POLICY_QUIT_LAST_WINDOW_CLOSED); win_autodel_set(win, true); object_resize(win, 800, 600); let btn: *mut Evas_Object = button_add(win); object_text_set(btn, "Click Me!"); win_resize_object_add(win, btn); object_show(win); object_show(btn); run(); shutdown(); }