1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

GTextEditor: Add write_to_file(String path) :^)

This commit is contained in:
Andreas Kling 2019-03-07 17:06:11 +01:00
parent a5bc20c733
commit 187d7cb400
3 changed files with 40 additions and 2 deletions

View file

@ -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;