You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// |
|
// Purpose: |
|
// |
|
// $NoKeywords: $ |
|
//=============================================================================// |
|
|
|
#include <vgui/IScheme.h> |
|
|
|
#include <vgui_controls/Divider.h> |
|
|
|
// memdbgon must be the last include file in a .cpp file!!! |
|
#include "tier0/memdbgon.h" |
|
|
|
using namespace vgui; |
|
|
|
DECLARE_BUILD_FACTORY( Divider ); |
|
|
|
//----------------------------------------------------------------------------- |
|
// Purpose: Constructor |
|
//----------------------------------------------------------------------------- |
|
Divider::Divider(Panel *parent, const char *name) : Panel(parent, name) |
|
{ |
|
SetSize(128, 2); |
|
} |
|
|
|
//----------------------------------------------------------------------------- |
|
// Purpose: Destructor |
|
//----------------------------------------------------------------------------- |
|
Divider::~Divider() |
|
{ |
|
} |
|
|
|
//----------------------------------------------------------------------------- |
|
// Purpose: sets up the border as the line to draw as a divider |
|
//----------------------------------------------------------------------------- |
|
void Divider::ApplySchemeSettings(IScheme *pScheme) |
|
{ |
|
SetBorder(pScheme->GetBorder("ButtonDepressedBorder")); |
|
BaseClass::ApplySchemeSettings(pScheme); |
|
}
|
|
|