Pietro Gagliardi
d80f0e4812
And applied the test changes to the other platforms. Back to focusing on Windows now.
2022-07-30 18:52:04 -04:00
Pietro Gagliardi
c241e8676a
Restructured the controls tests to allow for more flexibility and implemented that on Windows. Now I can start building ad-hoc controls in tests.
2022-07-30 18:40:10 -04:00
Pietro Gagliardi
79d8eb534e
Filled in some allcalls. I'll make the edits to controls.c its own commit.
2022-07-30 17:39:37 -04:00
Pietro Gagliardi
eb1250a32b
Fixed the build and implemented some of the missing functions I just added. Not too happy with how these tests are structured so far; I might hack on that before continuing...
2022-07-30 12:13:36 -04:00
Pietro Gagliardi
1d7c530c32
More implementation of the new uiWindows control parenting and sizing system.
2022-07-30 04:14:16 -04:00
Pietro Gagliardi
8823ebacfb
Drafted an API for Windows resizes.
2022-07-29 23:53:36 -04:00
Pietro Gagliardi
c9310e21b7
Implemented parenting on Windows; doing everything through uiControlSetParent() makes this trivial. Now I need to implement sizing, so we can actually test some things with this.
2022-07-29 22:28:38 -04:00
Pietro Gagliardi
7c0113f220
Decided to use uiControlSetParent() to signal that parent handles need to be changed on Windows. Now we can start implementing this model and taking it for a spin.
2022-07-29 00:38:36 -04:00
Pietro Gagliardi
f3820ac4b0
Okay new plan: we're going to start with the Windows implementation instead, since that's the one that's going to have to be more complicated. I'll then decide if we should copy this strategy on the other platforms or not.
2022-07-27 21:43:15 -04:00
Pietro Gagliardi
69dbafe6f2
Oops forgot to commit this before midnight: started work on uiWindow children.
2022-07-26 00:18:37 -04:00
Pietro Gagliardi
8b3e2665ed
Good night, friend.
...
I meant to do this a year ago, but didn't, because the pandemic rotted my brain. I'm sorry.
This project is probably not big enough for something like this, but not doing this would be irresponsible, given the circumstances.
2022-07-21 20:42:13 -04:00
Pietro Gagliardi
4057d3e0d3
More notes.
2021-06-16 09:25:04 -04:00
Pietro Gagliardi
f6525082a9
More notes.
2021-05-27 20:26:58 -04:00
Pietro Gagliardi
320c92b8eb
More notes. I need to work on this again.
2021-05-26 12:27:21 -04:00
Pietro Gagliardi
8f8171550d
More notes.
2021-05-22 09:22:19 -04:00
Pietro Gagliardi
7c7da65231
More notes.
2021-02-02 12:02:12 -05:00
Pietro Gagliardi
fda1446114
More notes. Yeah, I didn't get to finish remodel by the end of the year; sorry.
2020-12-31 22:59:28 -05:00
Pietro Gagliardi
3005c00376
More notes.
2020-11-23 11:50:25 -05:00
Pietro Gagliardi
76879e7c82
More notes.
2020-11-18 01:04:30 -05:00
Pietro Gagliardi
81fb4ea7f2
More notes.
2020-10-05 23:33:24 -04:00
Pietro Gagliardi
47f2bffd8a
Merge branch 'master' into remodel
...
Conflicts:
windows/winapi.hpp
(manually resolved by elaborating comment)
2020-10-02 10:30:58 -04:00
Pietro Gagliardi
f3982618e7
Merge pull request #517 from timgates42/bugfix_typo_platform
...
docs: Fix simple typo, plaform -> platform
2020-10-02 10:29:32 -04:00
Tim Gates
ce8c2dc22c
docs: Fix simple typo, plaform -> platform
...
There is a small typo in windows/_rc2bin/winapi.hpp, windows/winapi.hpp.
Should read `platform` rather than `plaform`.
2020-09-30 07:05:44 +10:00
Pietro Gagliardi
afb53d88c8
Merge branch 'master' into remodel
2020-06-07 21:09:34 -04:00
Pietro Gagliardi
34d1d0ac48
Merge pull request #500 from L4r0x/table-mem-leak
...
Fix memory leak in uiTable setEditable on unix.
2020-06-07 21:09:04 -04:00
Pietro Gagliardi
5ca4ccb30b
Merge branch 'master' into remodel
2020-06-07 21:06:50 -04:00
Pietro Gagliardi
4ee9c47ddc
Looks like meson now requires a newer ninja than what ships with whatever version of whatever Debian-derived distribution Azure Pipelines uses. Use ninja from pip instead (it's a special distribution maintained by the SciPy guys, apparently).
2020-06-07 21:05:16 -04:00
Pietro Gagliardi
6f4610f82a
Oops
2020-06-07 20:58:11 -04:00
Lars Wrenger
6b124b6f55
Fix memory leak in uiTable setEditable on unix.
...
GtkTreePath was not freed correctly.
2020-06-07 20:41:31 +02:00
Pietro Gagliardi
1c7718ec58
And updated the tests on Windows. It works!
2020-06-07 14:36:56 -04:00
Pietro Gagliardi
7cdd6ee38c
Finished all the necessary bits to implement what little of uiWindow we have now on Windows. Now to fill in the tests.
2020-06-07 14:10:16 -04:00
Lars Wrenger
54567bd4f6
Fix memory leak uiTable setEditable on unix.
...
The tree_model_path was not freed correctly.
2020-06-07 17:13:36 +02:00
Pietro Gagliardi
188d9f736f
Reintegrated UTF-16 stuff we need immediately and prepared the test suite for it.
2020-06-06 22:30:50 -04:00
Pietro Gagliardi
3f392d04ce
Started migrating uiWindow on Windows. Oh boy it's UTF-16 time!
2020-06-06 19:27:05 -04:00
Pietro Gagliardi
d5c06108d6
Added the missing noinitwrongthread Unix tests.
2020-06-02 22:52:56 -04:00
Pietro Gagliardi
1dd0372593
Set up a new system for designated static const struct initializers on C++. Also added the missing noinitwrongthread tests on Haiku.
2020-06-02 22:40:54 -04:00
Pietro Gagliardi
c07a7861d4
More TODOs.
2020-05-31 19:49:59 -04:00
Pietro Gagliardi
860eb0fae3
And implemented uiWindow stuff on Haiku.
2020-05-31 19:00:03 -04:00
Pietro Gagliardi
218439c215
Did all the uiWindow stuff on GTK+.
2020-05-31 13:37:56 -04:00
Pietro Gagliardi
eb1862afe1
Deduplicated noinitwrongthread.c and its OS-specific files.
2020-05-30 21:24:58 -04:00
Pietro Gagliardi
80ddb4df8f
Rounded out uiWindow and uiDarwinControl error conditions and error condition documentation.
2020-05-30 21:17:17 -04:00
Pietro Gagliardi
d423688def
And added (in a somewhat dirty for now way) the noinitwrongthread.c case for uiDarwinControlHandle().
2020-05-25 22:42:44 -04:00
Pietro Gagliardi
de3598df80
Added tests for the uiWindow methods being called after init/on the right thread. To actually implement those, wrote OS-independent wrappers for the uiWindow functions. This will likely become a pattern throughout libui...
2020-05-25 22:35:25 -04:00
Pietro Gagliardi
0dd4bec2af
Added uiDarwinControlHandle(), and added it to uiWindow, and added uiWindow handle tests (including underlying string tests) to the test suite. Oof. Also I just remembered we're missing tests of these new functions in noinitwrongthread.c.
2020-05-25 22:13:48 -04:00
Pietro Gagliardi
16d2380adc
Added the UTF-8 tests to the uiWindow test.
2020-05-25 19:48:59 -04:00
Pietro Gagliardi
9bc2cccb2d
More work on test/utf8.c. Now to integrate this into test/window.c.
2020-05-25 15:43:28 -04:00
Pietro Gagliardi
aa954e952a
Unicode language lawyering.
2020-05-25 14:19:37 -04:00
Pietro Gagliardi
4c5434d76e
More TODOs.
2020-05-25 02:00:16 -04:00
Pietro Gagliardi
c71fbe29c2
Wrote some code for helping with UTF-8 test cases.
2020-05-25 01:47:19 -04:00
Pietro Gagliardi
2f9aaeeb62
Started writing tests for uiWindow.
2020-05-24 18:08:48 -04:00