aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Geometry.h
AgeCommit message (Collapse)AuthorFilesLines
2024-03-14Add ColourRGBA::Grey constructing method to simplify use of grey-scale colours.Neil1-1/+5
Use symbolic constants for colour components, fixing 'magic number' warnings.
2023-12-01Remove gcc Wconversion warnings from header.Neil1-2/+3
2023-10-10Use global constants for opaque black and white and local constants for greys.Neil1-0/+3
Makes it easier to understand and reduces warnings.
2023-10-10Use maximumByte constant and share byte to float conversion calculation.Neil1-14/+18
2023-04-13Use & instead of cast to avoid warning in header.Neil1-3/+4
Use named constant for mask that chooses RGB part.
2023-01-16Use intervals for drawing.Neil1-0/+11
2023-01-09Use unsigned literal and temporary to stop conversion warnings for each ↵Neil1-4/+6
includer.
2022-09-02Add PixelAlignCeil and call PixelAlign* to avoid repeated code.Markus Nißl1-0/+1
2021-09-15Move colour mixing implementations into implementation file.Neil1-18/+2
Avoids some warnings but drops constexpr. Use MixedWith in PlatWin for GDI instead of local implementation. Add unit tests for Geometry.
2021-08-24Remove line end white space.Neil1-4/+4
2021-06-09Reduce casts by defining methods for common conversions.Neil1-0/+4
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-7/+1
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
2021-05-22Rename ColourAlpha to ColourRGBA to avoid clashes when a ColourAlpha typedefNeil1-25/+25
will be published in externally visible header.
2021-05-14Add method to mix colours in a proportion.Neil1-0/+11
2021-05-12Switch caret line background colour to SC_ELEMENT_CARET_LINE_BACK element andNeil1-0/+4
add SetCaretLineLayer. Older caret line APIs SCI_SETCARETLINEVISIBLE, SCI_SETCARETLINEBACK, SCI_SETCARETLINEBACKALPHA now discouraged.
2021-05-11Add tests for element APIs. Fix SCI_GETELEMENTCOLOUR to return value includingNeil1-0/+4
alpha. Set selection and caret elements as allowing translucency.
2021-05-04Mark WidthF const noexcept and remove 'f' suffixes as XYPOSITION is now double.Neil1-4/+4
2021-05-03Rename Opaque to WithoutAlpha as it returns a colour with 0 alpha. New OpaqueNeil1-1/+5
method returns a colour with maximum (0xff) alpha.
2021-04-25Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.Neil1-44/+26
Change ColourDesired to ColourAlpha in styles. Remove ColourDesired.
2021-03-26Bug [#2224]. Switch XYPOSITION to double so it has more precision to fixNeil1-3/+6
problems with very long documents. Fixes uneven line heights on Cocoa after around 1.1 million lines.
2021-03-26Avoid warning for overflow.Neil1-1/+1
2021-03-25Add conversion from ColourDesired to Fill as that avoids explicit constructors.Neil1-0/+3
2021-03-25Shorten names as containers provide context.Neil1-7/+7
2021-03-19Add Geometry.cxx for geometric and colour operations too complex for headers.Neil1-7/+94
Add FillStroke to hold parameters for drawing shapes.
2021-03-19Switch enum to enum class.Neil1-0/+6
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+209