#include <glow.h>
#include "ImageSubWindow.h"
Go to the source code of this file.
Functions | |
| void | default_mouse_handler (Glow::MouseButton button, int x, int y, Glow::Modifiers modifiers, MouseActionType action) |
| A default mouse handler function which simply and not so usefully prints Mouse button and (x,y) click coords to stderr. | |
| void | default_graphics_callback (GlowComponent *parent) |
| Default callback function for ImageWindow class (does nothing). | |
The header for this class can be found in ImageSubWindow.h
Definition in file ImageSubWindow.cpp.
|
|
Default callback function for ImageWindow class (does nothing).
Definition at line 55 of file ImageWindow.cpp. |
|
||||||||||||||||||||||||
|
A default mouse handler function which simply and not so usefully prints Mouse button and (x,y) click coords to stderr. In constructor mouse press is set to this. *mouse_press is public and can (should) be set by a specific function in procMain after initialising a window, e.g. ImageDisplayWindow win1(width,height,"cam 1"); win1.win->mouse_press = mouse_action ; where mouse_action() has been declared before procMain for example like: void mouse_action(Glow::MouseButton button,int x, int y, Glow::Modifiers modifiers, MouseActionType action) { if(button == Glow::leftButton && action == MOUSE_DOWN) cerr << "You have just pressed on (" << x << ',' << y << ")." << endl; } Definition at line 23 of file ImageWindow.cpp. |
1.2.18