aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
AgeCommit message (Collapse)AuthorFilesLines
2019-02-24Remove font caching on Win32.Neil1-107/+7
2019-01-13Replace the only use of a function from <cctype> with a Scintilla function.Neil1-1/+0
Remove inclusion of <cctype> except in lexers as cctype functions often behave poorly and may crash for out of bounds arguments.
2019-01-06Bug [#2068]. Fix some clang-tidy warnings.Zufu Liu1-4/+4
2018-10-17Use nullptr, default brace and member initialisation for some simple cases.Neil1-39/+29
2018-07-31Change lifetime of textLayout for bidirectional so it is always released inNeil1-3/+4
ScreenLineLayout destructor. Allows multiple ScreenLineLayout calls and fixes a leak when only FindRangeIntervals called.
2018-07-10Use Select* macros from windowsx.h to avoid casts and for consistency.Neil1-8/+8
2018-06-02Define IScreenLineLayout as the main interface for implementing bidirectionalNeil1-216/+166
features by platform code. Implement IScreenLineLayout for Win32 / DirectWrite as ScreenLineLayout.
2018-05-24Fix warnings. Add const, constexpr, and noexcept. Initialize. Standard methods.Neil1-59/+64
Replace 0 and NULL with nullptr for COM, DirectWrite and least ambiguous cases.
2018-05-23Implement bidirectional mode bidiL2R for DirectDraw on Win32.Neil1-6/+419
2018-05-23Add definitions for bidirectional support to Platform.h and provide emptyNeil1-0/+41
implementations for each platform.
2018-05-22Add GradientRectangle method to Surface to draw rectangles with vertical orNeil1-0/+58
horizontal gradients.
2018-05-18Add <vector> to files that include Platform.h as likely needed in future.Neil1-1/+1
2018-05-15Replace ELEMENTS with std::size and drop inclusion of StringCopy.h.Neil1-1/+0
2018-05-14Avoid using 0 as NULL pointer.Neil1-1/+1
2018-05-14Fix warning.Neil1-1/+1
2018-05-14Use string_view for UniConversion functions.Neil1-6/+6
2018-05-14Modernize Platform.h (4) - update Surface to use string_view for text arguments.Neil1-60/+62
2018-05-14Modernize Platform.h (3) - update Surface to delete WidthChar, use size_t forNeil1-34/+7
Polygon and delete the standard copy and assignment methods.
2018-05-14Modernize Platform.h (2) - noexcept, const, constexpr.Neil1-12/+12
ColourDesired is an int instead of long for consistency over different platforms. Changes made to Point, PRectangle, and ColourDesired. RoundXYPosition removed.
2018-05-14Modernize Platform.h (1) - noexcept, const, standard methods.Neil1-10/+8
Changes made to FontParameters, Font, Window, ListBoxEvent, ListBox, Menu, DynamicLibrary, and Platform.
2018-05-14Include <string_view> to allow future use in Platform interface and Unicode.Neil1-0/+1
2018-05-01Encapsulate conversions between WindowID and HWND and hoist cast out of switch.Neil1-26/+31
2018-05-01Use RectFromPRectangle to avoid casts.Neil1-1/+3
2018-04-30Add conversion function from Scintilla Point to Win32 POINT.Neil1-28/+36
Use namespaces more consistently. Fix typo.
2018-04-30Use Win32 types and avoid casting. Move code to avoid warnings.Neil1-7/+7
Use const where there is a benefit.
2018-04-30Use message parameter access macros provided by Windows instead of casting.Neil1-5/+3
2018-04-30Use C++ casts in preference to C casts. Use nullptr instead of 0.Neil1-3/+3
2018-04-27Use floor instead of casts when centring bitmaps inside the given rectangle.Neil1-4/+4
2018-04-26Use <chrono> for platform-independent timing and remove ElapsedTime.Neil1-48/+0
Also use #if for painting measurement as there are 7 sections of code to enable.
2018-04-25Remove variables and casts that are not needed.Neil1-4/+2
2018-04-20Remove test that is always true.Neil1-1/+1
2018-04-20Fix warnings from MSVC analyze and reduce casts.Neil1-84/+100
2018-04-20Feature [feature-requests:#1215]. Use standard functions in prference toNeil1-18/+4
RoundXYPosition, XYMinimum, and XYMaximum.
2018-04-19Use ColourDesired constructor explicitly to make more obvious.Neil1-3/+3
Constructor not marked explicit as may be used in external platform layers.
2018-04-15Feature [feature-requests:#1215]. Stop warning about virtual call in destructor.Neil1-4/+14
2018-04-04Remove automatic detection of Direct2D support during build.Neil1-1/+1
DISABLE_D2D may still be defined to remove Direct2D features.
2018-03-31Match struct initialization exactly to declaration to avoid warnings from clang.Neil1-3/+5
2018-03-22Feature [feature-requests:#1211]. Use pre-computed table for UTF8BytesOfLead.Zufu Liu1-11/+8
Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests.
2018-03-16Remove line-end white space.Neil1-1/+1
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-4/+0
interfaces ILexer4 and IDocument.
2017-06-12Removed unused functions and methods from Platform.h.Neil1-110/+2
Replaced Platform::Clamp with Sci::clamp but will later change this to std::clamp once on full C++17 compilers. Drop MouseButtonBounce workaround for very early GTK+/Linux.
2017-06-11Implement SCN_AUTOCSELECTIONCHANGE notification.Neil1-9/+23
2017-06-09Use min and max from std instead of own version from platform.Neil1-6/+11
2017-05-08Improve Direct2D text measurement code by eliminating extraneous variables,Neil1-33/+33
limiting scope, making comments more accurate, and avoiding warnings from clang analyze.
2017-05-02More consistent use of size_t when converting Unicode formats.Neil1-1/+1
2017-05-02Use unique_ptr for drawing surfaces and don't check for allocation failureNeil1-44/+36
as that throws an exception. Also use unique_ptr for tab stop positions.
2017-04-22Include <memory> for std::unique_ptr.Neil1-0/+1
2017-04-21More consistent deletion of standard methods.Neil1-3/+3
2017-04-19Use =delete for unwanted functions.Neil1-9/+9
2017-04-19Drop "virtual" when "override" used.Neil1-19/+19