Main Page   Compound List   File List   Compound Members   File Members  

ImageSubWindow.cpp File Reference

File containing methods for the 'ImageSubWindow' class. More...

#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).


Detailed Description

File containing methods for the 'ImageSubWindow' class.

The header for this class can be found in ImageSubWindow.h

Definition in file ImageSubWindow.cpp.


Function Documentation

void default_graphics_callback GlowComponent *    parent
 

Default callback function for ImageWindow class (does nothing).

Parameters:
parent  a pointer to the parent window.

Definition at line 55 of file ImageWindow.cpp.

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.

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.


Generated on Thu Mar 11 11:43:51 2004 for libRTImageDisplay by doxygen1.2.18