mirror of
https://github.com/ENSL/NS.git
synced 2024-11-24 05:21:16 +00:00
b5590dd5d9
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@144 67975925-1194-0748-b3d5-c16f83f1a3a1
55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
//========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================
|
|
|
|
#ifndef VGUI_SCROLLPANEL_H
|
|
#define VGUI_SCROLLPANEL_H
|
|
|
|
#include<VGUI.h>
|
|
#include<VGUI_Panel.h>
|
|
|
|
//NOTE: You need to call validate anytime you change a scrollbar
|
|
|
|
namespace vgui
|
|
{
|
|
|
|
class ScrollBar;
|
|
|
|
class VGUIAPI ScrollPanel : public Panel
|
|
{
|
|
private:
|
|
Panel* _clientClip;
|
|
Panel* _client;
|
|
ScrollBar* _horizontalScrollBar;
|
|
ScrollBar* _verticalScrollBar;
|
|
bool _autoVisible[2];
|
|
public:
|
|
ScrollPanel(int x,int y,int wide,int tall);
|
|
protected:
|
|
virtual void setSize(int wide,int tall);
|
|
public:
|
|
virtual void setScrollBarVisible(bool horizontal,bool vertical);
|
|
virtual void setScrollBarAutoVisible(bool horizontal,bool vertical);
|
|
virtual Panel* getClient();
|
|
virtual Panel* getClientClip();
|
|
virtual void setScrollValue(int horizontal,int vertical);
|
|
virtual void getScrollValue(int& horizontal,int& vertical);
|
|
virtual void recomputeClientSize();
|
|
virtual ScrollBar* getHorizontalScrollBar();
|
|
virtual ScrollBar* getVerticalScrollBar();
|
|
virtual void validate();
|
|
public: //bullshit public
|
|
virtual void recomputeScroll();
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|