tbx  0.7.6
Public Member Functions | List of all members
tbx::doc::DocPositionWindow Class Reference

Class to reposition each newly opened document window so the titles don't overlap. More...

#include <docpositionwindow.h>

Public Member Functions

 DocPositionWindow ()
 Constructor, sets it up to read the position for the first call.
 
void show (tbx::Window window)
 Show the given window at the next position. More...
 

Detailed Description

Class to reposition each newly opened document window so the titles don't overlap.

To use it add a static Member to your Window class, make sure the document window isn't automatically shown and call the show method to show the window in the correct place.

Member Function Documentation

◆ show()

void tbx::doc::DocPositionWindow::show ( tbx::Window  window)

Show the given window at the next position.

On the first call it reads the position from the window and shows it in it's default position. Subsequent calls show the window moved down by xx units

When the window position gets close to the bottom of the screen it starts again near the top of the screen.


The documentation for this class was generated from the following files: