aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
AgeCommit message (Collapse)AuthorFilesLines
2019-03-09Backport: Use noexcept and constexpr where possible and reasonable.mitchell1-37/+31
Backport of changeset 7280:9cf6a15d6c85, but removed constexpr since it is not supported in C++11.
2019-02-24Backport: Remove font caching on Win32.Neil1-107/+7
Backport of changeset 7279:ad1559729b0f.
2019-01-13Backport: Replace the only use of a function from <cctype> with a Scintilla ↵Neil1-1/+0
function. Remove inclusion of <cctype> except in lexers as cctype functions often behave poorly and may crash for out of bounds arguments. Backport of changeset 7228:348e55f8107c.
2019-01-06Backport: Bug [#2068]. Fix some clang-tidy warnings.Zufu Liu1-4/+4
Backport of changeset 7195:ce4394f12c76.
2018-10-17Backport: Use nullptr, default brace and member initialisation for some ↵Neil1-39/+29
simple cases. Backport of changeset 7119:32e2131e1f04.
2018-07-10Backport: Use Select* macros from windowsx.h to avoid casts and for consistency.Neil1-8/+8
Backport of changeset 7062:5884391d3e4d.
2018-05-24Backport: Fix warnings. Add const, constexpr, and noexcept. Initialize. ↵Neil1-53/+53
Standard methods. Replace 0 and NULL with nullptr for COM, DirectWrite and least ambiguous cases. Backport of changeset 6974:e99161ef7bdd.
2018-05-25Backport: Add GradientRectangle method to Surface to draw rectangles with ↵mitchell1-0/+58
vertical or horizontal gradients. Backport of changeset 6965:90c71d69e3b6.
2018-05-15Backport: Drop inclusion of StringCopy.h where possible.Neil1-1/+0
Backport of changeset 6951:b2a17a08a1f8.
2018-05-14Backport: Avoid using 0 as NULL pointer.Neil1-1/+1
Backport of changeset 6948:b75edf4d00d3.
2018-05-25Backport: Modernize Platform.h (3) - update Surface to delete WidthChar, use ↵mitchell1-34/+7
size_t for Polygon and delete the standard copy and assignment methods. Backport of changeset 6940:89fd29243232.
2018-05-14Backport: Modernize 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. Backport of changeset 6939:7441dcb96e6a.
2018-05-14Backport: Modernize Platform.h (1) - noexcept, const, standard methods.Neil1-10/+8
Changes made to FontParameters, Font, Window, ListBoxEvent, ListBox, Menu, DynamicLibrary, and Platform. Backport of changeset 6938:a42c7cc3254b.
2018-05-01Backport: Encapsulate conversions between WindowID and HWND and hoist cast ↵Neil1-26/+31
out of switch. Backport of changeset 6778:5bd8ddf6b651.
2018-05-01Backport: Use RectFromPRectangle to avoid casts.Neil1-1/+3
Backport of changeset 6770:c14d2ee02108.
2018-04-30Backport: Add conversion function from Scintilla Point to Win32 POINT.Neil1-28/+36
Use namespaces more consistently. Fix typo. Backport of changeset 6767:0a0334bef5c9.
2018-04-30Backport: Use Win32 types and avoid casting. Move code to avoid warnings.Neil1-7/+7
Use const where there is a benefit. Backport of changeset 6763:e9079a505ea8.
2018-04-30Backport: Use message parameter access macros provided by Windows instead of ↵Neil1-5/+3
casting. Backport of changeset 6762:addd3229350b.
2018-04-30Backport: Use C++ casts in preference to C casts. Use nullptr instead of 0.Neil1-3/+3
Backport of changeset 6761:3d5f0669be84.
2018-04-27Backport: Use floor instead of casts when centring bitmaps inside the given ↵Neil1-4/+4
rectangle. Backport of changeset 6751:23a8e12e4b3d.
2018-05-06Backport: Use <chrono> for platform-independent timing and remove ↵mitchell1-48/+0
ElapsedTime. Also use #if for painting measurement as there are 7 sections of code to enable. Backport of changeset 6741:af5d9064c25c.
2018-04-25Backport: Remove variables and casts that are not needed.Neil1-4/+2
Backport of changeset 6739:e204054d5d07.
2018-04-20Backport: Remove test that is always true.Neil1-1/+1
Backport of changeset 6718:a2bd7f9f0c47.
2018-04-20Backport: Fix warnings from MSVC analyze and reduce casts.Neil1-84/+100
Backport of changeset 6716:d3dfe9e0c75b.
2018-05-06Backport: Feature [feature-requests:#1215]. Use standard functions in ↵mitchell1-18/+5
prference to RoundXYPosition, XYMinimum, and XYMaximum. Backport of changeset 6713:fadc4c551b6d.
2018-04-19Backport: Use ColourDesired constructor explicitly to make more obvious.Neil1-3/+3
Constructor not marked explicit as may be used in external platform layers. Backport of changeset 6706:73c8bc321f62.
2018-04-15Backport: Feature [feature-requests:#1215]. Stop warning about virtual call ↵Neil1-4/+14
in destructor. Backport of changeset 6690:2107e0144806.
2018-04-04Backport: Remove automatic detection of Direct2D support during build.Neil1-1/+1
DISABLE_D2D may still be defined to remove Direct2D features. Backport of changeset 6672:9c1997a14d89.
2018-03-31Backport: Match struct initialization exactly to declaration to avoid ↵Neil1-3/+5
warnings from clang. Backport of changeset 6663:ff933a6a090b.
2018-05-05Backport: Feature [feature-requests:#1211]. Use pre-computed table for ↵mitchell1-11/+8
UTF8BytesOfLead. Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests. Backport of changeset 6643:ebbb4e5aaf93.
2018-03-16Backport: Remove line-end white space.Neil1-1/+1
Backport of changeset 6625:2dd6b8049c4e.
2017-09-11Backport: The Scintilla namespace is always active for internal symbols and ↵Neil1-4/+0
for the lexer and document interfaces. Backport of changeset 6388:d62863ae40a3.
2017-06-12Backport: Removed unused functions and methods from Platform.h.Neil1-110/+2
Replaced Platform::Clamp with Sci::clamp. Drop MouseButtonBounce workaround for very early GTK+/Linux. Backported from changeset 6307:7030530a9a0f.
2017-06-11Backport: Implement SCN_AUTOCSELECTIONCHANGE notification.Neil1-9/+23
Backported from changeset 6306:7e28cdba6d61.
2017-06-09Backport: Use min and max from std instead of own version from platform.Neil1-6/+11
Backport of changeset 6297:4bf96081f6e6.
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
2017-04-17Simplify expression.Neil1-1/+2
2017-04-07Prefer C++ static cast over C-style casts.Neil1-2/+2
2017-04-07Use same parameter names in declarations and definitions.Neil1-7/+7
2017-04-06Added const where possible.Neil1-47/+47
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-9/+9
where it may be needed in the future.
2017-03-30Stop drawing a focus rectangle on the autocompletion list.Neil1-4/+1
Raise the default list length to 9 items.
2017-03-10Bug [#1653]. Detect if Windows 8+ or KB2533623 installed before using flag.Neil1-5/+17
LOAD_LIBRARY_SEARCH_SYSTEM32 causes failure of Direct2D on original Windows 7 so check for availability before using.
2017-03-09Drop support for Windows NT 4 by statically linking to system APIs that areNeil1-65/+10
only available from Windows 2000 and later.