aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
AgeCommit message (Collapse)AuthorFilesLines
2021-03-16Convert Platform from a class to a namespace. Does not change callers.Neil1-6/+6
Make Assert, DebugPrintf, and similar noexcept so they can be used in noexcept methods and they don't throw.
2021-02-07Made comment make sense.Neil Hodgson1-1/+1
2021-02-07On macOS 11, autocompletion list text was being truncated. An extra 22 pixelsNeil Hodgson1-0/+7
was added to the width just on macOS 11. Its likely that there is a better way to discover the additional width needed.
2020-11-02Use std::size instead of ELEMENTS so StringCopy.h is only used by Lexilla andNeil1-1/+0
can be removed from Scintilla.
2019-12-13Implement DynamicLibrary on Cocoa.Neil1-7/+45
2019-12-13Add or fix file name comments.Neil1-1/+1
2019-06-16Fix Xcode static analysis warning by renmaing GetImage to CreateImage.Neil Hodgson1-6/+6
A naming convention is used by the analyzer where a "Create" prefix is used when the reference is owned by the caller and a "Get" prefix when the reference is not owned so should not be released.
2019-05-11Feature [feature-requests:#1283]. Standardise spelling - "color" -> "colour".Neil1-1/+1
2019-03-25Use generic std::abs instead of abs and fabs.Neil1-1/+1
2019-03-25Use generic versions of ceil, floor, round, lround, trunc from <cmath>.Neil1-6/+7
2018-10-04Fix crash when particular patterns of invalid UTF-8 led to failure to create aNeil Hodgson1-1/+4
CFStringRef. Performs more stringent validation on input text.
2018-06-07Update Cocoa enumerations to current names instead of deprecated names.Neil Hodgson1-2/+2
2018-06-02Implement IScreenLineLayout for Cocoa Core Text as ScreenLineLayout.Neil1-4/+211
2018-06-02Define IScreenLineLayout as the main interface for implementing bidirectionalNeil1-10/+2
features by platform code. Implement IScreenLineLayout for Win32 / DirectWrite as ScreenLineLayout.
2018-05-23Add definitions for bidirectional support to Platform.h and provide emptyNeil1-0/+19
implementations for each platform.
2018-05-22Add GradientRectangle method to Surface to draw rectangles with vertical orNeil1-0/+44
horizontal gradients.
2018-05-21If decoding DBCS text fails, use the MacRoman encoding to ensure something isNeil Hodgson1-2/+12
visible.
2018-05-21Remove CGContextRef field in QuartzTextLayout as it is only used in draw methodNeil Hodgson1-5/+2
where it can easily be provided. Retaining a CGContextRef in QuartzTextLayout could lead to it being used after being invalidated.
2018-05-14Modernize Platform.h (4) - update Surface to use string_view for text arguments.Neil1-21/+20
2018-05-14Modernize Platform.h (3) - update Surface to delete WidthChar, use size_t forNeil1-13/+2
Polygon and delete the standard copy and assignment methods.
2018-05-14Modernize Platform.h (2) - noexcept, const, constexpr.Neil1-3/+3
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-7/+7
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-01Remove dead function and unnecessary casts. Convert C casts to C++ casts.Neil Hodgson1-26/+12
Use nullptr where unambiguous and is C++ as distinct from Objective C.
2018-04-26Use <chrono> for platform-independent timing and remove ElapsedTime.Neil1-28/+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-2/+2
2018-04-22Reduce casts by moving casting from char* to UInt8* into ↵Neil Hodgson1-9/+17
QuartzTextLayout::SetText and adding helper TextStyleFromFont to cast from Font to QuartzTextStyle.
2018-04-15Feature [feature-requests:#1215]. Stop warning about virtual call in destructor.Neil1-2/+8
2018-03-22Feature [feature-requests:#1211]. Use pre-computed table for UTF8BytesOfLead.Zufu Liu1-15/+4
Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests.
2018-02-27Added <utility> and <tuple> to header order and moved POSIX header <sys/time.h>Neil1-2/+2
after standard C++ language headers.
2017-11-09Close autocompletion list for escape and delete on macOS 10.13 as the windowchinhster1-1/+1
was emptying but stayed visible.
2017-06-12Removed unused functions and methods from Platform.h.Neil1-131/+1
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-17/+58
2017-06-08Indented consistently by using astyle.Neil1-1447/+1241
2017-06-07Use property dot syntax.Neil Hodgson1-35/+35
Part of modernization.
2017-06-07Using modern Objective C literals and indexing.Neil Hodgson1-4/+4
2017-06-05Converted to Automatic Reference Counting.Neil Hodgson1-30/+19
2017-05-07Use unique_ptr on Cocoa.Neil Hodgson1-16/+13
2017-05-02For Cocoa, use unique_ptr for drawing surfaces and don't check for allocationNeil1-12/+8
failure as that throws an exception.
2017-04-22Restrict cursor changing to visible bounds so the text area cursor doesn't showNeil1-1/+1
over other views above and below ScintillaView.
2017-04-22Replace C++ std::map with Cocoa NSMutableDictionary as easier to switch to ARCNeil1-54/+19
since memory ownership doesn't cross between C++ and Objective C as much.
2017-04-22Simplify NSImage creation by using its initWithCGImage directly instead ofNeil1-23/+16
creating an NSBitmapImageRep first.
2017-04-22Include <memory> for std::unique_ptr.Neil1-0/+1
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-1/+2
where it may be needed in the future.
2017-03-30Make autocompletion slightly wider to avoid text truncation.Neil Hodgson1-1/+2
2017-03-04Use "override" for Cocoa platform code and add to Editor where possible.Neil Hodgson1-24/+24
2017-01-24Use safer static_cast instead of reinterpret_cast. Remove cast to void*.Neil1-1/+1
2017-01-24Remove casts from id to Objective C object as they are not needed. Use saferNeil1-28/+28
static_cast instead of reinterpret_cast between void* and id or Objective C object.
2017-01-24Use correct signatures for pattern draw and release functions and avoidNeil1-6/+5
reinterpret_cast
2017-01-23Use safer static_cast instead of reinterpret_cast when converting FontID toNeil1-11/+11
QuartzTextStyle.