_gtkWindowCBmoveMouse

Set a callback that is called when the mouse move into the window.

Définit une callback appelée lorsque la souris est déplacée sur la fenêtre.

Type :

fun [ObjGtk fun [ObjGtk u0 I I] I u0] ObjGtk

_window_ : ObjGtk : any window already created.

_callback_ : fun [ObjGtk u0 I I] I : the callback. Supplementals parameters are the news X and Y mouse coordonates.

_user_param_ : u0 : any user paramter, at your convenience.

Return : ObjGtk : the same window _window_.

Example :

	typeof win = ObjGtk;;
	
	fun mousemove(objwin, userparam, mousex, mousey)=
	_fooS strcat "param = " userparam;
	_fooId mousex;
	_fooId mousey;
	0;;
	
	fun main()=
		_showconsole;
		set win = _gtkWindowNew _channel parent "my test" SGTK_POS_MOUSE;
		_gtkWindowCBmoveMouse win @mousemove "toto";
		...

Back