mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-12 11:42:10 +08:00
54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
|
//========= Copyright <20> 1996-2001, Valve LLC, All rights reserved. ============
|
|||
|
//
|
|||
|
// Purpose:
|
|||
|
//
|
|||
|
// $NoKeywords: $
|
|||
|
//=============================================================================
|
|||
|
|
|||
|
#ifndef SCROLLABLEEDITABLEPANEL_H
|
|||
|
#define SCROLLABLEEDITABLEPANEL_H
|
|||
|
|
|||
|
#ifdef _WIN32
|
|||
|
#pragma once
|
|||
|
#endif
|
|||
|
|
|||
|
#include "vgui_controls/EditablePanel.h"
|
|||
|
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
// Forward declarations
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
namespace vgui
|
|||
|
{
|
|||
|
class ScrollBar;
|
|||
|
}
|
|||
|
|
|||
|
namespace vgui
|
|||
|
{
|
|||
|
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
// An editable panel that has a scrollbar
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
class ScrollableEditablePanel : public vgui::EditablePanel
|
|||
|
{
|
|||
|
DECLARE_CLASS_SIMPLE( ScrollableEditablePanel, vgui::EditablePanel );
|
|||
|
|
|||
|
public:
|
|||
|
ScrollableEditablePanel( vgui::Panel *pParent, vgui::EditablePanel *pChild, const char *pName );
|
|||
|
virtual ~ScrollableEditablePanel() {}
|
|||
|
virtual void PerformLayout();
|
|||
|
|
|||
|
vgui::ScrollBar *GetScrollbar( void ) { return m_pScrollBar; }
|
|||
|
|
|||
|
virtual void OnMouseWheeled(int delta);
|
|||
|
|
|||
|
MESSAGE_FUNC( OnScrollBarSliderMoved, "ScrollBarSliderMoved" );
|
|||
|
|
|||
|
private:
|
|||
|
vgui::ScrollBar *m_pScrollBar;
|
|||
|
vgui::EditablePanel *m_pChild;
|
|||
|
};
|
|||
|
|
|||
|
|
|||
|
} // end namespace vgui
|
|||
|
|
|||
|
#endif // SCROLLABLEEDITABLEPANEL_H
|