Commit Graph

437 Commits

Author SHA1 Message Date
Altair Wei 50dafa0c5e lower C++ std to c++11 and remove attributes 2021-10-07 15:23:59 +08:00
Altair Wei d8c137d11f mv source code into src folder 2021-10-07 15:13:34 +08:00
Altair Wei 1f1de5deb6 fix window maximization bugs on Windows 2021-10-07 11:27:56 +08:00
Altair Wei 0e63a053de fix examples on MacOS 2021-10-06 22:05:15 +08:00
Altair Wei 420d942762 fix examples on Windows 2021-10-06 20:53:24 +08:00
Altair Wei d680ad87b1 fix examples for Core API 2.0 2021-10-06 20:42:10 +08:00
Altair Wei af797125f8 fix bug when resizing on handler's edge on Linux 2021-10-06 17:02:15 +08:00
Altair Wei cefae7950d default titlebar height and resize border 2021-10-06 15:40:23 +08:00
Altair Wei 183aa9a730 integrate Windows implementation into 2.0 Core API 2021-10-06 15:10:53 +08:00
Altair Wei 5e96c3fec6 fix build error on Windows 2021-10-03 17:44:55 +08:00
Altair Wei c684d3c0ac
Merge pull request #85 from altairwei/2.0-macos
2.0 Core API for macos
2021-10-02 16:46:05 +08:00
Altair Wei de1d6abaf0 add showMacWindowButton 2021-10-02 15:50:22 +08:00
Altair Wei ce69d1a4c5 implement Core API on MacOS 2021-10-02 14:19:46 +08:00
Altair Wei 6a0dc5052c
Merge pull request #84 from altairwei/2.0-linux
framelesshelper v2.0 Core API Linux 端的实现
2021-10-02 11:56:12 +08:00
Altair Wei 6a6fea8ac9 improve resize handler db click behavior 2021-09-21 17:56:43 +08:00
Altair Wei 989de57f33 fix HiDPI position calculate error 2021-09-21 15:42:11 +08:00
Altair Wei 3a3e39c0c0 change X11 event impl 2021-09-21 10:17:42 +08:00
Altair Wei 9b2dc893b6 double click resize handler will change geometry 2021-09-20 20:40:03 +08:00
Altair Wei 5f58937588 add hitTestVisible logic 2021-09-20 19:41:24 +08:00
Altair Wei 5ab2024f54 only allow left button to move or resize 2021-09-20 16:54:52 +08:00
Altair Wei 0964483b20 enlarge the resize corner area 2021-09-20 16:45:30 +08:00
Altair Wei 96f49ded2f fix move and resize determination 2021-09-20 14:47:49 +08:00
Altair Wei 1aed38e882 double click make window maximized 2021-09-20 09:19:04 +08:00
Altair Wei 501ff149cf implemented X11 resizing 2021-09-20 09:10:04 +08:00
Altair Wei a365499455 implemented linux x11 moving 2021-09-20 00:08:43 +08:00
Altair Wei 93ac6f6ee3 minimal example that only depends on Core API 2021-09-19 22:24:00 +08:00
Altair Wei 678f903f5c update hovered states 2021-09-19 21:32:32 +08:00
Altair Wei da342753a2 change cursor according mouse state 2021-09-19 17:47:14 +08:00
Altair Wei 3784ef0e7f map position to frame section 2021-09-13 19:59:35 +08:00
Altair Wei 1e2598398d backbone of new FramelessHelper 2021-09-13 12:22:09 +08:00
Altair Wei 0bfefb25d0
fix namespace error on Linux (#82) 2021-09-12 18:18:40 +08:00
Yuhang Zhao 138a2b90cb Minor refactor
1. Remove compiler specific flags
2. Build shared library by default
3. Remove unused functions
4. Minor tweaks of some internal logic, the final behavior is not affected

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-09-06 14:24:43 +08:00
Yuhang Zhao 8367331278 Win32: move all win32 staff to one header
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-09-05 13:24:12 +08:00
Yuhang Zhao d64b38a8db Improve the widget example
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-09-05 12:27:16 +08:00
Yuhang Zhao a5a5942d80 Win32: Add some useful functions back
1. Also rename some leftovers to more appropriate names
2. Be more verbose to help debugging

TODO: improve widget example, make use of the these functions

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-09-05 09:20:19 +08:00
Yuhang Zhao bc8a70dbb2 Win32: Fix window content will be cut-off for some pixels when window is fullscreened
1. Fix that bug
2. Some adjustments of the variable names to make them more clear
3. Some tweaks to the title bar height value

TODO: Add a button to switch between fullscreen and windowed mode for the widget example
TODO: Add a title text to the widget example

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-09-04 22:40:13 +08:00
Yuhang Zhao 2c106ffef9 Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-09-01 15:26:36 +08:00
Altair Wei 01dd43c356
fix unwanted cursor change when leave edge region (#80) 2021-08-23 09:29:50 +08:00
Yuhang Zhao 523e35fdb1 Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-08-22 15:14:42 +08:00
Yuhang Zhao f18468dcca Win32: QMake: fix build error
Fixes: #76

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-08-16 16:24:14 +08:00
Altair Wei 6acfdfdf61
improve titlebar move behavor (#74) 2021-08-15 12:32:42 +08:00
Yuhang Zhao ebc8792630 Fix Qt6 build
The function name has been changed in Qt6.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-08-13 15:36:31 +08:00
Altair Wei 027545fcc2
fix interrupted db-clicked behavior on titlebar (#73) 2021-08-13 14:39:18 +08:00
Altair Wei 018d904ca4
fix resize indicator position on 4K screen Linux (#71) 2021-08-13 11:32:09 +08:00
Yuhang Zhao 89027ec0c8 Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-08-11 19:48:02 +08:00
Yuhang Zhao 5a2d498445 Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-08-11 17:58:47 +08:00
Yuhang Zhao c6e5545b4d Fixed a bug caused by typo
My bad

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-26 20:02:39 +08:00
Yuhang Zhao 870b7820ae Fix Qt 5.15 compilation error
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-25 18:15:59 +08:00
Yuhang Zhao da4269bbd6 Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-23 21:05:35 +08:00
Yuhang Zhao 2b6d0fccb6 Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-23 11:04:48 +08:00