DefaultSize.cs 828 B

12345678910111213141516171819202122232425262728
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using System;
  4. namespace BansheeEditor
  5. {
  6. /** @addtogroup Window
  7. * @{
  8. */
  9. /// <summary>
  10. /// Can be placed on <see cref="EditorWindow"/> class to provide a default size for the window when it is first opened.
  11. /// </summary>
  12. [AttributeUsage(AttributeTargets.Class)]
  13. public sealed class DefaultSize : Attribute
  14. {
  15. private int width = 400;
  16. private int height = 400;
  17. public DefaultSize(int width, int height)
  18. {
  19. this.width = width;
  20. this.height = height;
  21. }
  22. }
  23. /** @} */
  24. }