private void OnBoundsChanged (Accessible sender, BoundingBox bounds) { Rect rect = BoundingBoxToRect (bounds); AtspiUiaSource.AutomationSource.RaisePropertyChangedEvent (this, AutomationElement.BoundingRectangleProperty, Rect.Empty, rect); }
internal Rect BoundingBoxToRect (BoundingBox box) { return new Rect (box.X, box.Y, box.Width, box.Height); }
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"); }
public bool SetExtents(BoundingBox extents, CoordType coordType) { return proxy.SetExtents (extents, coordType); }
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)); }
private void OnEventR(Accessible sender, BoundingBox rect) { eventCount++; this.any = rect; }