mirror of
https://github.com/ENSL/NS.git
synced 2024-12-11 21:31:04 +00:00
04c334c94b
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@15 67975925-1194-0748-b3d5-c16f83f1a3a1
39 lines
No EOL
767 B
C++
39 lines
No EOL
767 B
C++
//========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================
|
|
|
|
#ifndef VGUI_LINEBORDER_H
|
|
#define VGUI_LINEBORDER_H
|
|
|
|
#include<VGUI.h>
|
|
#include<VGUI_Border.h>
|
|
#include<VGUI_Color.h>
|
|
|
|
namespace vgui
|
|
{
|
|
|
|
class Panel;
|
|
|
|
class VGUIAPI LineBorder : public Border
|
|
{
|
|
private:
|
|
Color _color;
|
|
public:
|
|
LineBorder();
|
|
LineBorder(int thickness);
|
|
LineBorder(Color color);
|
|
LineBorder(int thickness,Color color);
|
|
|
|
inline void setLineColor(int r, int g, int b, int a) {_color = Color(r,g,b,a);}
|
|
private:
|
|
virtual void init(int thickness,Color color);
|
|
protected:
|
|
virtual void paint(Panel* panel);
|
|
};
|
|
|
|
}
|
|
|
|
#endif |