Laxkit
0.0.7.1
|
Basically a rectangle with a anXWindow. More...
Public Member Functions | |
PlainWinBox (anXWindow *nwin, int xx1, int yy1, int xx2, int yy2) | |
Plain constructor, just copies values, no addwindow. | |
virtual | ~PlainWinBox () |
virtual void | NewWindow (anXWindow *nwin) |
Dec count of old, and inc count of new (if any). | |
virtual anXWindow * | win () |
virtual void | sync (int inset, int mapit=-1) |
Sync the window to the coords. |
Public Attributes | |
int | x1 |
int | y1 |
int | x2 |
int | y2 |
Protected Attributes | |
anXWindow * | window |
anXWindow * | prev |
anXWindow * | next |
Basically a rectangle with a anXWindow.
This is used in SplitWindow. The x1,y1,x1,y2 correspond to the gutter of the SplitWindow. The gap width of the SplitWindow is passed in during sync(). The windows' x and y should thus be (x1,y1)+(win_border,win_border).
Plain constructor, just copies values, no addwindow.
Count of nwin is incremented.
References Laxkit::anObject::inc_count().
|
virtual |
Dec count of win.
Sync the window to the coords.
if mapit==0, then only MoveResize. If mapit==1, then also map the window
If win->window does not exist, then this tries to call win->app->addwindow(win), and then only if win->win_parent->window exists.
inset is half of SplitWindow::space.
Referenced by Laxkit::SplitWindow::Add(), Laxkit::SplitWindow::Change(), Laxkit::SplitWindow::joinwindow(), Laxkit::SplitWindow::Maximize(), Laxkit::SplitWindow::scaleWindows(), Laxkit::SplitWindow::splitthewindow(), Laxkit::SplitWindow::SwapWithMarked(), and Laxkit::SplitWindow::syncaffected().