37 #ifndef H_SKIN_IMGUI_TEXT_EDITOR_H
38 #define H_SKIN_IMGUI_TEXT_EDITOR_H
94 void set_text(
const std::string& value);
130 void draw(
const std::string& title);
136 void load(
const std::string& filename);
142 void save(
const std::string& filename);
144 void add_error_marker(
index_t line,
const std::string& error_message);
146 void clear_error_markers();
148 void add_breakpoint(
index_t line);
150 void clear_breakpoints();
152 void find(
const std::string& s);
154 void cursor_forward();
188 std::string language_;
189 std::vector<std::string> completions_;
Abstract base class for the GOM interpreter.
Base class for all objects in the GOM system.
A TextEditor for writing LUA functions.
void load(const std::string &filename)
Loads a file in the editor.
Interpreter * interpreter()
Gets the Interpreter.
void draw(const std::string &title)
Draws the editor.
void find_request()
Invoked when <Ctrl><F> is pressed.
::TextEditor * impl()
Gets the implementation.
void set_language(const std::string &language)
Sets the language used for syntax highlighting.
void save_request()
Invoked when <F2> is pressed.
void stop_request()
Invoked when <Ctrl> is pressed.
TextEditor(Interpreter *interpreter)
TextEditor constructor.
std::string get_text() const
Gets the text.
std::vector< std::string > & completions()
Gets the current list of completions.
void save(const std::string &filename)
Saves the contents of the editor into a file.
void tooltip_request(const std::string &context)
Invoked when the cursor hovers over a word.
~TextEditor() override
TextEditor destructor.
std::string get_selection() const
Gets the selected text.
const std::string & get_language() const
Gets the language used for syntax highlighting.
void clear(void *addr, size_t size)
Clears a memory block.
geo_index_t index_t
The type for storing and manipulating indices.
Global Graphite namespace.
The base class for all composite objects in the GOM system.
Definitions common to all include files in the skin_imgui library.