aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LineMarker.cxx
AgeCommit message (Collapse)AuthorFilesLines
2019-04-07Make XPM, RGBAImage, and LineMarker copyable and noexcept moveable.Neil1-29/+29
This simplifies and optimizes their use in other classes and containers.
2019-04-07Feature [feature-requests:#1276]. Add SC_MARK_VERTICALBOOKMARK.Zufu Liu1-0/+10
2018-05-14Modernize Platform.h (4) - update Surface to use string_view for text arguments.Neil1-4/+4
2018-05-14Modernize Platform.h (3) - update Surface to delete WidthChar, use size_t forNeil1-7/+6
Polygon and delete the standard copy and assignment methods.
2018-05-14Include <string_view> to allow future use in Platform interface and Unicode.Neil1-0/+1
2018-05-01Add IntegerRectangle to simplify drawing lines without casting.Neil1-38/+39
2018-03-15Use forward class definitions of XPM and RGBAImage so only code that uses themNeil1-0/+39
needs to #include "XPM.h". Move definition of standard methods on LineMarker from header to implementation to reduce included text and further isolate use of XPM and RGBAImage.
2018-03-01Mark variables as const where simple.Neil1-9/+9
2018-03-01Use make_unique in preference to new.Neil1-3/+3
From Effective Modern C++ Item 21.
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-2/+0
interfaces ILexer4 and IDocument.
2017-06-09Use min and max from std instead of own version from platform.Neil1-1/+2
2017-04-22Using unique_ptr to simplify ownership of images, case folder, and list box.Neil1-7/+4
2017-04-22Include <memory> for std::unique_ptr.Neil1-0/+1
2017-04-06Added const where possible.Neil1-5/+5
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-2/+2
where it may be needed in the future.
2015-07-04Make std::exception visible to all core code to remove chance that a differentNeil1-0/+1
tool set will not indirectly include <stdexcept>.
2014-11-19Platform overrides for some drawing and behaviour to benefit PLAT_CURSES.Neil1-0/+5
From Mitchell Foral.
2014-07-24Remove false shadowing between local variables and enum values.Neil1-48/+48
2014-06-23Make drawing of markers const.Neil1-1/+1
2014-05-03Replacing the int-based constructors for Point and PRectangle with FromIntsNeil1-41/+41
static methods as there were too many failures with mixed types and not-quite matching types.
2014-05-03Turn on MSVC 'possible loss of data' warnings and add explicit casts.Neil1-44/+44
2014-05-03Using casts and an alternate PRectangle constructor to make XYPOSITION <-> intNeil1-2/+2
conversions and other conversions more consistent.
2014-05-03Convenience Point constructor from integers as common source of shapes.Neil1-5/+5
2014-01-21Added ELEMENTS macro and use it to clarify determining size of arrays.Neil Hodgson1-12/+8
2014-01-21Implement new marker symbol SC_MARK_BOOKMARK.Neil Hodgson1-1/+12
2014-01-18With Direct2D draw circles with a 1 pixel larger radius to better matchNeil1-4/+4
other platforms and ensure for folding markers that the '+' or '-' do not touch the circle. Change order of drawing so that circles are drawn after connecting lines so overwrite any tails.
2014-01-18For SC_MARK_ARROWS, scale the arrows to fit the line height.Neil1-4/+6
Avoid drawing one arm of each arrow longer than the other on Cocoa. The weight of the strokes is more uniform on Windows/Direct2D and Cairo.
2013-02-18Fix drawing of markers at negative coordinates due to integer truncation.nyamatongwe1-2/+3
For elastic over-shoot scrolling, Scintilla may draw lines before 0 so draws markers at negative coordinates. Normal float->int coercion uses truncation so that markers will be drawn a pixel away from where they should be for consistent placement within the marker space. If scrolling causes drawing in slices, a line may be drawn twice.
2012-07-21Scale factor implemented for RGBAImages to allow for high definition markers ↵nyamatongwe1-6/+6
on retina displays.
2012-03-01Bug #3494492. Change aveCharWidth in FontMeasurements to actually storenyamatongwe1-1/+1
fractional width. This change complements change set 3994. Make WidthText() and AverageCharWidth() actually return fractional widths under Direct2D. From Marko Njezic.
2012-02-29Centre RGBA markers in all cases including when larger than allocation. Bug ↵nyamatongwe1-1/+7
#3494184.
2012-02-17Draw markers horizontally off center only on textual margins. Bug #3488696.Marko Njezic1-3/+3
2012-02-17Make fold tail markers vertically centered.Marko Njezic1-13/+12
2011-09-25Palette support removed.nyamatongwe1-68/+59
2011-07-02Folding related fixes. Initiated by bug #3323805.Marko Njezic1-2/+10
Make fold highlighting follow closely the actual folding implementation. Introduce a concept of fold headers with a tail to accommodate certain fold highlighting situations. Optimize PaintSelMargin(), so it doesn't waste time with fold markers, unless really necessary. Make EnsureLineVisible() find right parent, when called on whitespace line. Fix wrong fold tail marker when needWhiteClosure is true.
2011-06-25Initial implementation of RGBA images.nyamatongwe1-0/+13
2011-06-20Properly highlight fold markers on sub lines. Bug #3323015.Marko Njezic1-3/+1
This complements fold markers highlighting change from revision 3619, which only fixed part of the problem. Changes from revision 3620 have been reverted, as they cause line to be drawn out of bounds and overlap with previously drawn marker above. They are also no longer needed, with this change.
2011-04-27Fix for fold markers not connecting. Bug #3292474.nyamatongwe1-1/+1
From Jérôme LAFORGE.
2011-04-27Fold marker fixes for wrapped lines. Bug #3291579.nyamatongwe1-0/+2
From Marko Njezic.
2011-04-07Add highlighting of current folding block. Feature #3147069.nyamatongwe1-37/+93
APIs MarkerEnableHighlight and MarkerSetBackSelected. From Jérôme Laforge.
2011-04-07Update copyright year.nyamatongwe1-1/+1
2010-11-05Undo previous change to folding markers as can be fixed Cairo drawingnyamatongwe1-13/+13
can be fixed in PlatGTK.cxx.
2010-11-05Change fold markers to connect better with Cairo drawing thatnyamatongwe1-13/+13
avoids last pixel with LineTo. Changed RectangleDraw and Ellipse to align better with lines and so match fold markers.
2010-02-17Formatting whitespace.nyamatongwe1-2/+2
2009-06-01Don't display SC_MARK_AVAILABLE markers.nyamatongwe1-1/+2
2009-05-27Added SC_MARK_UNDERLINE from Stephan Deibel.nyamatongwe1-1/+1
2008-01-19Added SC_MARK_LEFTRECT margin marker.nyamatongwe1-0/+4
2007-06-01integrate OS X support for scintilla. a big patch with a little commit ↵scaraveo1-0/+4
message :) - now uses namespaces (optionally for non-os x) to avoid conflicts with OS X libraries - several fixes in the OS X layer since the branch was commited in 2005 - used in Komodo since 2005, so pretty stable
2005-04-09SC_MARK_FULLRECT from Robert Roessler.nyamatongwe1-1/+3
2003-01-10Moved XPM code out to XPM file.nyamatongwe1-143/+5