DefaultSize.cs 766 B

12345678910111213141516171819202122
  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. /// <summary>
  7. /// Can be placed on <see cref="EditorWindow"/> class to provide a default size for the window when it is first opened.
  8. /// </summary>
  9. [AttributeUsage(AttributeTargets.Class)]
  10. public sealed class DefaultSize : Attribute
  11. {
  12. private int width = 400;
  13. private int height = 400;
  14. public DefaultSize(int width, int height)
  15. {
  16. this.width = width;
  17. this.height = height;
  18. }
  19. }
  20. }