mirror of
https://github.com/ENSL/NS.git
synced 2024-12-12 21:51:48 +00:00
45 lines
1 KiB
C
45 lines
1 KiB
C
|
//========= Copyright <20> 1996-2002, Valve LLC, All rights reserved. ============
|
|||
|
//
|
|||
|
// Purpose:
|
|||
|
//
|
|||
|
// $NoKeywords: $
|
|||
|
//=============================================================================
|
|||
|
|
|||
|
#ifndef VGUI_BORDER_H
|
|||
|
#define VGUI_BORDER_H
|
|||
|
|
|||
|
#include<VGUI.h>
|
|||
|
#include<VGUI_Image.h>
|
|||
|
|
|||
|
//TODO: all borders should be titled
|
|||
|
|
|||
|
namespace vgui
|
|||
|
{
|
|||
|
|
|||
|
class Panel;
|
|||
|
|
|||
|
class VGUIAPI Border : public Image
|
|||
|
{
|
|||
|
public:
|
|||
|
Border();
|
|||
|
Border(int left,int top,int right,int bottom);
|
|||
|
public:
|
|||
|
virtual void setInset(int left,int top,int right,int bottom);
|
|||
|
virtual void getInset(int& left,int& top,int& right,int& bottom);
|
|||
|
protected:
|
|||
|
virtual void drawFilledRect(int x0,int y0,int x1,int y1);
|
|||
|
virtual void drawOutlinedRect(int x0,int y0,int x1,int y1);
|
|||
|
virtual void drawSetTextPos(int x,int y);
|
|||
|
virtual void drawPrintText(int x,int y,const char* str,int strlen);
|
|||
|
virtual void drawPrintChar(int x,int y,char ch);
|
|||
|
protected:
|
|||
|
int _inset[4];
|
|||
|
private:
|
|||
|
Panel* _panel;
|
|||
|
friend class Panel;
|
|||
|
friend class BorderPair;
|
|||
|
};
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
#endif
|