blob: 6796405d274424e226432d98f367ff9f43d54df0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
//========= Copyright Valve Corporation, 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 ApplySettings( KeyValues *pInResourceData );
virtual void PerformLayout();
vgui::ScrollBar *GetScrollbar( void ) { return m_pScrollBar; }
MESSAGE_FUNC( OnScrollBarSliderMoved, "ScrollBarSliderMoved" );
virtual void OnMouseWheeled(int delta); // respond to mouse wheel events
private:
vgui::ScrollBar *m_pScrollBar;
vgui::EditablePanel *m_pChild;
};
} // end namespace vgui
#endif // SCROLLABLEEDITABLEPANEL_H
|