summaryrefslogtreecommitdiff
path: root/libs/canvas/text.cc
AgeCommit message (Collapse)Author
2017-01-19remove use of boost::optional to define "undefined" Canvas::Rect, and use ↵Paul Davis
Rect::empty instead. This commit includes Rect::operator bool() which might be a candidate for removal in a future commit, in an attempt to make the meaning clearer
2016-10-13stop using gkd_pango_context_get() in ArdourCanvas::Canvas and require ↵Paul Davis
concrete instances to supply a Pango::Context; do this for GtkCanvas and Push2Canvas
2016-09-27provide ArdourCanvas::Text::{width,height}()Paul Davis
2016-05-27Crapola - this is an experimental performance hack that must be reverted.nick_m
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-09-06consistent pango-text layout size - fixes #6490Robin Gareus
Use gdk_pango_layout() for all text-size calculations. In Canvas::Text always use the same context (local image surface) for layouting (prior to this, local and window-context mix resulted in different sizes).
2015-06-16fixes for canvas text display on Retina (from Valeriy)Paul Davis
2015-06-13NOOP, reindent code.Robin Gareus
2015-06-13fix crash on OSX displaying MIDI sysex, or similar text.Robin Gareus
2015-04-29make computation of OS X pango text width correction less intrusive/more ↵Paul Davis
efficient. Compute the correction only once after each font specification setting. Conflicts: libs/canvas/canvas/text.h
2015-04-29manually apply grygorii's API to manage a correction for pango errors in ↵Paul Davis
text size computation on OS X
2015-04-29[Summary] Fixed issue when width request from Cavas text returned old width ↵GZharun
value [Reviewed by] Paul Davis Conflicts: libs/canvas/canvas/text.h
2015-04-29Fix method hiding in Canvas::TextPaul Davis
2014-11-07use new canvas colors header as necessaryPaul Davis
2014-11-06changing the clamp_width of an ArdourCanvas::Text needs to potentially ↵Paul Davis
provoke an entire redraw This fixes missing range marker text in sessions where the initial zoom value causes an initial clamp_width of zero
2014-06-30allow Canvas::Text to have outline drawn in a contrasting color (based on ↵Paul Davis
actual color)
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-17a set of 3 fixes that cure Canvas::Text leaving dirty pixels when being ↵Paul Davis
dragged. or might not - testing is non-deterministic, which is alarming
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.
2013-10-28fix computation of Text bounding box to respect _clamped_widthPaul Davis
2013-10-24fix computation of canvas text item bounding boxPaul Davis
2013-06-27workaround/hack/fix for cairo pattern gradient space exceeding 2^16 size limitPaul Davis
2013-06-26move text origin back down, since it was a mistake to move it; alter ↵Paul Davis
computation of text bounding box to more accurate and efficient (not done yet)
2013-06-26tweak position of pango-rendered text image on canvas by 2 pixels upwardPaul Davis
this is an arbitrary tweak but seems to work well thus far
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-04-16add back various functionality to waveviews such as zero line, amplitude scalingPaul Davis
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-15tweak time axis view item text positioning; allow ArdourCanvas::Text to have ↵Paul Davis
its width clamped, and use this as TAVI's get narrow so that text doesn't overflow
2013-04-15Fix dragging objects on the canvas and remove redundant canvas groupsPaul Davis
Delivery of fake motion events to the editor needed the event coordinates to be in canvas space, as they are with "real" events. Editor and other objects had many redundant groups from timbyr's work on gnomecanvas to scroll by moving groups. We don't need this anymore with cairo-canvas (though possibly a stationay background group for the canvas might be useful again one day as in the SAE logo. Its implementation would be fairly different though, since we would have to explicitly move the group on every scroll, since nothing else ever moves on scroll). Also tweaks to text item placement, and switch TimeAxisViewItem from name_pixbuf to name_text, since ArdourCanvas::Text is already "pixbuf optimized".
2013-04-09a variety of fixes for the cairocanvas, but it still buggy as hell handling ↵Paul Davis
events and lots of other stuff
2013-04-08mo' better debugging of canvas "structure" via Item::dump and derivativesPaul Davis
2013-04-06lazy redraw of Canvas::Text imagePaul Davis
2013-04-06pre-render text canvas items so that ::render() is just a blit from an image ↵Paul Davis
surface
2013-04-04commit immediately post linkingPaul Davis
2013-04-04initial commit of hand merging, plus getting "ancient" waf script to work ↵Paul Davis
correctly