aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
AgeCommit message (Collapse)AuthorFilesLines
2024-08-15Add SCI_STYLESETSTRETCH to support condensed and expanded text styles.Neil1-1/+1
2024-03-28Avoid use of NSUserDefaults which will soon require justification when used ↵Neil Hodgson1-6/+3
in applications on the App Store.
2023-02-27Define argument as const so can be used on const values.Neil Hodgson1-1/+1
2023-02-27Remove unnecessary casts from CGFloat to XYPosition as they are both double.Neil Hodgson1-14/+12
2022-05-18Bug [#2329] Place autocompletion lists and calltips on a higher window levelNeil Hodgson1-1/+1
so they can be seen when invoked from a modal dialog.
2022-02-10Replace "OS X' with "macOS".Neil1-2/+2
2022-02-02Add Supports::ThreadSafeMeasureWidths for platforms to indicate if they supportNeil1-0/+1
concurrent calls to MeasureWidths.
2022-01-17Feature [feature-requests:#1427] Make Cocoa MeasureWidths andNeil Hodgson1-22/+17
MeasureWidthsUTF8 reentrant so they can be called safely from multiple threads.
2022-01-14Remove unnecessary inclusion of POSIX headers.Neil Hodgson1-3/+0
2022-01-11Remove verticalDeviceResolution field which was no longer used from revision ↵Neil Hodgson1-1/+0
4253.
2021-07-28Change deprecated Debugger call to currently supported SIGTRAP.Neil Hodgson1-2/+2
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-43/+48
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-14/+14
will be published in externally visible header.
2021-04-25Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.Neil1-6/+6
Change ColourDesired to ColourAlpha in styles. Remove ColourDesired.
2021-04-20Bug [#2248]. Make autocompletion look the same on macOS 11 as macOS 10Petko Georgiev1-9/+12
by using NSTableViewStylePlain. This prevents truncation of the text of items as well as avoiding problems with size and padding.
2021-04-05More noexcept on Cocoa, GTK, and Qt.Neil1-2/+2
2021-03-29Modify ListBox::GetValue to return a std::string to avoid fixed size buffersNeil1-6/+5
and the possibility of truncation.
2021-03-26Add SC_SUPPORTS_PIXEL_MODIFICATION to differentiate character cell andNeil1-0/+1
pixel oriented platforms.
2021-03-25Remove old Surface methods that have been replaced.Neil1-292/+0
2021-03-22Replace InitPixMap on Cocoa for drag & drop and XPM images in lists.Neil1-5/+8
2021-03-22Implement more support values.Neil1-0/+2
2021-03-20Replace FillRectangle with FillRectangleAligned as FillRectangle will stopNeil1-2/+2
aligning to pixel boundaries. Use Surface::SetMode as simpler and its predecessors will be removed.
2021-03-25Translucent text.Neil1-12/+18
2021-03-20Add AllocatePixMap method on Surface to create a pixmap surface.Neil1-0/+52
2021-03-20Use SurfaceMode struct as a way to inform Surface of modes like code page andNeil1-15/+22
bidirectional options in an extensible way instead of adding a call for each element.
2021-03-25Add FillRectangleAligned to align rectangle to pixel grid on x-axis beforeNeil1-0/+6
filling it to avoid partially drawn pixels on left and right edges.
2021-03-20Implement LineDraw and PolyLine.Neil1-0/+33
2021-03-20Implement Stadium on all platforms except for Win32 GDI.Neil1-0/+55
2021-03-20Implement RectangleFrame.Neil1-0/+18
2021-03-25Use FillStroke for parameters to Polygon, RectangleDraw, RoundedRectangle, andNeil1-0/+140
Ellipse.
2021-03-19Support strokeWidth and float cornerSize in AlphaRectangle. Use FillStrokeNeil1-0/+60
instead of separate colour and alpha arguments.
2021-03-25Implement translucent FillRectangle.Neil1-0/+21
2021-03-19UTF-8 text drawing and measurement.Neil1-0/+98
Move SurfaceGDI::WidthText to match declaration order.
2021-03-19Add an explicit FlushDrawing method to Surface that should be called afterNeil1-0/+3
completing a bitmap. Currently only has a real implementation on Direct2D. Avoiding implicit flushes inside Copy and FillRectangle produced a 23% speed improvement on files with about 1 indentation guide per line as the drawing pipeline was being flushed for each indentation guide.
2021-03-19Implement PopClip to allow local clipping.Neil1-0/+5
2021-03-19Add Surface::PixelDivisions which detects 'retina' displays that useNeil1-0/+17
multiple display pixels per logical pixel. Likely will only return >1 for Apple displays. Can be used for finer placement of elements.
2021-03-19Add Platform::Supports for SupportsFeature API.Neil1-0/+14
2021-03-18Make Surface::Release and callers (where possible) noexcept.Neil1-1/+1
2021-03-18Use unique_ptr for Surface::Allocate to show transfer of ownership.Neil1-2/+2
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-18ListBox options API. ListOptions is currently empty but may contain list itemNeil1-0/+4
colours in the future.
2021-03-17Use unique_ptr for ListBox::Allocate to show transfer of ownership.Neil1-3/+2
2021-03-17Change Window::Cursor to an enum class.Neil1-1/+1
2021-03-17Remove Window::SetFont as never used.Neil1-6/+0
2021-03-17Change Font to an interface and stop using FontID. Fonts are shared andNeil1-71/+69
reference counted using std::shared_ptr. This optimizes memory and reduces potential for allocation bugs.
2021-03-17Make Window argument to Menu::Show const as that avoids warnings and the WindowNeil1-1/+1
is not altered by showing a menu.
2021-03-17Mark Window::Destroy, ListBox::Clear, and Menu::Destroy as noexcept sinceNeil1-4/+4
destroying state should not throw.
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+1
2021-03-17Remove DynamicLibrary as loading lexers with SCI_LOADLEXERLIBRARY was removedNeil1-51/+0
for Scintilla 5.