aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaCocoa.h
AgeCommit message (Collapse)AuthorFilesLines
2023-03-02Cache client size when view moved or sized. That allows access to it fromNeil Hodgson1-0/+3
secondary threads which otherwise shows warnings. Earlier approach of caching client rectangle failed to handle scrolling.
2023-03-02Backed out changeset: 5504b8444ec2Neil Hodgson1-2/+0
Failed to draw margins correctly after scrolling as the client rectangle wasn't updated.
2023-02-27Cache client rectangle when view moved or sized. That allows access to it fromNeil Hodgson1-0/+2
secondary threads which otherwise shows warnings.
2023-02-24Replace deprecated graphicsPort API with current CGContext.Neil Hodgson1-0/+2
2022-02-10Replace "OS X' with "macOS".Neil1-1/+1
2021-09-28Widen styleNumber in PositionCacheEntry from 8 to 16 bits to allow stylesNeil1-0/+1
larger than 255 to be represented. Before this, it may have been possible but extremely rare for a cache entry to wrongly match a styled lexeme and produce incorrect layout. Using uint16_t from cstdint instead of a bit field as tools perform more checking on that.
2021-08-27Simplify SetScrollingSize and use const where possible.Neil Hodgson1-1/+1
2021-07-28Bug [#2268]. Fix memory leak caused by circular references.Arne Scheffler1-2/+2
2021-06-17Add SciFnDirectStatus, a direct access function which also returns status so canNeil1-0/+1
improve performance for client code that called SCI_GETSTATUS after every API to check for failure.
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-5/+5
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-10Implement UpdateBaseElements on Cocoa to update colours to match current systemNeil Hodgson1-0/+2
settings. Trigger UpdateBaseElements when system settings change. This makes Scintilla (by default) track the correct tint to show as the selection background.
2021-05-09Change first responder / active handling so only treating as focussed whenNeil Hodgson1-1/+5
both active and first responder. This has no visual effect yet but allows greying the selection when not focussed.
2021-04-27Rename CharacterSet and CharacterCategory modules in Scintilla to CharacterTypeNeil1-1/+1
and CharacterCategoryMap to avoid clashes with Lexilla when building an executable that includes both.
2021-03-29Add SCI_SETELEMENTCOLOUR and related APIs to change colours of visible elements.Neil1-0/+1
Implement SC_ELEMENT_LIST* to change colours of autocompletion lists.
2021-03-19Switch enum to enum class.Neil1-3/+3
2020-06-24Converting between UTF-8 and current encoding.Neil1-0/+3
Allows platform-independent code to be written just to handle Unicode.
2021-03-18Use unique_ptr for CaseFolderForEncoding to show transfer of ownership.Neil1-1/+1
2019-12-13Move SCI_LOADLEXERLIBRARY from platform layers to ScintillaBase.cxx.Neil1-5/+0
This allows removal of related #include statements.
2019-06-30Bug [#2038]. Source of input reported in SCN_CHARADDED.Zufu Liu1-1/+1
This may be SC_CHARACTERSOURCE_DIRECT_INPUT, SC_CHARACTERSOURCE_TENTATIVE_INPUT, or SC_CHARACTERSOURCE_IME_RESULT.
2019-03-29Include "CharacterCategory.h" in all files that include "Document.h" as it willNeil1-0/+1
be needed for adding a CharacterCategory feature.
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.
2018-04-25Standardized signature of TargetAsUTF8 and EncodedFromUTF8.Neil1-2/+2
2018-04-22Fix problems with 64-bit positions by using types that expand to 64-bits andNeil Hodgson1-1/+1
removing casts to int.
2018-03-15Use forward class definitions of XPM and RGBAImage so only code that uses themNeil1-1/+0
needs to #include "XPM.h". Move definition of standard methods on LineMarker from header to implementation to reduce included text and further isolate use of XPM and RGBAImage.
2018-03-03Promote methods from int to ptrdiff_t to allow extension to 64-bits.Neil1-2/+2
2017-08-28New header ILoader.h defines ILoader interface as it does not belong in ↵Neil1-0/+1
ILexer.h.
2017-06-12Remove old timer code in favour of the FineTicker* methods.Neil1-1/+0
2017-06-12Removed unused functions and methods from Platform.h.Neil1-0/+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-08Indented consistently by using astyle.Neil1-160/+158
2017-05-21Make SparseVector work with move-only types.Neil1-0/+1
Define UniqueString as a move-only string and use in a SparseVector for ContractionState. Remove SparseVector method specializations that are no longer needed.
2017-04-22Restrict cursor changing to visible bounds so the text area cursor doesn't showNeil1-0/+1
over other views above and below ScintillaView.
2017-04-21More consistent deletion of standard methods.Neil1-1/+1
2017-04-19Fix problem compiling recent change with Xcode.Neil Hodgson1-1/+1
2017-04-19Use =delete for unwanted functions.Neil1-4/+3
2017-04-15Avoid calling virtual functions in destructor. Mark overridden methods.Neil Hodgson1-1/+1
2017-04-15Avoid calling virtual functions in constructors and destructors.Neil1-1/+1
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-4/+5
where it may be needed in the future.
2017-03-31Using Sci::Position and Sci::Line to mark variables that are document positionsNeil1-3/+3
and lines.
2017-03-06Use several C++11 features as examples so problems with these features are seen.Vicente1-0/+1
Features used are move constructor, unique_ptr, deleted functions, enum class, lambda expression, and range for loop.
2017-03-04Use "override" for Cocoa platform code and add to Editor where possible.Neil Hodgson1-49/+49
2017-03-02Fix potential problems with IME on Cocoa when document contains invalid UTF-8.Neil1-0/+1
2016-11-23Implementation of MarginRightClick event.Tse Kit Yam1-0/+3
2016-11-19Moved @private sections from header into implementation.Neil Hodgson1-1/+2
Hid properties and methods which are for internal use.
2016-11-05Support for NSAccessibility protocol added sufficient for the VoiceOverNeil Hodgson1-2/+6
screen reader.
2015-10-26Remove unnecessary timer variables.Neil Hodgson1-2/+0
2015-07-27Add Position.h as a place-holder and to allow #include "Position.h" in source.Neil1-0/+1
2015-06-25Bug [#1740]. Cancel autocompletion and calltip when window moved.Neil Hodgson1-0/+1
2015-02-22Implement additional methods from the NSTextInputClient protocol so that moreNeil Hodgson1-0/+7
features of the IME work. attributedSubstringForProposedRange:actualRange: and characterIndexForPoint: now have full implementations. This required using UTF-16 document indexes in many places as that is what Cocoa wants. Tentative undo is used for the composition text instead of turning off undo as that is safer and similar to IME code on other platforms.
2015-02-16Implement SCI_TARGETASUTF8 and SCI_ENCODEDFROMUTF8 on Cocoa.Neil Hodgson1-0/+2
2014-10-02Include <stdexcept> so that exceptions derived from std::runtime_error can beNeil1-0/+1
used.