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

GetChildIndex() public method

public GetChildIndex ( idWindow window ) : int
window idWindow
return int
		public int GetChildIndex(idWindow window)
		{
			if(this.Disposed == true)
			{
				throw new ObjectDisposedException(this.GetType().Name);
			}

			int count = _drawWindows.Count;

			for(int find = 0; find < count; find++)
			{
				if(_drawWindows[find].Window == window)
				{
					return find;
				}
			}

			return -1;
		}