resize_handler Struct Reference

A resize_handler gets invoked if the user resizes the window. But only if you have specified the resize handler to use by calling the set_resize_handler() method. If you don't make such a call, the window size change event will be reported by the read_input() function. If you do make the setting, you will not receive any ResizeKey events. If you are using viewports, the resize_handler's job is mainly to enforce your viewport resize policy. That is, you use this function to scale the viewports after a resize. If you are not using viewports, this function's job will be to repaint the window correctly. If you are using viewports, the resizing event will automatically invoke their repaint methods after first invoking your resize_handler. See the file lib/cursorwindow.c and look for function resize_viewports() to see what a resize_handler has to do. Note that you can't use that code directly. If you are using a resize_handler of your own construction, you should maintain your own list of viewports over which can iterate. More...

#include <cursorwindow.h>

Inheritance diagram for resize_handler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void operator() (CursorWindow *)=0
virtual ~resize_handler ()

Detailed Description

A resize_handler gets invoked if the user resizes the window. But only if you have specified the resize handler to use by calling the set_resize_handler() method. If you don't make such a call, the window size change event will be reported by the read_input() function. If you do make the setting, you will not receive any ResizeKey events. If you are using viewports, the resize_handler's job is mainly to enforce your viewport resize policy. That is, you use this function to scale the viewports after a resize. If you are not using viewports, this function's job will be to repaint the window correctly. If you are using viewports, the resizing event will automatically invoke their repaint methods after first invoking your resize_handler. See the file lib/cursorwindow.c and look for function resize_viewports() to see what a resize_handler has to do. Note that you can't use that code directly. If you are using a resize_handler of your own construction, you should maintain your own list of viewports over which can iterate.

Definition at line 608 of file cursorwindow.h.


Constructor & Destructor Documentation

~resize_handler (  )  [virtual]

Definition at line 1918 of file cursorwindow.cxx.


Member Function Documentation

virtual void operator() ( CursorWindow  )  [pure virtual]

Implemented in ResizeHandler, and ResizeHandler.


The documentation for this struct was generated from the following files:
Generated on Wed Feb 29 22:53:51 2012 for CXXUtilities by  doxygen 1.6.3