예제 #1
0
 public Frame(WindowFrameType type, FrameBoundType startType, Symbol startValue, FrameBoundType endType, Symbol endValue)
 {
     this.Type       = type;
     this.StartType  = startType;
     this.StartValue = startValue;
     this.EndType    = endType;
     this.EndValue   = endValue;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="Common.UI.Windows.WindowScript"/> class.
        /// </summary>
        public WindowScript()
            : base()
        {
            DebugEx.Verbose("Created WindowScript object");

            sInstances.Add(this);

            mFrame           = WindowFrameType.Window;
            mState           = WindowState.NoState;
            mX               = -SHADOW_WIDTH;
            mY               = -SHADOW_WIDTH;
            mWidth           = 0f;
            mHeight          = 0f;
            mBackgroundColor = Assets.Common.Windows.Colors.background;
            mResizable       = true;
            mMinimumWidth    = 0f;
            mMinimumHeight   = 0f;
            mMaximumWidth    = 0f;
            mMaximumHeight   = 0f;
            mAllowMinimize   = true;
            mAllowMaximize   = true;
            mAllowClose      = true;
            mTokenId         = R.sections.WindowTitles.strings.Count;

            mWindowTransform        = null;
            mBorderGameObject       = null;
            mBorderImage            = null;
            mTitleGameObject        = null;
            mTitleText              = null;
            mMinimizeGameObject     = null;
            mMinimizeImage          = null;
            mMaximizeGameObject     = null;
            mMaximizeImage          = null;
            mCloseGameObject        = null;
            mCloseImage             = null;
            mContentTransform       = null;
            mContentBackgroundImage = null;
            mReplacementGameObject  = null;
            mReplacementTransform   = null;
            mBorderLeft             = 0f;
            mBorderTop              = 0f;
            mBorderRight            = 0f;
            mBorderBottom           = 0f;
            mMouseLocation          = MouseLocation.Outside;
            mMouseState             = MouseState.NoState;
            mMouseContext           = null;

            Hide();
        }
예제 #3
0
 public WindowFrame(NodeLocation location, WindowFrameType type, FrameBound start, FrameBound end) : base(location)
 {
     this.Type  = type;
     this.Start = start ?? throw new ArgumentNullException("start");
     this.End   = end; // this is optional ?? throw new ArgumentNullException("end")
 }
예제 #4
0
 public WindowFrame(WindowFrameType type, FrameBound start, FrameBound end) : this(null, type, start, end)
 {
 }