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...
Public Member Functions | |
SaveRestoreActiveWindow (CursorWindow *w) | |
~SaveRestoreActiveWindow () | |
Public Attributes | |
port * | active_viewport |
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.
SaveRestoreActiveWindow | ( | CursorWindow * | w | ) |
Definition at line 2757 of file cursorwindow.cxx.
port* active_viewport |
Definition at line 2755 of file cursorwindow.cxx.