Counter Strike : Global Offensive Source Code
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.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #include <vgui/IScheme.h>
  8. #include <vgui_controls/Divider.h>
  9. // memdbgon must be the last include file in a .cpp file!!!
  10. #include "tier0/memdbgon.h"
  11. using namespace vgui;
  12. DECLARE_BUILD_FACTORY( Divider );
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Constructor
  15. //-----------------------------------------------------------------------------
  16. Divider::Divider(Panel *parent, const char *name) : Panel(parent, name)
  17. {
  18. SetSize(128, 2);
  19. }
  20. //-----------------------------------------------------------------------------
  21. // Purpose: Destructor
  22. //-----------------------------------------------------------------------------
  23. Divider::~Divider()
  24. {
  25. }
  26. //-----------------------------------------------------------------------------
  27. // Purpose: sets up the border as the line to draw as a divider
  28. //-----------------------------------------------------------------------------
  29. void Divider::ApplySchemeSettings(IScheme *pScheme)
  30. {
  31. SetBorder(pScheme->GetBorder("ButtonDepressedBorder"));
  32. BaseClass::ApplySchemeSettings(pScheme);
  33. }