#include <ImageSubWindow.h>
Public Methods | |
| ~ImageSubWindow () | |
| points mouse_press at a function, note can use specific fns from elsewhere | |
Public Attributes | |
| void(* | mouse_press )(Glow::MouseButton button, int x, int y, Glow::Modifiers modifiers, MouseActionType action) |
| Mouse click calback routine. | |
| void(* | graphics_callback )(GlowComponent *parent) |
| Graphics render callback routine. | |
Protected Methods | |
| virtual void | OnEndPaint () |
| Redraws the window and calls graphics_callback(). | |
| virtual void | OnMouseDown (Glow::MouseButton button, int x, int y, Glow::Modifiers modifiers) |
| Calls mouse_press() when the mouse is depressed :-(. | |
| virtual void | OnMouseUp (Glow::MouseButton button, int x, int y, Glow::Modifiers modifiers) |
| Calls mouse_press() when the mouse is released :-). | |
Protected Attributes | |
| unsigned int | width |
| width of image to display | |
| unsigned int | height |
| height of image to display | |
| unsigned int | size |
| size of image (width*height) | |
| float | scalefactor |
| Display Scale factor. | |
| Image::Type | type |
| Type of Image last used to update. | |
| GLint * | pixels |
| Pointer to image data. | |
| GLubyte * | data |
| Pixel data array. | |
| GLubyte * | data_bk |
| Back buffer pixel data array. | |
| GlowComponent * | parent_obj |
| Pointer to the parent window. | |
This has all the functionality of ImageWindow but requires a container (based on GlowWindow) to actually be displayed on the screen. The purpose of this class is so multiple images (or an image not in the top left of the window) may be displayed. If this is not the intention ImageWindow should be used (it is much simpler as it requires no container class to be written!).
Definition at line 37 of file ImageSubWindow.h.
1.2.18