DefaultSize.cs 516 B

1234567891011121314151617181920
  1. using System;
  2. namespace BansheeEditor
  3. {
  4. /// <summary>
  5. /// Can be placed on <see cref="EditorWindow"/> class to provide a default size for the window when it is first opened.
  6. /// </summary>
  7. [AttributeUsage(AttributeTargets.Class)]
  8. public sealed class DefaultSize : Attribute
  9. {
  10. private int width = 400;
  11. private int height = 400;
  12. public DefaultSize(int width, int height)
  13. {
  14. this.width = width;
  15. this.height = height;
  16. }
  17. }
  18. }