Abou Al Montacir
8f1c337b19
GTK3: Code cleaning.
...
Removed legacy comments.
2024-02-12 22:47:02 +01:00
Abou Al Montacir
16ce270720
GTK3: Got rid of deprecated function call.
2023-11-15 23:55:22 +01:00
Juha
69d50106c9
LCL-GTK3: Fix wrong types found by -Sy compiler option. Some were wrong, some needed a typecast.
2023-07-02 10:03:22 +03:00
Abou Al Montacir
f184921f26
GTK3: Removed manually defined types in libcairo generated unit.
...
This implied changing GTK3 LCL glue code to use the right type names.
2023-06-18 14:30:11 +00:00
Abou Al Montacir
395a00614e
gtk3: Fixed LineTo implementation. Closes #40323 .
...
The function `cairo_stroke` causes the current path to be cleared from
the cairo context. Thus we loose the current position.
We replace is with `cairo_stroke_preserve` in order to preserves the
path within the cairo context.
2023-06-17 18:18:56 +02:00
Abou Al Montacir
a739298781
GTK3: Updated Gtk3 set types after recent changes in git2pas.
...
Now that `gir2pas` is able to generate correctly set types for C enums,
we migrated more C enums to set type.
This required some changes in the Gtk3 WS code.
2023-06-05 22:38:41 +00:00
Abou Al Montacir
fa757938da
GTK3: Updated Pango1 unit generated with new gir2pas version.
...
Commented manually calls to API not present on Debian 11.
2023-06-04 00:43:16 +00:00
Abou Al Montacir
20539aaeb5
GTK3: Migrate TGtkStateFlags to enumeration.
...
In Gtk3 WS code, integers were used instead of enumeration values.
This leads to compilation error now that `TGtkStateFlags` is
defined as an enumeration type. This commit fixes those errors.
2023-05-31 22:47:26 +00:00
Abou Al Montacir
766ac6db3f
GTK3: Migrate TGdkCursorType to enumeration type.
...
In Gtk3 WS code, variables of type Integer were used instead of ones
of relevant enumeration type.
This leads to compilation error now that `TGdkCursorType` is defined
as an enumeration type. This commit fixes those errors.
2023-05-28 19:49:32 +02:00
Juha
27a2cf4ab8
LCL-GTK3: Use smaller dash size for SynEdit gutter mark etc. Issue #39703 , patch by Alexey Torgashin.
2022-04-09 13:43:50 +03:00
Juha
02115d373b
LCL-GTK3: Turn WriteLn into DebugLn. Make sure they compile. Cleanup.
2022-01-20 19:30:40 +02:00
mattias
8a28cfb7aa
lcl: gtk3: less hints
...
git-svn-id: trunk@65103 -
2021-05-10 14:38:34 +00:00
mattias
7879c790a4
lcl: gtk3: less hints
...
git-svn-id: trunk@65099 -
2021-05-10 13:38:54 +00:00
juha
5bbea24d10
LCL-GTK3: Fix control font size calculation. Issue #38804 , patch from Anton Kavalenka.
...
git-svn-id: trunk@65064 -
2021-04-27 06:28:24 +00:00
juha
eb9189fcac
LCL-GTK3: Fix Canvas.Line and Canvas.Rectangle artifacts. Issue #38741 , patch from Anton Kavalenka.
...
git-svn-id: trunk@65057 -
2021-04-23 15:34:09 +00:00
juha
1d097a9a7d
LCL-GTK3: Improve bitmap drawing etc. Issue #38567 , patch from Anton Kavalenka.
...
git-svn-id: trunk@64802 -
2021-03-14 08:12:17 +00:00
juha
25f463a798
LCL-GTK3: Make drawtext use proper default color etc. Issue #38335 , patch from Anton Kavalenka.
...
git-svn-id: trunk@64368 -
2021-01-09 20:41:22 +00:00
juha
610353511b
LCL-GTK3: Housekeeping with minor fixes. Rename TGtk3DeviceContext Widget to pcr (pointer to Cairo). Issue #37933 , patch from Anton Kavalenka.
...
git-svn-id: trunk@64031 -
2020-10-16 20:10:32 +00:00
juha
671e011f5f
LCL-GTK3: Implement widgetset MonitorFromPoint and GetDpiForMonitor. Issue #37190 , patch from Anton Kavalenka.
...
git-svn-id: trunk@63334 -
2020-06-10 09:35:34 +00:00
juha
88ca338944
LCL-GTK3: Implement CreateRoundRectRgn and CreateEllipticRgn. Issue #37075 , patch from Anton Kavalenka.
...
git-svn-id: trunk@63165 -
2020-05-15 22:20:36 +00:00
juha
1bc57e8667
LCL-GTK3: Refactor GetObject winapi wrapper in OO-style. Issue #36888 , patch from Anton Kavalenka.
...
git-svn-id: trunk@62923 -
2020-04-09 15:51:45 +00:00
juha
610245564b
LCL-GTK3: OOP approach in SelectObject, hatched brushes implemented etc. Issue #36744 , patch from Anton Kavalenka.
...
git-svn-id: trunk@62917 -
2020-04-08 15:16:12 +00:00
juha
01082a807d
LCL-GTK3: Update for swapped R/B colors. Issue #36374 , patch from Anton Kavalenka.
...
git-svn-id: trunk@62842 -
2020-04-01 10:43:20 +00:00
juha
c046c10281
LCL-GTK3: First approach in implementing pattern brush. Issue #36744 , patch from Anton Kavalenka.
...
git-svn-id: trunk@62687 -
2020-02-29 21:11:51 +00:00
zeljko
a2705bebc9
gtk3: fixed font orientation. Patch by Anton Kavalenka. issue #36656
...
git-svn-id: trunk@62611 -
2020-02-04 16:57:45 +00:00
juha
6efe880c7b
LCL-GTK3: TextOut with filled background. Issue #36569 , patch from CudaText man.
...
git-svn-id: trunk@62563 -
2020-01-16 16:14:55 +00:00
juha
6e3d70b796
LCL-GTK3: TextOut cleanup. Issue #36568 , patch from CudaText man.
...
git-svn-id: trunk@62552 -
2020-01-14 16:26:35 +00:00
juha
024bfa3ac1
LCL-GTK3: Refactor code for GetPixel. Remove unused code. Issue #36472 , patch from CudaText man.
...
git-svn-id: trunk@62509 -
2020-01-07 23:16:24 +00:00
juha
63cc527b35
LCL: Simplify code dealing with ampersands (&). Remove duplicate code.
...
git-svn-id: trunk@62493 -
2020-01-04 19:30:01 +00:00
juha
593915c4b3
LCL-GTK3: Implement Canvas.Pixels[]. Issue #36472 , patch from CudaText man.
...
git-svn-id: trunk@62472 -
2019-12-30 15:36:49 +00:00
juha
3119271702
LCL-GTK3: Simplify property access more. Issue #36463 , patch from CudaText man.
...
git-svn-id: trunk@62429 -
2019-12-22 10:36:22 +00:00
juha
64abb45aee
LCL-GTK3: Simplify property access. Issue #36463 , patch from CudaText man.
...
git-svn-id: trunk@62428 -
2019-12-21 08:54:59 +00:00
juha
0fa939d56e
LCL-GTK3: Add 0.5px offset for canvas drawing functions. Issue #36430 , patch from CudaText man.
...
git-svn-id: trunk@62424 -
2019-12-20 17:05:03 +00:00
juha
139b0bab40
LCL-GTK3: Do not include final X,Y in LineTo. Issue #36444 , patch from CudaText man.
...
git-svn-id: trunk@62418 -
2019-12-19 07:49:45 +00:00
juha
2c80ebbfb7
LCL-GTK3: Improve canvas drawing. Issue #36430 , patch from CudaText man.
...
git-svn-id: trunk@62416 -
2019-12-18 21:05:54 +00:00
juha
d159ea93c6
LCL-GTK3: Improve canvas operations more. Issue #36374 , patch from Alexey Tor.
...
git-svn-id: trunk@62382 -
2019-12-12 22:00:47 +00:00
juha
0bd01ab2ed
LCL-GTK3: Improve canvas operations. Issue #36374 , patch from Alexey Tor.
...
git-svn-id: trunk@62380 -
2019-12-12 13:53:41 +00:00
juha
ffa116207f
LCL-GTK3: Improve canvas artifacts, swapped RGB colors etc. Issue #36374 , patch from Anton Kavalenka + Alexey Tor.
...
git-svn-id: trunk@62356 -
2019-12-08 19:45:58 +00:00
juha
bdf8608839
LCL-GTK3: Improve handling of & accelerator on button captions. Issue #36255 , patch from Alexey Tor.
...
git-svn-id: trunk@62353 -
2019-12-08 08:45:27 +00:00
juha
bb24841e59
LCL-GTK3: Render PNG images properly. Issue #36254 , patch from Anton Kavalenka.
...
git-svn-id: trunk@62310 -
2019-11-28 16:54:21 +00:00
juha
aef6a43ae0
LCL-GTK3: Simplify code for font attributes, remove pango_attr_list_ref() call. Issue #36297 .
...
git-svn-id: trunk@62287 -
2019-11-23 17:39:22 +00:00
juha
237822aec4
LCL-GTK3: Fix a crash when rendering underline or strikeout text. Issue #36297 , patch from Anton Kavalenka.
...
git-svn-id: trunk@62253 -
2019-11-17 09:41:35 +00:00
zeljko
346361fb60
Gtk3: Make widgetset wrap non-ansi strings properly. Patch by Anton Kavalennka. issue #36288
...
git-svn-id: trunk@62226 -
2019-11-10 14:09:10 +00:00
juha
6fe903d537
LCL-GTK3: Prevent a crash with Wayland caused by allocating 0-sized surface. Issue #36220 , patch from Anton Kavalenka.
...
git-svn-id: trunk@62211 -
2019-11-06 21:32:26 +00:00
zeljko
a68352f396
gtk3: fixed accelerators chars. Patch by Alexey Tor. issue #36255
...
git-svn-id: trunk@62190 -
2019-11-04 09:22:53 +00:00
zeljko
557305381b
gtk3: fix build with fpc-3.3.1. issue #36253
...
git-svn-id: trunk@62167 -
2019-11-03 15:57:23 +00:00
zeljko
a0ad23f644
gtk3:Implemented proper LogFont from pango layout. Patch from Anton Kavalenka. issue #35699
...
git-svn-id: trunk@62165 -
2019-11-03 15:12:27 +00:00
juha
d7bad85f68
LCL-GTK3: Implement font styles underline and strikethrough. Issue #35695 , patch from Alexey Tor.
...
git-svn-id: trunk@61348 -
2019-06-09 20:01:59 +00:00
juha
89a7a7414e
LCL-GTK3: Add "const" modifiers for string parameters for better performance.
...
git-svn-id: trunk@61346 -
2019-06-09 19:54:42 +00:00
zeljko
11c3b18b53
gtk3: make TCanvas.TextRect useable on coordinates <> 0,0. patch by Anton Kavalenka. issue #31933
...
git-svn-id: trunk@58592 -
2018-07-22 07:12:11 +00:00