Commit Graph

78 Commits

Author SHA1 Message Date
Juha
211d95da17 LCL: Use TLCLHandle instead of a redefined LCLType.THandle or TLCLIntfHandle. Deprecate them. 2023-07-03 11:17:01 +03: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
b9473bdb50 gtk3: Qwick but incomplete fix to ExtTextOut.
Closes: #39727.

Some details need to be handled, but at least the straight forward
case works.
2023-07-01 12:00:40 +02:00
Abou Al Montacir
1b1444f245 GTK3: Fixed workarea handling on systems with frequent monitor removals.
Closes: #40333. Thanks To: Anton Kavalenka.

Check number of connected monitors and fail if none.

Fall back to first monitory id no primary monitor is defined.
2023-06-24 14:13:26 +00: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
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
9c0c7bfd1c GTK3: Migrate TGdkModifierType to enumeration set.
In Gtk3 WS code, integers were used instead of enumeration values.
This leads to compilation error now that `TGdkModifierType` is defined
as an enumeration set type. This commit fixes those errors.

Please note the following comments in the changed code:
```pascal
//TODO: This is hand written just to give the direction we need to go.
//TODO: We need to make git2pas generate similar code for bitfields.
2023-06-01 13:43:46 +00:00
Abou Al Montacir
10ab7f6f12 GTK3: Migrate GtkPolicyType to enumeration type.
Now, `git2pas` produces enumeration types when translating C enums.
This implies changes in WS support files as Pascal enumeration types
are not compatible with integers and require explicit cast.

In order to avoid explicit casts, some internal functions API were
changed so that the code remains clean without unneeded type casts.
2023-05-28 11:58:14 +02:00
Željan Rikalo
6f6b86931c gtk3: rewritten CombineRgn() 2023-01-29 20:07:33 +01:00
Željan Rikalo
2b44a6011a Gtk3: partially implemented ExtTextOut, now TSynEdit looks bit nicer :) 2023-01-29 20:00:56 +01:00
Juha
108196055d LCL-GTK3: Fix underline color in label and small pango header housekeeping. Issue #39941, patch by Anton Kavalenka. 2022-10-03 13:02:37 +03:00
Juha
6c54a68607 LCL-GTK3: Implement AppMinimize and AppRestore. Issue #39753, patch by Anton Kavalenka. 2022-05-18 00:27:27 +03:00
Juha
483102e819 LCL-GTK3: Fix ScrollBox. Issue #39694, patch by Anton Kavalenka. 2022-04-07 00:35:14 +03:00
Juha
02115d373b LCL-GTK3: Turn WriteLn into DebugLn. Make sure they compile. Cleanup. 2022-01-20 19:30:40 +02:00
Juha
776e1e91ad LCL-GTK3: Comment out abundant debug lines. 2021-11-06 02:43:33 +02:00
Juha
48097761d8 LCL-GTK3: Debug output for function TGtk3WidgetSet.GetWindowOrgEx. 2021-09-30 22:55:18 +03:00
mattias
a62a8da59f lcl gtk3: fixed gtk warnings
git-svn-id: trunk@65104 -
2021-05-10 17:17:39 +00:00
mattias
8a28cfb7aa lcl: gtk3: less hints
git-svn-id: trunk@65103 -
2021-05-10 14:38:34 +00:00
juha
c2fbfcd4c5 LCL-GTK3: Fix InputBox(). Issue #38710, patch from Anton Kavalenka.
git-svn-id: trunk@65075 -
2021-04-30 20:59:26 +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
8a0e6f91ee LCL-GTK3: Move ScreenToClient from winapi to TGtk3Widget. Improve setting FullScreen during creation. Issues #38669 and #38672.
git-svn-id: trunk@64881 -
2021-03-28 19:13:45 +00:00
juha
6fb06881e3 LCL-GTK3: Fix popUp menu position with component Click. Issue #38647, patch from Anton Kavalenka.
git-svn-id: trunk@64874 -
2021-03-27 18:36:34 +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
aa364c1cfc LCL-GTK3: Fix TPanel paint. Issue #38562, patch from Anton Kavalenka.
git-svn-id: trunk@64740 -
2021-03-03 15:45:13 +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
2e27713e66 LCL-GTK3: Improve menu position and RadioItems. Issue #37740, patch from Anton Kavalenka.
git-svn-id: trunk@63896 -
2020-09-20 09:56:38 +00:00
juha
55553eded7 LCL-GTK3: Fix ImageList icon paiting. Issue #37600, patch from Anton Kavalenka.
git-svn-id: trunk@63848 -
2020-08-30 20:47:02 +00:00
juha
3f80506401 LCL-GTK3: Make Screen.WorkArea work. Issue #36946, patch from Anton Kavalenka.
git-svn-id: trunk@63837 -
2020-08-26 19:33:47 +00:00
juha
e9adb1add4 LCL-GTK3: Improve messageboxes and collect them to a new unit. Issue #37269, patch from Anton Kavalenka.
git-svn-id: trunk@63604 -
2020-07-20 14:57:12 +00:00
juha
9592ee63e9 LCL-GTK3: Prevent access violation when showing hint window.
git-svn-id: trunk@63559 -
2020-07-14 18:43:54 +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
zeljko
0098727a3e Gtk3: fixed Gtk3WinApi.GetActiveWindow(). Patch by Anton Kavalenka. issue #36954
git-svn-id: trunk@63046 -
2020-04-22 16:59:42 +00:00
juha
1ea610c69f LCL-GTK3: Make Clipboard.AsText work. Issue #36348, patch from Anton Kavalenka.
git-svn-id: trunk@63015 -
2020-04-19 09:54:56 +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
345161ed31 LCL-GTK3: Rework Frame3d. Issue #36588, patch from CudaText man.
git-svn-id: trunk@62565 -
2020-01-16 16:15:02 +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
63cc527b35 LCL: Simplify code dealing with ampersands (&). Remove duplicate code.
git-svn-id: trunk@62493 -
2020-01-04 19:30:01 +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
1dba2b6305 LCL-GTK3: Implement clipboard format. Issue #36348, patch from CudaText man.
git-svn-id: trunk@62426 -
2019-12-20 21:59:00 +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
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
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
37ca5b4d49 LCL-GTK3: Fix swapped R/B colors. Issue #36374, patch from Anton Kavalenka.
git-svn-id: trunk@62377 -
2019-12-11 11:33:31 +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
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
f570285874 LCL-GTK3: Prevent a crash with certain font attributes. Issue #36297, patch from Anton Kavalenka.
git-svn-id: trunk@62286 -
2019-11-23 09:19:28 +00:00