aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
AgeCommit message (Collapse)AuthorFilesLines
2019-05-29Backport: Bug [#2104]. Use 'l' long format length sub-specifier for HRESULT ↵Neil1-1/+1
as it is long. Backport of changeset 7539:b22c2d7b0301.
2019-05-11Backport: Feature [feature-requests:#1283]. Standardise spelling - "color" ↵Neil1-7/+7
-> "colour". Backport of changeset 7498:7dd63f4402ae.
2019-05-08Backport: Use value-initialization and nullptr (for true pointers) to avoid ↵Neil1-10/+5
'using NULL' warnings. Backport of changeset 7493:614a823a36cb.
2019-04-28Backport: Use const and noexcept for private methods.Neil1-6/+6
Backport of changeset 7485:3c487fc19b62.
2019-04-27Backport: Feature [feature-requests:#1279]. Removed invalid check when ↵Neil1-12/+7
avoiding SelectFont if font not changed. Didn't correct the check as its not justified by minimal performance benefit so removed the supporting variable. Backport of changeset 7474:6bb2a6d284d9.
2019-04-12Backport: Bug [#2093]. Improve efficiency with single byte character sets.Zufu Liu1-2/+2
Backport of changeset 7424:0d4b29e058f7.
2019-04-11Backport: Feature [feature-requests:#1277]. Support coloured text on Windows ↵Zufu Liu1-3/+15
8.1+. Backport of changeset 7419:76fcbb9c97a1.
2019-03-25Backport: Use generic std::abs instead of abs and fabs.Neil1-5/+5
Backport of changeset 7330:09e5fe965a79.
2019-03-31Backport: Use generic versions of ceil, floor, round, lround, trunc from ↵mitchell1-15/+15
<cmath>. Backport of changeset 7329:2662ef098d93, but without std::round and std::lround, since older Mac OSX SDKs may not have them.
2019-03-20Backport: Implement WStringFromUTF8 to simplify code that creates wstring ↵Neil1-4/+2
objects for regular expressions and calling the Win32 API. Backport of changeset 7325:6148329fb2f3, but replaced std::string_view usage with const char* and size_t components. Also used #ifdef instead of C++17 `if constexpr` at suggestion of Neil.
2019-03-18Backport: Add some operators to Point to simplify client code.Neil1-3/+1
Backport of changeset 7321:d488340e94c0.
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