Laxkit  0.0.7.1
Public Member Functions | Public Attributes | Protected Attributes
Laxkit::PlainWinBox Class Reference

Basically a rectangle with a anXWindow. More...

List of all members.

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 anXWindowwin ()
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

anXWindowwindow
anXWindowprev
anXWindownext

Detailed Description

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).


Constructor & Destructor Documentation

Laxkit::PlainWinBox::PlainWinBox ( anXWindow nwin,
int  xx1,
int  yy1,
int  xx2,
int  yy2 
)

Plain constructor, just copies values, no addwindow.

Count of nwin is incremented.

References Laxkit::anObject::inc_count().

Laxkit::PlainWinBox::~PlainWinBox ( )
virtual

Dec count of win.


Member Function Documentation

void Laxkit::PlainWinBox::sync ( int  inset,
int  mapit = -1 
)
virtual

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().


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

Mon Feb 17 2014 11:53:00, Laxkit