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.

63 lines
1.5 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef IBORDER_H
  8. #define IBORDER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui/vgui.h>
  13. class KeyValues;
  14. namespace vgui
  15. {
  16. class IScheme;
  17. //-----------------------------------------------------------------------------
  18. // Purpose: Interface to panel borders
  19. // Borders have a close relationship with panels
  20. // They are the edges of the panel.
  21. //-----------------------------------------------------------------------------
  22. class IBorder
  23. {
  24. public:
  25. virtual void Paint(VPANEL panel) = 0;
  26. virtual void Paint(int x0, int y0, int x1, int y1) = 0;
  27. virtual void Paint(int x0, int y0, int x1, int y1, int breakSide, int breakStart, int breakStop) = 0;
  28. virtual void SetInset(int left, int top, int right, int bottom) = 0;
  29. virtual void GetInset(int &left, int &top, int &right, int &bottom) = 0;
  30. virtual void ApplySchemeSettings(IScheme *pScheme, KeyValues *inResourceData) = 0;
  31. virtual const char *GetName() = 0;
  32. virtual void SetName(const char *name) = 0;
  33. enum backgroundtype_e
  34. {
  35. BACKGROUND_FILLED,
  36. BACKGROUND_TEXTURED,
  37. BACKGROUND_ROUNDEDCORNERS,
  38. };
  39. virtual backgroundtype_e GetBackgroundType() = 0;
  40. enum sides_e
  41. {
  42. SIDE_LEFT = 0,
  43. SIDE_TOP = 1,
  44. SIDE_RIGHT = 2,
  45. SIDE_BOTTOM = 3
  46. };
  47. virtual bool PaintFirst( void ) = 0;
  48. };
  49. } // namespace vgui
  50. #endif // IBORDER_H