diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/panorama/textinput/textinput_fullscreen.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/panorama/textinput/textinput_fullscreen.h')
| -rw-r--r-- | public/panorama/textinput/textinput_fullscreen.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/public/panorama/textinput/textinput_fullscreen.h b/public/panorama/textinput/textinput_fullscreen.h new file mode 100644 index 0000000..020e3d7 --- /dev/null +++ b/public/panorama/textinput/textinput_fullscreen.h @@ -0,0 +1,50 @@ +//=========== Copyright Valve Corporation, All rights reserved. ===============// +// +// Purpose: +//=============================================================================// + +#ifndef PANORAMA_TEXTINPUT_FULLSCREEN_H +#define PANORAMA_TEXTINPUT_FULLSCREEN_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "panorama/controls/panel2d.h" +#include "panorama/controls/textentry.h" + +namespace panorama +{ + +DECLARE_PANEL_EVENT2( TextInputFullscreenClosed, bool, const char * ); + +//----------------------------------------------------------------------------- +// Purpose: Full screen + daisy wheel +//----------------------------------------------------------------------------- +class CTextInputFullscreen : public panorama::CPanel2D +{ + DECLARE_PANEL2D( CTextInputFullscreen, panorama::CPanel2D ); + +public: + CTextInputFullscreen( panorama::CPanel2D *pPanel, const char * pchPanelID, const CTextInputHandlerSettings &settings ); + ~CTextInputFullscreen(); + + void SetMultiline( bool bMultiline ); + void SetDescription( const char *pchDescription ); + void SetMaxChars( uint32 unCharMax ); + void SetEnteredText( const char *pchText ); + virtual panorama::IUIPanel *OnGetDefaultInputFocus(); + +private: + bool EventTextInputHandlerStateChange( const panorama::CPanelPtr< panorama::IUIPanel > &ptrPanel, bool bActivating ); + bool EventTextInputFinished( const panorama::CPanelPtr< panorama::IUIPanel > &ptrPanel, bool bSubmitted, const char *pchText ); + + panorama::CTextInputHandler *m_pTextInputHandler; + panorama::CTextEntry *m_pEnteredText; + panorama::CLabel *m_pInputDescription; +}; + +} // namespace panorama + +#endif // PANORAMA_TEXTINPUT_FULLSCREEN_H + |