Displaying 4 results from an estimated 4 matches for "mouse_event".
Did you mean:
mouse_events
2007 Jan 03
0
[821] trunk/wxruby2/doc/textile/texturlevent.txtl: Added info on undocumented TextUrlEVent class
...ion into, within and out of the URL area will trigger the
+handler. While this adds flexibility, it also means that you will probably
+need to determine what mouse action was taken to decide how to respond
+to the event.
+
+This can be done by calling the
+"TextUrlEvent#getmouseevent":get_mouse_event method and using the
+methods defined for "MouseEvent":mouseevent.html to determine whether
+the event was a mouse click, which button was clicked, and so on:
+
+ mouse_event = event.get_mouse_event
+ if mouse_event.left_down
+ # ...
+ end
+
+
+<div id="methods">
+
+h2....
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...olean e
/* check for movies in a higher layer that react to events */
SwfdecMovie *ret;
ret = SWFDEC_MOVIE_CLASS (swfdec_button_movie_parent_class)->contains (movie, x, y, TRUE);
- if (ret && ret != movie)
+ if (ret && ret != movie && swfdec_movie_get_mouse_events (ret))
return ret;
}
commit a3f0a1265a9d5b4164c7a16645952c5333d85123
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Nov 28 11:51:15 2007 +0100
implement contains()
diff --git a/libswfdec/swfdec_button_movie.c b/libswfdec/swfdec_button_movie.c
index 3ceae26..0a8a50c...
2007 Dec 10
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_color_as.c libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_as_drawing.c
...T, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
movie_class->render = swfdec_movie_do_render;
+ movie_class->invalidate = swfdec_movie_do_invalidate;
movie_class->contains = swfdec_movie_do_contains;
movie_class->iterate_end = swfdec_movie_iterate_end;
movie_class->mouse_events = swfdec_movie_mouse_events;
@@ -1404,7 +1476,7 @@ swfdec_movie_set_depth (SwfdecMovie *movie, int depth)
if (movie->depth == depth)
return;
- swfdec_movie_invalidate (movie);
+ swfdec_movie_invalidate_last (movie);
movie->depth = depth;
if (movie->parent) {
movie-&...
2007 Dec 18
2
Changes to 'refs/tags/0.5.5'
...use_pressed() macro for code clarity
set default event handlers for SwfdecMovie mouse events
fix _contains() checks
only react to mouse button 0
number buttons correctly and release the mouse grab on button release
confused mouse_in and mouse_out vfuncs
implement mouse_events vfunc
fix to new mouse API
port to new API
add mouse movement test
emit a mouse-in event after a mouse release outside the grab widget
add a test similar to the last - only this time the upper movie receives events
remove swfdec_as_object_has_function()
Ch...