bgfx/examples/common/imgui/scintilla.h

27 lines
664 B
C
Raw Normal View History

2015-06-09 03:07:35 +03:00
/*
2016-01-01 11:11:04 +03:00
* Copyright 2011-2016 Branimir Karadzic. All rights reserved.
2015-06-09 03:07:35 +03:00
* 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);
2015-06-15 23:12:22 +03:00
intptr_t command(unsigned int _message, uintptr_t _p0 = 0, intptr_t _p1 = 0);
2015-06-09 03:07:35 +03:00
void draw();
};
2015-06-15 23:12:22 +03:00
ScintillaEditor* ImGuiScintilla(const char* _name, bool* _opened, const ImVec2& _size);
2015-06-09 03:07:35 +03:00
#endif // defined(SCI_NAMESPACE)
#endif // SCINTILLA_H_HEADER_GUARD