teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Go to the documentation of this file.
82 size_t size()
const {
return wins.size(); }
97 std::vector<Window*> wins;
99 std::vector<Border> borders;
void attachBuffs(Buffers *bs)
attach buffers list to this window. This list should be shared with all the other windows being displ...
Definition: window.cpp:13
void decrementCurrBuff()
Definition: window.cpp:23
void draw(Editor &ed)
Definition: window.cpp:33
const Window & getWindow() const
Definition: window.h:80
Window()
Definition: window.cpp:10
Pos2di screenDim
Definition: window.h:64
void incrementCurrWin()
Definition: window.cpp:82
void clearAll()
Definition: window.cpp:150
Pos2di screenStart
Definition: window.h:64
size_t size() const
Definition: window.h:82
Windows()
Definition: window.cpp:46
const Pos2di & start() const
Definition: window.h:58
int currBuff
Definition: window.h:63
T y
Definition: pos2d.h:16
int sendChar(int x, int y, const AttrColor &fg, const AttrColor &bg, char c)
Definition: editor.cpp:295
void decrementCurrWin()
Definition: window.cpp:87
char getChar() const
Definition: option.h:56
void copyTo(Window &w)
Definition: window.h:27
int currBuffId() const
Definition: window.h:55
bool splitVertically()
split the window into 2 vertical parts
Definition: window.cpp:129
Window & getWindow()
Definition: window.h:79
void resize(const Pos2di &start, const Pos2di &dim)
resize the window in case of window size change
Definition: window.cpp:28
void draw(Editor &ed, bool cmdMsgBarActive)
Definition: window.cpp:92
void drawPoint(Editor &ed, const AttrColor &bg, const Window &win)
Definition: buffer.cpp:402
Buffer & getBuff()
Definition: window.cpp:15
#define DEBUG(fmt,...)
Definition: logger.h:73
int sy
Definition: window.h:70
void resize(int cmBarHt)
Definition: window.cpp:59
const Window * operator[](int idx) const
Definition: window.h:86
void drawPoint(Editor &ed, const AttrColor &bg)
Definition: window.cpp:41
~Windows()
Definition: window.cpp:53
int ey
Definition: window.h:70
Window * operator[](int idx)
Definition: window.h:85
static Option & get(const std::string &n)
Definition: option.cpp:40
static Terminal & getInstance()
Definition: terminal.cpp:57
const AttrColor & getColor(const std::string &name) const
Definition: buffer.cpp:303
int x
Definition: window.h:70
void setCurrBuff(int i)
Definition: window.h:56
Buffers * buffs
Definition: window.h:62
T x
Definition: pos2d.h:16
int currWinId() const
Definition: window.h:81
const Pos2di & dim() const
Definition: window.h:59
void incrementCurrBuff()
Definition: window.cpp:18