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 /utils/hlfaceposer/choreoglobaleventwidget.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/hlfaceposer/choreoglobaleventwidget.h')
| -rw-r--r-- | utils/hlfaceposer/choreoglobaleventwidget.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/utils/hlfaceposer/choreoglobaleventwidget.h b/utils/hlfaceposer/choreoglobaleventwidget.h new file mode 100644 index 0000000..e1881ca --- /dev/null +++ b/utils/hlfaceposer/choreoglobaleventwidget.h @@ -0,0 +1,59 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// +#ifndef CHOREOGLOBALEVENTWIDGET_H +#define CHOREOGLOBALEVENTWIDGET_H +#ifdef _WIN32 +#pragma once +#endif + +#include "choreowidget.h" + +class CChoreoEvent; + +//----------------------------------------------------------------------------- +// Purpose: For section start/end +// FIXME: Finish this +//----------------------------------------------------------------------------- +class CChoreoGlobalEventWidget : public CChoreoWidget +{ +public: + typedef CChoreoWidget BaseClass; + + // Construction/destruction + CChoreoGlobalEventWidget( CChoreoWidget *parent ); + virtual ~CChoreoGlobalEventWidget( void ); + + // Create children + virtual void Create( void ); + // Redo layout + virtual void Layout( RECT& rc ); + + // Screen refresh + virtual void redraw(CChoreoWidgetDrawHelper& drawHelper); + + // Access underlying scene object + CChoreoEvent *GetEvent( void ); + void SetEvent( CChoreoEvent *event ); + + // Draw focus rect while mouse dragging is going on + void DrawFocusRect( void ); +private: + + void DrawLabel( CChoreoWidgetDrawHelper& drawHelper, COLORREF clr, int x, int y, bool right ); + + // The underlying scene object + CChoreoEvent *m_pEvent; + + // For updating focus rect + bool m_bDragging; + int m_xStart; + RECT m_rcFocus; + RECT m_rcOrig; + HCURSOR m_hPrevCursor; +}; + +#endif // CHOREOGLOBALEVENTWIDGET_H |