aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.h
AgeCommit message (Collapse)AuthorFilesLines
2024-07-03Feature [feature-requests:#1523]. SCI_AUTOCSETSTYLE sets autocompletion font.Martijn Laan1-0/+1
2022-12-09More safety for potentially empty unwraps with ElementColourForced returning aNeil1-0/+1
ColourRGBA which is opaque black if the element not found.
2022-12-09Mark OptionalColour as noexcept.Neil1-1/+1
2022-12-09Shorten code with ColourOptional alias for std::optional<ColourRGBA>.Neil1-6/+8
2022-07-31Add SC_MARK_BAR marker and INDIC_POINT_TOP indicator which are useful for changeNeil1-0/+1
history. Tweak size of INDIC_POINT and INDIC_POINTCHARACTER. Let translucency of INDIC_COMPOSITIONTHICK be adjusted.
2022-07-22Move EditView::hideSelection to (inverted) SelectionAppearance::visible so thatNeil1-0/+2
it can differ between screen and print. Add GetSelectionHidden to allow testing of HideSelection.
2021-10-30Ensure all ViewStyle fields are initialized.Neil1-17/+17
2021-10-22Add CARETSTYLE_CURSES to draw more than 1 caret on curses terminal.Mitchell Foral1-2/+2
2021-09-17Add noexcept and constexpr where reasonable.Zufu Liu1-1/+1
2021-09-15Avoid some type warningsNeil1-4/+1
2021-09-15More accurate with 'noexcept'.Neil1-1/+1
2021-09-15Use delegating constructor instead of separate Init method.Neil1-2/+1
2021-09-12Make negative settings for extra ascent and descent safer by ensuring calculatedNeil1-2/+2
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-8/+2
Rely on shared_ptr and use standard copying where possible. Check extraFontFlag and checkMonospaced for FontSpecification comparisons.
2021-08-24Remove line end white space.Neil1-1/+1
2021-08-24Feature [feature-requests:#841] SCI_SETCARETLINEHIGHLIGHTSUBLINE enablesZufu Liu1-0/+2
highlighting just the subline with the caret when wrapping is on.
2021-06-09Reduce casts by defining methods for common conversions.Neil1-2/+2
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-49/+53
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/+1
2021-05-22Rename ColourAlpha to ColourRGBA to avoid clashes when a ColourAlpha typedefNeil1-16/+16
will be published in externally visible header.
2021-05-14Add elements for hot spots SC_ELEMENT_HOT_SPOT_ACTIVE andNeil1-6/+0
SC_ELEMENT_HOT_SPOT_ACTIVE_BACK.
2021-05-14Add SC_ELEMENT_WHITE_SPACE_BACK to set the background colour of visibleNeil1-3/+2
whitespace.
2021-05-14Feature [feature-requests:#1402] Add SC_ELEMENT_WHITE_SPACE to set the colour ofYX Hao1-1/+2
visible whitespace including translucency.
2021-05-14Add SCI_MARKERSETLAYER to define layer on which to draw content area markers.Neil1-2/+0
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-7/+3
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-1/+2
2021-05-10Change the way that selections and carets are drawn to use the element APIs.Neil1-15/+6
2021-05-10Add elementBaseColours to hold default or system derived colours.Neil1-0/+4
Editor::UpdateBaseElements can be overridden by platform layers to set base colours although they should also do this when they detect changes in system settings.
2021-05-05Hoist selection text colour into SelectionForeground function and whetherNeil1-3/+5
there is a selection text colour into ViewStyle::SelectionTextDrawn. Pass EditModel to SelectionBackground so focus can be used in a future change. Simplify code, use const and better names. Prefer explicit iterator type to auto in cases where it makes little difference.
2021-04-26Avoid some warnings.Neil1-2/+2
2021-04-26Extract related groups of fields out of ViewStyle into new structs.Neil1-22/+62
Size of ViewStyle makes it more difficult to understand and this helps a bit.
2021-04-26Move hotspotSingleLine from ViewStyle to EditModel as it defines behaviour, notNeil1-1/+0
appearance.
2021-04-25Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.Neil1-26/+25
Change ColourDesired to ColourAlpha in styles. Remove ColourDesired.
2021-04-20Bug [#2027]. Implement font locale SCI_SETFONTLOCALE on Win32 using DirectWrite.Neil1-1/+4
2021-04-05Change IndentView, WhiteSpaceVisibility, and TabDrawMode to enum class.Neil1-4/+4
2021-03-29Add SCI_SETELEMENTCOLOUR and related APIs to change colours of visible elements.Neil1-0/+6
Implement SC_ELEMENT_LIST* to change colours of autocompletion lists.
2021-03-17Change Font to an interface and stop using FontID. Fonts are shared andNeil1-1/+1
reference counted using std::shared_ptr. This optimizes memory and reduces potential for allocation bugs.
2020-08-25Move SCI_MULTIEDGEADDLINE impleemntation into ViewStyle as it is too complex forNeil1-0/+2
switch case in Editor.
2020-07-16Make WrapMode an enum class for more type safety.Neil1-1/+1
2020-06-12Bug [#2141]. Implement end of line annotations.Prakash Sahni1-0/+2
2020-06-11Use noexcept where safe and maintainable.Neil1-5/+5
2020-03-19Feature [feature-requests:1302] Add IsCaretVisible to simplify DrawCarets.Zufu Liu1-0/+1
2019-06-21Bug [#2106]. Place line caret in correct location for line caret with block OVR.Neil1-0/+1
That is for CARETSTYLE_LINE | CARETSTYLE_BLOCK mode.
2019-04-08Use noexcept where reasonable in ViewStyle.Neil1-16/+16
2019-04-08Rename FontNames to UniqueStringSet and move into UniqueString.Neil1-15/+2
It may be useful in more situations than just font names.
2019-03-19Make constructors of simple classes noexcept.Neil1-4/+4
2019-02-05Feature [feature-requests:#1217]. Change API so block just for overstrike.Zufu Liu1-0/+4
2018-05-14Modernize Platform.h (2) - noexcept, const, constexpr.Neil1-2/+2
ColourDesired is an int instead of long for consistency over different platforms. Changes made to Point, PRectangle, and ColourDesired. RoundXYPosition removed.
2018-04-28Delete standard functions on classes where there could be attempts to copy.Neil1-0/+6
2018-04-26Change type to avoid casts.Neil1-1/+1