aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Style.cxx
AgeCommit message (Collapse)AuthorFilesLines
2024-08-15Add SCI_STYLESETSTRETCH to support condensed and expanded text styles.Neil1-0/+3
2023-10-10Use global constants for opaque black and white and local constants for greys.Neil1-2/+2
Makes it easier to understand and reduces warnings.
2022-10-04Feature [feature-requests:#1453] Added SCI_STYLESETINVISIBLEREPRESENTATION toFerdinand Oeinck1-1/+2
make it easier to edit around invisible text. This also allows representing long lexemes with a single character to provide a summarized view.
2021-08-31Simplify Style types FontSpecification, FontMeasurements, Style, FontRealised.Neil1-95/+22
Rely on shared_ptr and use standard copying where possible. Check extraFontFlag and checkMonospaced for FontSpecification comparisons.
2021-07-31Implement StyleSetCheckMonospaced.Neil1-0/+1
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-9/+11
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-4/+4
will be published in externally visible header.
2021-04-26Avoid some warnings.Neil1-3/+2
2021-04-25Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.Neil1-4/+4
Change ColourDesired to ColourAlpha in styles. Remove ColourDesired.
2021-03-19Switch enum to enum class.Neil1-4/+4
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil1-0/+1
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-0/+1
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Change Font to an interface and stop using FontID. Fonts are shared andNeil1-28/+3
reference counted using std::shared_ptr. This optimizes memory and reduces potential for allocation bugs.
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+1
2020-09-18Fix building with Xcode 12 by defining move constructors for FontAlias, Style,Neil1-0/+5
and PositionCacheEntry.
2020-04-07Use noexcept and const where possible.Neil1-5/+5
2019-01-15Fix use of "0" for nulls and mark methods "noexcept" where simple.Neil1-10/+10
2018-10-11Replace NULL and 0 with nullptr in clear cases of pure C++ code.Neil1-3/+3
2018-05-31Allow std::unique_ptr to be used more widely.Neil1-0/+1
2018-05-18Can use const now that Font::GetID is const.Neil1-1/+1
2018-05-18Add <vector> to files that include Platform.h as likely needed in future.Neil1-0/+1
2018-05-14Include <string_view> to allow future use in Platform interface and Unicode.Neil1-0/+1
2018-04-28Rename method to avoid confusion between base and derived classes.Neil1-3/+3
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-2/+0
interfaces ILexer4 and IDocument.
2017-04-14Ensure capitalHeight initialised.Neil1-0/+1
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-2/+0
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/+2
tool set will not indirectly include <stdexcept>.
2015-03-29Bug [#1682] Removed the ascent member of Font and all wxWidgets-specific code.Neil1-3/+0
2014-06-22Avoid warning from g++.Neil1-1/+1
2014-06-22Drawing and measuring should not change ViewStyle which is set by the containerNeil1-0/+4
so mark ViewStyle parameters as const. Provide a FontAlias copy constructor and use it to work around non-const Font arguments to Surface when sourced from const ViewStyle.
2013-05-02Replacing raw pointers and allocations with std::vector and std::map.nyamatongwe1-4/+23
2012-03-03Remove unused variables. Bug #3494744. From Marko Njezic.nyamatongwe1-2/+0
2011-09-25Palette support removed.nyamatongwe1-8/+8
2011-08-07Implement APIs for fractional font sizes and a range of weights.nyamatongwe1-10/+10
2011-06-06Fix problem compiling on wxWidgets. Bug #3306156.nyamatongwe1-0/+3
From Morten MacFly.
2011-06-02Avoid warnings due to incomplete initialization.nyamatongwe1-2/+2
2011-05-25Code for wxWidgets did not compile so removing.nyamatongwe1-3/+0
2011-03-30Encapsulate the aliasing of Font IDs.nyamatongwe1-1/+5
2011-03-30Optimize font use by only allocating platform font resources for unique fontsnyamatongwe1-78/+58
and using aliases of these in the Style objects. Font measurement is also performed once for each unique font and the results copied into each style. No change is needed in callers. On PLAT_WX, the font ascent is cached in the Font object when Ascent is called but this is not copied into the aliases as ascent is protected. Therefore the code that copies the FontID into the alias also calls Ascent to ensure the ascent value is cached.
2010-03-14More members initialised in constructor even though they will be filled innyamatongwe1-0/+7
later by Realise.
2009-11-02Added setting for font quality to allow application to choose anti-aliased,nyamatongwe1-1/+1
non-anti-aliased or lcd-optimized text.
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
2004-03-29Patch from Robin Dunn to pass an extra flag down tonyamatongwe1-5/+5
font rendering to allow a platform-specific tweak.
2003-03-20Patch from Simon Steele to implement the hotspot style and associatednyamatongwe1-5/+8
notifications.
2001-12-20Added changeable attribute to styles that defaults to true. When it isnyamatongwe1-5/+10
false, text in this style is read only.
2001-10-28Removed platform-specific headers from Platform.h and thus stoppednyamatongwe1-4/+4
visibility of these headers to most code.
2001-05-22Support for forced upper and lower case styles.nyamatongwe1-4/+23
2001-04-10Calltip size fixing and listbox border tweaking.nyamatongwe1-25/+25
2001-02-24Updated documentation comments from Philippe.nyamatongwe1-1/+3
2001-01-28Updating copyright notices for 2001.nyamatongwe1-1/+1