teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | Protected Attributes | List of all members
teditor::Window Class Reference

#include <window.h>

Public Member Functions

 Window ()
 
void attachBuffs (Buffers *bs)
 attach buffers list to this window. This list should be shared with all the other windows being displayed (except for the Window that wraps the CmdMsgBar) More...
 
void copyTo (Window &w)
 
Buffer & getBuff ()
 
const Buffer & getBuff () const
 
void resize (const Pos2di &start, const Pos2di &dim)
 resize the window in case of window size change More...
 
void draw (Editor &ed)
 
void drawPoint (Editor &ed, const AttrColor &bg)
 
void incrementCurrBuff ()
 
void decrementCurrBuff ()
 
int currBuffId () const
 
void setCurrBuff (int i)
 
const Pos2di & start () const
 
const Pos2di & dim () const
 

Protected Attributes

Buffers * buffs
 
int currBuff
 
Pos2di screenStart
 
Pos2di screenDim
 

Detailed Description

Window to draw the contents of an associated buffer

Constructor & Destructor Documentation

◆ Window()

teditor::Window::Window ( )

Member Function Documentation

◆ attachBuffs()

void teditor::Window::attachBuffs ( Buffers *  bs)

attach buffers list to this window. This list should be shared with all the other windows being displayed (except for the Window that wraps the CmdMsgBar)

◆ copyTo()

void teditor::Window::copyTo ( Window &  w)
inline

copy the current window's buffers and ID to the new window

◆ currBuffId()

int teditor::Window::currBuffId ( ) const
inline

◆ decrementCurrBuff()

void teditor::Window::decrementCurrBuff ( )

◆ dim()

const Pos2di& teditor::Window::dim ( ) const
inline

◆ incrementCurrBuff()

void teditor::Window::incrementCurrBuff ( )

◆ resize()

void teditor::Window::resize ( const Pos2di &  start,
const Pos2di &  dim 
)

resize the window in case of window size change

Parameters
startscreen start location
dimscreen dimension

◆ setCurrBuff()

void teditor::Window::setCurrBuff ( int  i)
inline

◆ start()

const Pos2di& teditor::Window::start ( ) const
inline

Member Data Documentation

◆ buffs

Buffers* teditor::Window::buffs
protected

◆ currBuff

int teditor::Window::currBuff
protected

◆ screenDim

Pos2di teditor::Window::screenDim
protected

◆ screenStart

Pos2di teditor::Window::screenStart
protected

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