IControl.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #region File Information
  2. //-----------------------------------------------------------------------------
  3. // IControl.cs
  4. //
  5. // Microsoft XNA Community Game Platform
  6. // Copyright (C) Microsoft Corporation. All rights reserved.
  7. //-----------------------------------------------------------------------------
  8. #endregion
  9. #region Using Statements
  10. using System;
  11. using System.Collections.Generic;
  12. using System.Linq;
  13. using System.Text;
  14. using System.Xml;
  15. using Microsoft.Xna.Framework;
  16. using Microsoft.Xna.Framework.Input.Touch;
  17. #endregion
  18. namespace DynamicMenu.Controls
  19. {
  20. /// <summary>
  21. /// The interface for all controls
  22. /// </summary>
  23. public interface IControl
  24. {
  25. // See Control.cs for documentation on these properties
  26. int Width { get; set; }
  27. int Height { get; set; }
  28. int Top { get; set; }
  29. int Left { get; set; }
  30. int Bottom { get; }
  31. int Right { get; }
  32. string Name { get; set; }
  33. Color Hue { get; set; }
  34. IControl Parent { get; set; }
  35. Point GetAbsoluteTopLeft();
  36. void Update(GameTime gameTime, List<GestureSample> gestures);
  37. }
  38. }