idTech4.UI.idWindow.SetupFromState C# (CSharp) Method

SetupFromState() public method

public SetupFromState ( ) : void
return void
		public void SetupFromState()
		{
			if(this.Disposed == true)
			{
				throw new ObjectDisposedException(this.GetType().Name);
			}

			SetupBackground();

			if(_borderSize > 0)
			{
				_flags |= WindowFlags.Border;
			}

			if((_regList.FindRegister("rotate") != null) || (_regList.FindRegister("shear") != null))
			{
				this.Flags |= WindowFlags.Transform;
			}

			CalculateClientRectangle(0, 0);

			if(_scripts[(int) ScriptName.Action] != null)
			{
				this.Cursor = UI.Cursor.Hand;
				this.Flags |= WindowFlags.CanFocus;
			}
		}