summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/imgui/scintilla.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/common/imgui/scintilla.h')
-rw-r--r--3rdparty/bgfx/examples/common/imgui/scintilla.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/3rdparty/bgfx/examples/common/imgui/scintilla.h b/3rdparty/bgfx/examples/common/imgui/scintilla.h
new file mode 100644
index 00000000000..d57362e941f
--- /dev/null
+++ b/3rdparty/bgfx/examples/common/imgui/scintilla.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2011-2015 Branimir Karadzic. All rights reserved.
+ * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
+ */
+
+#ifndef SCINTILLA_H_HEADER_GUARD
+#define SCINTILLA_H_HEADER_GUARD
+
+#if defined(SCI_NAMESPACE)
+
+#include <scintilla/include/Scintilla.h>
+
+struct ScintillaEditor
+{
+ static ScintillaEditor* create(int _width, int _height);
+ static void destroy(ScintillaEditor* _scintilla);
+
+ intptr_t command(unsigned int _message, uintptr_t _p0 = 0, intptr_t _p1 = 0);
+ void draw();
+};
+
+ScintillaEditor* ImGuiScintilla(const char* _name, bool* _opened, const ImVec2& _size);
+
+#endif // defined(SCI_NAMESPACE)
+
+#endif // SCINTILLA_H_HEADER_GUARD