]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/gtkutil/cursor.h
Merge commit 'a764616a9c1b2f9148e3381f808b600c512592c9' into master-merge
[xonotic/netradiant.git] / libs / gtkutil / cursor.h
index db0234d7c50e1ed58efb5bf6bcb4c6869e2e4659..f7a66a37d3b193f99e913229f39973a9d2c0da3a 100644 (file)
@@ -30,7 +30,7 @@
 typedef struct _GdkCursor GdkCursor;
 typedef struct _GdkEventMotion GdkEventMotion;
 
-// Note: NetRadiantCustom disables them but we still make use of them.
+// NetRadiantCustom disables them but we still make use of them.
 #if 1
 GdkCursor* create_blank_cursor();
 void set_cursor( ui::Widget widget, GdkCursorType cursor_type );
@@ -111,16 +111,23 @@ class FreezePointer
 {
 unsigned int handle_motion;
 int recorded_x, recorded_y, last_x, last_y, center_x, center_y;
+ui::Widget weedjet{ui::null};
 typedef void ( *MotionDeltaFunction )( int x, int y, unsigned int state, void* data );
 MotionDeltaFunction m_function;
 void* m_data;
 public:
 FreezePointer() : handle_motion( 0 ), m_function( 0 ), m_data( 0 ){
 }
+/* NetRadiantCustom does this instead:
+static gboolean motion_delta( ui::Window widget, GdkEventMotion *event, FreezePointer* self ); */
 static gboolean motion_delta( ui::Widget widget, GdkEventMotion *event, FreezePointer* self );
 
+/* NetRadiantCustom does this instead:
+void freeze_pointer( ui::Window window, ui::Widget widget, MotionDeltaFunction function, void* data ); */
 void freeze_pointer( ui::Widget widget, MotionDeltaFunction function, void* data );
 
+/* NetRadiantCustom does this instead:
+void unfreeze_pointer( ui::Window window ); */
 void unfreeze_pointer( ui::Widget widget );
 };