aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
AgeCommit message (Collapse)AuthorFilesLines
2024-05-24Bug [#2439]. Prevent warnings in log from unreferencing NULL cursor.Neil Hodgson1-1/+2
2024-02-29Improve layout when a text run contains left-to-right and right-to-left ranges.Neil Hodgson1-0/+22
2023-10-10Use global constants for opaque black and white and local constants for greys.Neil1-1/+1
Makes it easier to understand and reduces warnings.
2023-09-13Fix assertion failure on some systems when an INDIC_SQUIGGLEPIXMAP drawn for aEnrico Tröger1-0/+2
zero-width character.
2023-08-28Bug [#2401]. gtk: Set type hint for GTK_WINDOW_POPUP windowsJiří Techet1-0/+1
Without setting the hint the popup windows lead to some obscure behavior on macOS when the main window is full screened, see https://gitlab.gnome.org/GNOME/gtk/-/issues/5716 https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5778 while the solution from 5778 might be a sufficient workaround, setting the hints might be a good idea in general so the window manager knows better the purpose of these windows.
2023-06-25Strip line end white-space.Neil1-1/+1
2023-02-22Remove _CRT_SECURE_NO_DEPRECATE.Neil1-1/+1
Replace [v]sprintf with bounds checked [v]snprintf.
2022-07-05Fix failures with non-UTF-8 text when multi-threading. The Converter object onNeil Hodgson1-8/+33
SurfaceImpl uses g_iconv and could be called from multiple threads without synchronization leading to occasional errors and potentially out-of-bounds writes.
2022-07-04Avoid C-style cast and range reduction warnings from cppcheck 2.8.Neil Hodgson1-10/+8
2022-04-29Feature [feature-requests:#1427] Enable multithreaded layout for GTK on macOSNeil Hodgson1-3/+0
and Win32.
2022-02-25Bug [#2309] Avoid crash for unexpected right-to-left text.Neil Hodgson1-11/+41
2022-02-21Bug [#2317] Fix pixmap leak on GTK.Neil Hodgson1-5/+6
2022-02-16Fix preprocessor condition to enable threading on Linux.Neil Hodgson1-1/+1
2022-02-10Replace "OS X' with "macOS".Neil1-1/+0
2022-02-02Add Supports::ThreadSafeMeasureWidths for platforms to indicate if they supportNeil1-0/+4
concurrent calls to MeasureWidths.
2022-01-31Turn off tracing that was accidentally committed.Neil1-1/+1
2022-01-31Implement more unique_ptr allocation wrappers and place in new Wrappers.h ↵Neil Hodgson1-161/+78
header.
2022-01-30Avoid type safety warnings.Neil1-13/+11
2022-01-30Use noexcept and const to avoid warnings.Neil1-5/+5
2022-01-30Simplify pango_layout_set_text and suppress type warnings.Neil1-11/+15
Avoid strlen when .length() available.
2022-01-30Use unique_ptr for PangoContext and PangoLayout.Neil Hodgson1-40/+36
2022-01-30Use language field instead of calling pango_context_get_language as now alwaysNeil Hodgson1-2/+2
available.
2022-01-30Feature [feature-requests:#1427] Make GTK MeasureWidths andNeil Hodgson1-11/+66
MeasureWidthsUTF8 reentrant so they can be called safely from multiple threads.
2022-01-28Use Pango library pango_units_from_double pango_units_to_double instead ofNeil Hodgson1-19/+8
custom equivalents as should no longer need to be compatible with very old Pango.
2022-01-28Bug [#2310] Use fractional glyph positions on GTK to make monospaced fonts workNeil Hodgson1-0/+9
better with Chinese text.
2021-11-21Bug [#2296] Fix multi-monitor widget positioning on waylandJan Dolinar1-0/+11
2021-10-12Feature [feature-requests:#1416] Mark override destructors as override.Neil1-1/+1
2021-09-12Round up ascent and descent of fonts on GTK to make it more likely thatNeil Hodgson1-2/+2
underscores and accents will be visible.
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-43/+47
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-22/+22
will be published in externally visible header.
2021-04-25Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.Neil1-4/+4
Change ColourDesired to ColourAlpha in styles. Remove ColourDesired.
2021-04-05More noexcept on Cocoa, GTK, and Qt.Neil1-3/+3
2021-04-04Respond to changes in font antialiasing and hinting options on GTK 2.Neil1-4/+8
2021-03-29Modify ListBox::GetValue to return a std::string to avoid fixed size buffersNeil1-6/+6
and the possibility of truncation.
2021-03-28Use PenColourAlpha instead of PenColour ensuring translucent text works.Neil1-36/+26
Use enum class for encoding type. Avoid warnings.
2021-03-26Add SC_SUPPORTS_PIXEL_MODIFICATION to differentiate character cell andNeil1-0/+1
pixel oriented platforms.
2021-03-22Remove IntegerRectangle.h as not widely usefulNeil1-1/+14
Add IntegerRectangle struct for local use in PlatGTK.cxx.
2021-03-25Remove old Surface methods that have been replaced.Neil1-217/+1
2021-03-22Implement more support values.Neil1-0/+2
2021-03-20Replace FillRectangle with FillRectangleAligned as FillRectangle will stopNeil1-4/+4
aligning to pixel boundaries. Use Surface::SetMode as simpler and its predecessors will be removed.
2021-03-25Translucent text.Neil1-16/+16
2021-03-20Add AllocatePixMap method on Surface to create a pixmap surface.Neil1-15/+38
2021-03-20Use SurfaceMode struct as a way to inform Surface of modes like code page andNeil1-3/+28
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/+5
filling it to avoid partially drawn pixels on left and right edges.
2021-03-20Implement LineDraw and PolyLine.Neil1-0/+27
2021-03-20Implement Stadium on all platforms except for Win32 GDI.Neil1-2/+61
2021-03-20Implement RectangleFrame.Neil1-0/+10
2021-03-25Use FillStroke for parameters to Polygon, RectangleDraw, RoundedRectangle, andNeil1-0/+59
Ellipse.
2021-03-19Support strokeWidth and float cornerSize in AlphaRectangle. Use FillStrokeNeil1-0/+26
instead of separate colour and alpha arguments.
2021-03-25Implement translucent FillRectangle.Neil1-4/+23