summaryrefslogtreecommitdiff
path: root/libs/canvas/rectangle.cc
AgeCommit message (Collapse)Author
2016-09-27don't do as much work if a Rectangle has no outline width or outline what valuesPaul Davis
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-10-04globally remove all trailing whitespace from ardour code base.Paul Davis
Paul Davis was responsible for introducing almost all of this.
2015-04-29correct implementation for Rectangle::vertical_fraction()Paul Davis
2015-04-29add Rectangle::vertical_fraction() as a convenience methodPaul Davis
Conflicts: libs/canvas/rectangle.cc
2015-03-20fix redraw of automation ControlPointsRobin Gareus
2015-02-11simplify Canvas::Rectangle rendering to avoid unnecessary nonsense, and ↵Paul Davis
remove TimeRectangle
2015-02-09correct drawing of rectangle borders.Paul Davis
They need to use fractional coordinates, and the border position needed generalizing for other border widths. See verbose comment for details
2015-01-08Fix bounding box of rectangles with wide outlines.David Robillard
2014-11-07when drawing only part of a Canvas::Rectangle outline, we only need to do ↵Paul Davis
the cairo-pixel alignment math for the axis perpendicular to the edge
2014-11-05correct the rendering of Rectangle outlines, and the computation of their ↵Paul Davis
bounding box
2014-11-03use ArdourCanvas::TimeRectangle for regions, notes, markersPaul Davis
2014-11-03add new TimeRectangle to ArdourCanvasPaul Davis
2014-10-31more changes for rectangle outliningPaul Davis
2014-10-31comment fix and expansion re: Canvas::Rectangle outlinePaul Davis
2014-09-22alter the way the border of Canvas::Rectangle is drawn to meet the intent ↵Paul Davis
that a single pixel border passes through the corner coordinates
2014-09-01Match canvas outline to rectangleRobin Gareus
It looks like we're currently [consistently] off by 1px everywhere. The width-1 is compensated by TimeAxisViewItem::RIGHT_EDGE_SHIFT = 1
2014-06-21refactor Canvas so that all Items have children; add Container abstract base ↵Paul Davis
class; rename Group as "Layout" and retain only drawing semantics
2014-06-12change Canvas heirarchy and constructorsPaul Davis
Items no longer need a parent group (they require a Canvas pointer instead), so all constructors have been rationalized and have two variants, one with a parent and one with a canvas. All Items now inherit from Fill and Outline, to banish diagonal inheritance and virtual base classes and all that. There were zero changes to the Ardour GUI arising from these changes.
2014-06-06When rendering a Canvas::Rectangle take its _position into account, even ↵Paul Davis
though in general this is always (0,0) within its parent
2014-03-11don't queue redraws when various canvas item properties are "reset" to the ↵Paul Davis
same value, plus supporting functions
2014-03-09stupid hack to fix rectangle damage noisePaul Davis
2014-03-07use fill transparency detection to avoid rendering transparent (invisible) ↵Paul Davis
rectangle fill area
2014-02-25tweak canvas rect drawing to correctly place bottom edge of rectangle inside ↵Paul Davis
the bounds (cairo works in mysterious ways)
2014-02-14since we now expand rectangles to the right always, adjust the bounding box ↵Paul Davis
computation
2014-02-13remove debug messagePaul Davis
2014-02-13fix up some issues with precise placement of ArdourCanvas::Rectangle ↵Paul Davis
frame/outline
2014-02-13Guard some Debug output so that it only appears when applicable ↵John Emmas
('Item::name' is only available when CANVAS_DEBUG is defined)
2014-01-10final (?) tweaks to rectangle renderingPaul Davis
2014-01-08tweak rectangle bounding box computationPaul Davis
2014-01-07mostly fix conceptual error in how canvas rectangle frames are drawnPaul Davis
2013-10-31finally (?) fix up logic for rectangle drawing (fill+stroke) to tackle what ↵Paul Davis
is hopefully the last of the expose problems
2013-10-24fix computation of rectangle bounding boxPaul Davis
2013-06-27fix drawing of rectangles larger than 2000 pixels, caused by silly ↵Paul Davis
hard-coding of width limit
2013-06-27workaround/hack/fix for cairo pattern gradient space exceeding 2^16 size limitPaul Davis
2013-06-24an awful lot of tweaks to drawing detailsPaul Davis
2013-06-18fix rect redraw problems caused by intersection requiring the usual 0.5 ↵Paul Davis
expansion (though consider a more general fix for this at teh group level)
2013-06-18basically operational switch to canvas drawing coordinates, although text ↵Paul Davis
and waves don't work, and redraw areas are too small
2013-05-02move setup_outline_context() to a more sensible shared locationPaul Davis
2013-04-17fix clamping of line and rect coordinates to avoid issues with cairo when ↵Paul Davis
drawing way outside a surface's dimensions; move various coordinate methods down to Canvas, because they don't require GTK information; make visible_area() a Canvas virtual method so that we don't have to cast to call it
2013-04-15add headers to all canvas .cc and .h filesPaul Davis
2013-04-15remove all xml++.h inclusion by canvas implementationsPaul Davis
2013-04-15remove all XML related API from canvas. it may have been useful during ↵Paul Davis
development, but it is just a distraction - we will NEVER be saving or restoring canvas state via XML or any kind of serialized state
2013-04-12change all frame_to_pixel and pixel_to_frame to sample_to_pixel and ↵Paul Davis
pixel_to_sample
2013-04-12slightly optimize drawing of rectangles with all 4 sides outlined to avoid ↵Paul Davis
multiple paths etc
2013-04-11add (bezier) curves to canvas, use for automation lines; fix issue with ↵Paul Davis
rectangles missing their upper line segment; more cairo canvas fixes
2013-04-04initial commit of hand merging, plus getting "ancient" waf script to work ↵Paul Davis
correctly