aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
AgeCommit message (Collapse)AuthorFilesLines
2024-11-26Bug [#2458]. Add include of cstdint to provide intptr_t and uintptr_t.Neil1-0/+1
2024-08-15Add SCI_STYLESETSTRETCH to support condensed and expanded text styles.Neil1-1/+1
2024-07-03Feature [feature-requests:#1523]. SCI_AUTOCSETSTYLE sets autocompletion font.Martijn Laan1-1/+4
2024-03-23Feature [feature-requests:#1512]. Size ms in initializer list.Zufu Liu1-13/+2
Remove erase() and reset() for items that are not set.
2024-03-15Bug [#2417]. Add elements for inactive additional selectionsNeil Hodgson1-1/+5
SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_TEXT and SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK.
2024-03-14Add ColourRGBA::Grey constructing method to simplify use of grey-scale colours.Neil1-15/+31
Use symbolic constants for colour components, fixing 'magic number' warnings.
2024-03-14Use const iterators where possible.Neil Hodgson1-18/+24
Implement IsDifferentColour to avoid clang-tidy warning about unchecked optional. Share code between SetElementColour and SetElementBase.
2024-03-12Replace magic number 32 with defined MarkerMax (31), adjusting condition.Neil1-4/+4
2023-11-24Feature [feature-requests:#1502] Simplify FlagSet expressions.Zufu Liu1-2/+1
2023-10-10Use global constants for opaque black and white and local constants for greys.Neil1-5/+4
Makes it easier to understand and reduces warnings.
2022-12-09More safety for potentially empty unwraps with ElementColourForced returning aNeil1-0/+9
ColourRGBA which is opaque black if the element not found.
2022-12-09Shorten code with ColourOptional alias for std::optional<ColourRGBA>.Neil1-3/+3
2022-07-31Change default change history markers and indicators.Neil1-12/+12
2022-07-31Add SC_MARK_BAR marker and INDIC_POINT_TOP indicator which are useful for changeNeil1-0/+15
history. Tweak size of INDIC_POINT and INDIC_POINTCHARACTER. Let translucency of INDIC_COMPOSITIONTHICK be adjusted.
2022-07-31Added change history which can display document changes (modified, saved, ...)Neil1-0/+43
in the margin or in the text.
2022-07-22Bug [#2341] Stop including STYLE_CALLTIP when calculating line height.Markus Nißl1-5/+10
2022-03-01Removed duplicate element.Neil1-1/+0
2021-10-30Ensure all ViewStyle fields are initialized.Neil1-14/+0
2021-10-22Add CARETSTYLE_CURSES to draw more than 1 caret on curses terminal.Mitchell Foral1-5/+13
2021-09-28Fix bad layout of monospace text on Cocoa by adding separate fieldNeil1-0/+2
monospaceCharacterWidth for width of monospaced characters.
2021-09-21Remove line end space.Neil1-1/+1
2021-09-17Remove superfluous destruction.Zufu Liu1-5/+1
2021-09-17Add noexcept and constexpr where reasonable.Zufu Liu1-1/+1
2021-09-16Avoid warning from Xcode.Neil Hodgson1-1/+1
2021-09-15Ensure variable initialised.Neil1-1/+1
2021-09-15Avoid some type warningsNeil1-7/+5
2021-09-15More accurate with 'noexcept'.Neil1-1/+1
2021-09-15Use delegating constructor instead of separate Init method.Neil1-113/+111
2021-09-14Use range-for to save font names.Zufu Liu1-2/+2
2021-09-14Remove copying from AllocateExtendedStyles as performed by EnsureStyle.Zufu Liu1-3/+0
2021-09-14Avoid some allocations when checking whether font monospaced.Zufu Liu1-6/+7
2021-09-12Make negative settings for extra ascent and descent safer by ensuring calculatedNeil1-7/+13
ascent and thus line height is at least 1 pixel. Allow 1 point font minimum instead of 2 as this may help with document maps. Document negative extra ascent and descent. Use XYPOSITION for ascent and descent for more coherent types and fewer casts but floor the values when retrieving from Surface so behaviour is unchanged.
2021-08-31Simplify Style types FontSpecification, FontMeasurements, Style, FontRealised.Neil1-29/+21
Rely on shared_ptr and use standard copying where possible. Check extraFontFlag and checkMonospaced for FontSpecification comparisons.
2021-08-24Feature [feature-requests:#841] SCI_SETCARETLINEHIGHLIGHTSUBLINE enablesZufu Liu1-0/+1
highlighting just the subline with the caret when wrapping is on.
2021-07-31Implement StyleSetCheckMonospaced.Neil1-0/+19
2021-06-09Reduce casts by defining methods for common conversions.Neil1-1/+1
2021-05-30Fix GetFontQuality. Simplify code that calls FlagSet.Neil1-2/+2
2021-05-28Rename 'NO_FOCUS' to 'INACTIVE' to better match platform terms.Neil1-5/+5
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-141/+128
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-22Encapsulate whether a margin shows folding.Neil1-0/+4
2021-05-22Rename ColourAlpha to ColourRGBA to avoid clashes when a ColourAlpha typedefNeil1-26/+26
will be published in externally visible header.
2021-05-19Bug [#2253]. Remove SC_ELEMENT_CARET_SECONDARY as it caused unexpected change toNeil1-2/+0
caret appearance for empty selection as empty selections can not be primary.
2021-05-14Add elements for hot spots SC_ELEMENT_HOT_SPOT_ACTIVE andNeil1-3/+2
SC_ELEMENT_HOT_SPOT_ACTIVE_BACK.
2021-05-14Add SC_ELEMENT_WHITE_SPACE_BACK to set the background colour of visibleNeil1-5/+3
whitespace.
2021-05-14Feature [feature-requests:#1402] Add SC_ELEMENT_WHITE_SPACE to set the colour ofYX Hao1-5/+15
visible whitespace including translucency.
2021-05-14Add SCI_MARKERSETLAYER to define layer on which to draw content area markers.Neil1-3/+7
This replaces the use of SC_ALPHA_NOALPHA for markers.
2021-05-12Switch caret line background colour to SC_ELEMENT_CARET_LINE_BACK element andNeil1-9/+10
add SetCaretLineLayer. Older caret line APIs SCI_SETCARETLINEVISIBLE, SCI_SETCARETLINEBACK, SCI_SETCARETLINEBACKALPHA now discouraged.
2021-05-11When setting or resetting elements, redraw if caused change.Neil1-10/+17
2021-05-11Add tests for element APIs. Fix SCI_GETELEMENTCOLOUR to return value includingNeil1-0/+16
alpha. Set selection and caret elements as allowing translucency.
2021-05-10Change the way that selections and carets are drawn to use the element APIs.Neil1-12/+30