AtspiUiaSource.AutomationSource.SizeFits C# (CSharp) Method

SizeFits() private method

private SizeFits ( BoundingBox extents, int x, int y, int width, int height ) : bool
extents Atspi.BoundingBox
x int
y int
width int
height int
return bool
		private bool SizeFits (BoundingBox extents, int x, int y, int width, int height)
		{
			// This hack is to distinguish the desktop from other
			// windows. We should find a better way to do this and
			// undo this fudging, especially if Nautilus starts to
			// return something other than Window for the layer.
			return ((extents.X <= x && (x - extents.X) < 50) &&
				(extents.Y <= y && (y - extents.Y) < 50) &&
				(extents.Width >= width && (extents.Width - width) < 50) &&
				(extents.Height >= height && (extents.Height - height) < 50));
		}