-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and make sure the text editor works only with single UTF-16 characters, otherwise it may crash
- Loading branch information
Showing
6 changed files
with
373 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// This file is part of VSTGUI. It is subject to the license terms | ||
// in the LICENSE file found in the top-level directory of this | ||
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE | ||
|
||
#pragma once | ||
|
||
#include "../vstguifwd.h" | ||
#include <string> | ||
|
||
namespace VSTGUI { | ||
|
||
//------------------------------------------------------------------------ | ||
struct ICocoaTextInputClient | ||
{ | ||
struct TextRange | ||
{ | ||
size_t position; | ||
size_t length; | ||
}; | ||
|
||
virtual void insertText (const std::u16string& string, TextRange range) = 0; | ||
virtual void setMarkedText (const std::u16string& string, TextRange selectedRange, | ||
TextRange replacementRange) = 0; | ||
virtual bool hasMarkedText () = 0; | ||
virtual void unmarkText () = 0; | ||
virtual TextRange getMarkedRange () = 0; | ||
virtual TextRange getSelectedRange () = 0; | ||
virtual CRect firstRectForCharacterRange (TextRange range, TextRange& actualRange) = 0; | ||
|
||
virtual ~ICocoaTextInputClient () noexcept = default; | ||
}; | ||
|
||
//------------------------------------------------------------------------ | ||
} // VSTGUI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.