ASPiK SDK
gtktextedit.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #pragma once
6 
7 #include "../iplatformtextedit.h"
8 #include <memory>
9 
10 //------------------------------------------------------------------------
11 namespace VSTGUI {
12 
13 //------------------------------------------------------------------------
14 class GTKTextEdit : public IPlatformTextEdit
15 {
16 public:
17  static SharedPointer<GTKTextEdit> make (void* parentWidget,
18  IPlatformTextEditCallback* callback);
19 
20  ~GTKTextEdit ();
21 
22  UTF8String getText () override;
23  bool setText (const UTF8String& text) override;
24  bool updateSize () override;
25 
26 private:
27  struct Impl;
28 
29  GTKTextEdit (std::unique_ptr<Impl>&& impl, IPlatformTextEditCallback* callback);
30 
31  std::unique_ptr<Impl> impl;
32 };
33 
34 //------------------------------------------------------------------------
35 } // VSTGUI
Definition: vstguibase.h:299
Definition: gtktextedit.h:14
Definition: gtktextedit.cpp:57
Definition: customcontrols.cpp:8
holds an UTF8 encoded string and a platform representation of it
Definition: cstring.h:56