-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 in VSTSDK/vstgui from develop to master
* commit 'ca0bf2d843b3bed8163cdde26db21bad18270f71': add ITextEditListener
- Loading branch information
Showing
5 changed files
with
58 additions
and
2 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
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,33 @@ | ||
// 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" | ||
|
||
namespace VSTGUI { | ||
|
||
//------------------------------------------------------------------------ | ||
/** Listener for a text edit | ||
* @ingroup new_in_4_10 | ||
*/ | ||
class ITextEditListener | ||
{ | ||
public: | ||
/** called when the native platform text edit control was created and started to listen for keyboard input. */ | ||
virtual void onTextEditPlatformControlTookFocus (CTextEdit* textEdit) = 0; | ||
/** called when the natvie platform text edit control is going to be destroyed. */ | ||
virtual void onTextEditPlatformControlLostFocus (CTextEdit* textEdit) = 0; | ||
}; | ||
|
||
//------------------------------------------------------------------------ | ||
class TextEditListenerAdapter : public ITextEditListener | ||
{ | ||
public: | ||
void onTextEditPlatformControlTookFocus (CTextEdit* textEdit) override {} | ||
void onTextEditPlatformControlLostFocus (CTextEdit* textEdit) override {} | ||
}; | ||
|
||
//------------------------------------------------------------------------ | ||
} // 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