Ejemplo n.º 1
0
		private void OnBoundsChanged (Accessible sender, BoundingBox bounds)
		{
			Rect rect = BoundingBoxToRect (bounds);
			AtspiUiaSource.AutomationSource.RaisePropertyChangedEvent (this,
				AutomationElement.BoundingRectangleProperty,
				Rect.Empty,
				rect);
		}
Ejemplo n.º 2
0
		internal Rect BoundingBoxToRect (BoundingBox box)
		{
			return new Rect (box.X, box.Y, box.Width, box.Height);
		}
Ejemplo n.º 3
0
 public void SetExtents()
 {
     Component component = pushButton.QueryComponent ();
     BoundingBox bbox = new BoundingBox (50, 60, 70, 80);
     Assert.IsFalse (component.SetExtents (bbox,
         CoordType.Screen),
         "SetExtents on a pushbutton");
     component = frame.QueryComponent ();
     Assert.IsTrue (component.SetExtents (bbox,
         CoordType.Screen),
         "SetExtents on the frame");
 }
Ejemplo n.º 4
0
 public bool SetExtents(BoundingBox extents, CoordType coordType)
 {
     return proxy.SetExtents (extents, coordType);
 }
Ejemplo n.º 5
0
		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));
		}
Ejemplo n.º 6
0
 private void OnEventR(Accessible sender, BoundingBox rect)
 {
     eventCount++;
     this.any = rect;
 }