diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-07 17:06:11 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-07 17:06:11 +0100 |
commit | 187d7cb4001fd0820d5eef53aeb593fb0db25802 (patch) | |
tree | ffd207a346e424d0c212ff3a3489efb435ab7304 /LibGUI/GTextEditor.h | |
parent | a5bc20c7330f0a0577b52ae7f1dc70b88407f88b (diff) | |
download | serenity-187d7cb4001fd0820d5eef53aeb593fb0db25802.zip |
GTextEditor: Add write_to_file(String path) :^)
Diffstat (limited to 'LibGUI/GTextEditor.h')
-rw-r--r-- | LibGUI/GTextEditor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LibGUI/GTextEditor.h b/LibGUI/GTextEditor.h index 1c905512b2..a390d87da6 100644 --- a/LibGUI/GTextEditor.h +++ b/LibGUI/GTextEditor.h @@ -49,6 +49,8 @@ public: GTextPosition cursor() const { return m_cursor; } int glyph_width() const { return font().glyph_width('x'); } + bool write_to_file(const String& path); + private: virtual void paint_event(GPaintEvent&) override; virtual void resize_event(GResizeEvent&) override; |