home/src/context.hh

24 lines
411 B
C++
Raw Normal View History

2011-11-26 19:32:57 +01:00
#ifndef context_hh_INCLUDED
#define context_hh_INCLUDED
#include "window.hh"
namespace Kakoune
{
struct Context
{
Window* window;
Buffer* buffer;
Context()
: window(nullptr), buffer(nullptr) {}
Context(Window& window)
: window(&window), buffer(&window.buffer()) {}
Context(Buffer& buffer)
: window(nullptr), buffer(&buffer) {}
};
}
#endif // context_hh_INCLUDED