| 12345678910111213141516171819202122232425262728293031 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- using System;
- namespace bs.Editor
- {
- /** @addtogroup Window
- * @{
- */
- /// <summary>
- /// Can be placed on <see cref="EditorWindow"/> or <see cref="ModalWindow"/> class to provide a default size for the
- /// window when it is first opened.
- /// </summary>
- [AttributeUsage(AttributeTargets.Class)]
- public sealed class DefaultSize : Attribute
- {
- #pragma warning disable 0414
- private int width = 400;
- private int height = 400;
- #pragma warning restore 0414
- public DefaultSize(int width, int height)
- {
- this.width = width;
- this.height = height;
- }
- }
- /** @} */
- }
|