WinBounds allows easy storing of window bounds in order to simplify designing and using multi-window guis. WinBounds is a class-only singleton.
First code examples:
WinBounds can also be use to store window-making functions,
WinBounds uses some extensions to the Window class :
a dict with all stored bounds for windows. window names must be unique!
put in bounds rect by window name
key |
get bounds rect for key |
store bounds of all currently open windows
restore all open windows to their stored bounds.
returns a code string that recreates stored bounds.
add a collection - a dict or keys-values-array - to stored dict.
store bounds rect of a currently open window by window name.
store bounds rect of a currently open window
win |
restore bounds rect of a currently open windo. |
name |
restore bounds rect of a currently open window by window name. |
a dictionary of window-making functions
add a make function to makeFuncs by name
make the window with that name
if a window with that name exists, move it to its position if not, make the window by running its named makefunc (see examples) s