public AuthorSectionAccessible(BlameRenderer widget, int line, Annotation ann, double y1, double y2) { if (widget is null) { throw new ArgumentNullException(nameof(widget)); } if (ann is null) { throw new ArgumentNullException(nameof(ann)); } Accessible = AccessibilityElementProxy.ButtonElementProxy(); Accessible.GtkParent = widget; Accessible.SetRole(AtkCocoa.Roles.AXMenuButton); Accessible.Title = GettextCatalog.GetString("Authors Overview"); string msg = widget.GetCommitMessage(line, false); Accessible.Label = GettextCatalog.GetString("Author {0} Date {1} Revision {2} Message {3}", ann.Author, ann.Date, widget.TruncRevision(ann.Text), msg); Accessible.PerformPress += Accessible_PerformPress; int y = (int)y1; int h = (int)(y2 - y1); Accessible.FrameInGtkParent = new Rectangle(0, y, widget.Allocation.Width, h); var cocoaY = widget.Allocation.Height - y - h; Accessible.FrameInParent = new Rectangle(0, cocoaY, widget.Allocation.Width, h); this.widget = widget; this.annotation = ann; this.y = (int)y2; }
public TableRow(PropertyGrid parentGrid) { this.parentGrid = parentGrid; Accessible = new AccessibilityElementProxy(); Accessible.SetRole(AtkCocoa.Roles.AXRow); }