aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Platform.h
AgeCommit message (Collapse)AuthorFilesLines
2021-03-19Add Surface::PixelDivisions which detects 'retina' displays that useNeil1-0/+1
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/+1
2021-03-19Add localeName to FontParameters for Bug [#2027].Neil1-2/+7
2021-03-19Make simple constructor constexpr.Neil1-1/+1
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-1/+1
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-21/+0
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-1/+1
2021-03-17Change Window::Cursor to an enum class.Neil1-3/+3
2021-03-17Remove Window::SetFont as never used.Neil1-2/+1
2021-03-17Change Font to an interface and stop using FontID. Fonts are shared andNeil1-25/+15
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-3/+3
destroying state should not throw.
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-194/+0
2021-03-17Remove DynamicLibrary as loading lexers with SCI_LOADLEXERLIBRARY was removedNeil1-17/+0
for Scintilla 5.
2021-03-16Convert Platform from a class to a namespace. Does not change callers.Neil1-24/+19
Make Assert, DebugPrintf, and similar noexcept so they can be used in noexcept methods and they don't throw.
2021-03-16Moved Platform.h to src as it is private to Scintilla.Neil1-0/+579