Make Context a class, not a struct
This commit is contained in:
parent
bc1d1ba59f
commit
6b77860fc0
|
@ -9,7 +9,7 @@
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
|
||||||
struct Context;
|
class Context;
|
||||||
|
|
||||||
typedef std::vector<String> CandidateList;
|
typedef std::vector<String> CandidateList;
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,9 @@ class KeymapManager;
|
||||||
// The Context object links an Client, an Editor (which may be a Window),
|
// The Context object links an Client, an Editor (which may be a Window),
|
||||||
// and a UserInterface. It may represent an interactive user window, or
|
// and a UserInterface. It may represent an interactive user window, or
|
||||||
// a hook execution or a macro replay.
|
// a hook execution or a macro replay.
|
||||||
struct Context
|
class Context
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
Context();
|
Context();
|
||||||
explicit Context(Editor& editor);
|
explicit Context(Editor& editor);
|
||||||
Context(Client& client, Editor& editor);
|
Context(Client& client, Editor& editor);
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
|
||||||
struct Context;
|
class Context;
|
||||||
typedef std::function<void (const String&, Context&)> HookFunc;
|
typedef std::function<void (const String&, Context&)> HookFunc;
|
||||||
|
|
||||||
class HookManager
|
class HookManager
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
|
||||||
struct Context;
|
class Context;
|
||||||
|
|
||||||
class Register
|
class Register
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user