big click me to drag text object

SVN revision: 3196
This commit is contained in:
Carsten Haitzler 2000-08-20 22:05:46 +00:00
parent e37fccc450
commit 69125b70ea
1 changed files with 12 additions and 1 deletions

View File

@ -75,7 +75,7 @@ main(int argc, char **argv)
int win_w, win_h;
int i, a, w, h;
Evas e;
Evas_Object o[128], o_rect, o_line, o_grad, o_fps;
Evas_Object o[128], o_rect, o_line, o_grad, o_fps, o_text;
Evas_Gradient grad;
int down;
double t1, t2;
@ -199,6 +199,17 @@ main(int argc, char **argv)
evas_callback_add(e, o_grad, CALLBACK_MOUSE_IN, mouse_in, NULL);
evas_callback_add(e, o_grad, CALLBACK_MOUSE_OUT, mouse_out, NULL);
o_text = evas_add_text(e, "grunge", 24, "Click and Drag Objects...");
evas_set_color(e, o_text, 0, 0, 0, 160);
evas_move(e, o_text, 30, 60);
evas_show(e, o_text);
evas_set_layer(e, o_text, 200);
evas_callback_add(e, o_text, CALLBACK_MOUSE_DOWN, mouse_down, NULL);
evas_callback_add(e, o_text, CALLBACK_MOUSE_UP, mouse_up, NULL);
evas_callback_add(e, o_text, CALLBACK_MOUSE_MOVE, mouse_move, NULL);
evas_callback_add(e, o_text, CALLBACK_MOUSE_IN, mouse_in, NULL);
evas_callback_add(e, o_text, CALLBACK_MOUSE_OUT, mouse_out, NULL);
o_fps = evas_add_text(e, "morpheus", 16, "FPS...");
evas_set_color(e, o_fps, 255, 255, 255, 120);
evas_move(e, o_fps, win_w, win_h);