SaveRestoreActiveWindow Struct Reference

This class exists to provide a way of saving and restoring the currently active viewport. You declare a variable of this type, initializing it with the pointer to the cursor window. It then saves the currently active viewport. When the SaveRestoreActiveWindow object is destructed, it restores the active viewport. More...

List of all members.

Public Member Functions

 SaveRestoreActiveWindow (CursorWindow *w)
 ~SaveRestoreActiveWindow ()

Public Attributes

port * active_viewport

Detailed Description

This class exists to provide a way of saving and restoring the currently active viewport. You declare a variable of this type, initializing it with the pointer to the cursor window. It then saves the currently active viewport. When the SaveRestoreActiveWindow object is destructed, it restores the active viewport.

Obviously, this only works if the active viewport doesn't get deleted in the meantime. That's why this mechanism is not publicly visible. It is only meant to be used inside 'popup()' function calls.

Definition at line 2741 of file cursorwindow.cxx.


Constructor & Destructor Documentation

Definition at line 2757 of file cursorwindow.cxx.

Definition at line 2762 of file cursorwindow.cxx.

Here is the call graph for this function:


Member Data Documentation

Definition at line 2755 of file cursorwindow.cxx.


The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:56:13 2012 for CXXUtilities by  doxygen 1.6.3