int main (int argc, char *argv[]) { ClutterActor *stage = NULL; Data data1, data2,data3; guint id_2 = 0; g_set_application_name ("AtkText"); if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) return 1; if (cally_util_a11y_init (&argc, &argv) == FALSE) { g_error ("This example requires the accessibility support, " "especifically AtkUtil implementation loaded, " "as it tries to register and remove event listeners"); } data1.value = 10; data2.value = 20; data3.value = 30; /* key event listeners */ atk_add_key_event_listener ((AtkKeySnoopFunc)atk_key_listener, &data1); id_2 = atk_add_key_event_listener ((AtkKeySnoopFunc)atk_key_listener, &data2); atk_add_key_event_listener ((AtkKeySnoopFunc)atk_key_listener, &data3); atk_remove_key_event_listener (id_2); /* event listeners */ atk_add_global_event_listener (window_event_listener, "window:create"); atk_add_global_event_listener (window_event_listener, "window:destroy"); atk_add_global_event_listener (window_event_listener, "window:activate"); atk_add_global_event_listener (window_event_listener, "window:deactivate"); stage = clutter_stage_get_default (); make_ui (stage); clutter_actor_show_all (stage); if (clutter_feature_available (CLUTTER_FEATURE_STAGE_MULTIPLE)) { stage = clutter_stage_new (); make_ui (stage); clutter_actor_show_all (stage); } clutter_main (); return 0; }
int main (int argc, char *argv[]) { ClutterActor *stage = NULL; g_set_application_name ("AtkEditableText"); if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) return 1; cally_util_a11y_init (&argc, &argv); stage = clutter_stage_new (); g_signal_connect (stage, "destroy", G_CALLBACK (clutter_main_quit), NULL); make_ui (stage); clutter_actor_show_all (stage); test_atk_text (text_actor); test_atk_text (text_editable_actor); clutter_main (); return 0; }
int main (int argc, char *argv[]) { ClutterActor *stage = NULL; Data data1, data2,data3; guint id_2 = 0; g_set_application_name ("AtkText"); if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) return 1; cally_util_a11y_init (&argc, &argv); data1.value = 10; data2.value = 20; data3.value = 30; /* key event listeners */ atk_add_key_event_listener ((AtkKeySnoopFunc)atk_key_listener, &data1); id_2 = atk_add_key_event_listener ((AtkKeySnoopFunc)atk_key_listener, &data2); atk_add_key_event_listener ((AtkKeySnoopFunc)atk_key_listener, &data3); atk_remove_key_event_listener (id_2); /* event listeners */ atk_add_global_event_listener (window_event_listener, "window:create"); atk_add_global_event_listener (window_event_listener, "window:destroy"); atk_add_global_event_listener (window_event_listener, "window:activate"); atk_add_global_event_listener (window_event_listener, "window:deactivate"); stage = clutter_stage_get_default (); make_ui (stage); clutter_actor_show_all (stage); if (clutter_feature_available (CLUTTER_FEATURE_STAGE_MULTIPLE)) { stage = clutter_stage_new (); make_ui (stage); clutter_actor_show_all (stage); } clutter_main (); return 0; }
int main (int argc, char *argv[]) { ClutterActor *stage = NULL; g_set_application_name ("Clone Example"); clutter_init (&argc, &argv); cally_util_a11y_init (&argc, &argv); stage = clutter_stage_get_default (); make_ui (stage); clutter_actor_show_all (stage); clutter_main (); return 0; }
int main (int argc, char *argv[]) { ClutterActor *stage; ClutterColor stage_color = { 0x0, 0x0, 0x0, 0xff }; App *app; clutter_init (&argc, &argv); ALPHA_SINE = clutter_alpha_register_func (alpha_sine_func, NULL); clutter_interval_register_progress_func (G_TYPE_BOOLEAN, boolean_progress); app = g_new0(App, 1); stage = clutter_stage_get_default (); clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color); clutter_actor_set_size (stage, CSW, CSH); make_ui (app); clutter_group_add (CLUTTER_GROUP(stage), app->screen_dial); clutter_group_add (CLUTTER_GROUP(stage), app->screen_dialpad); clutter_actor_hide_all (app->screen_dial); clutter_actor_show_all (stage); g_signal_connect (stage, "event", G_CALLBACK (on_input), app); printf("\n..Press '*' to dial..\n\n"); clutter_main (); return 0; }
int main (int argc, char *argv[]) { ClutterActor *stage = NULL; g_set_application_name ("AtkEditableText"); clutter_init (&argc, &argv); cally_util_a11y_init (&argc, &argv); stage = clutter_stage_get_default (); make_ui (stage); clutter_actor_show_all (stage); test_atk_text (text_actor); test_atk_text (text_editable_actor); clutter_main (); return 0; }