Commit Graph

3418 Commits

Author SHA1 Message Date
Pietro Gagliardi 10de22f9ac Added a program to dump resources to C structs. 2018-05-02 09:56:06 -04:00
Pietro Gagliardi 17ec9562ea Cleanup of previous merge, including TODOs and massive infodumps. 2018-04-30 21:55:54 -04:00
Pietro Gagliardi b9fd9fc395
Merge pull request #354 from bcampbell/new-msys-fixes
Fixes to compile utflib-and-attrstr changes on Windows with MinGW-w64

I did not do this myself; thanks @bcampbell for the fixes!
2018-04-30 21:45:29 -04:00
Ben Campbell 2be8fd3eb3 Fixes to compile on windows with msys2
msys2 seems to be unsure of it's IDWriteTypography definition and
disables it by default. This overrides the disabling (The
IDWriteTypography definition looks OK to me, and seems to work
fine).

This commit also adds in a canary to detect compilers that have a non-16bit
wchar_t on windows (eg a gcc focused on porting unix code rather
than compiling windows code).
2018-05-01 12:59:26 +12:00
Pietro Gagliardi 55f2eba45b Add wchar_t overloads to utf.h for C++ on Windows with non-MSVC compilers; I did not realize that was also a thing I needed to worry about!
Update #287
2018-04-30 07:46:38 -04:00
Pietro Gagliardi f88c23602e More notes. 2018-04-22 23:47:22 -04:00
Pietro Gagliardi 5cc85c2609 More ifxes. 2018-04-19 20:33:20 -04:00
Pietro Gagliardi 3f421f9816
Merge pull request #340 from parro-it/fix-timer-windows-2
Fix uiprivTimer::f,  it should return an int
2018-04-19 20:31:08 -04:00
Andrea Parodi e61f7fb0cb Fix uiprivTimer::f: it should return an int 2018-04-19 21:03:49 +02:00
Pietro Gagliardi 591b9c8772 And added to the README. Woo! (Also more TODOs.) 2018-04-18 21:11:23 -04:00
Pietro Gagliardi 83b04cda47 And added documentation nits and TODOs to the uiTimer() code. 2018-04-18 21:09:24 -04:00
Pietro Gagliardi cac4cd9e81 Cleaned up stylistic nits and common branch naming issues on the new uiTimer() code. Also switched the Windows code to use a simple struct instead of the class (and with a uipriv name). 2018-04-18 21:04:12 -04:00
Pietro Gagliardi 85a4c6d35d
Merge pull request #277 from cody271/timer
Adds a function uiTimer() that runs code on the main loop at certain intervals.

Original comment: Add Timer API
2018-04-18 20:52:59 -04:00
Pietro Gagliardi 9cf6c3faf5 Updated the README with the previous merge.
Update #308. Oops, forgot to do this with the merge...
2018-04-18 00:58:21 -04:00
Pietro Gagliardi 3539cda280 Merge branch 'common-namespace-cleanup'
This begins the process of cleaning up the libui namespace.
2018-04-18 00:55:21 -04:00
Pietro Gagliardi 52dc39a553 Decided to keep attrstr.h for now; removed extern "C" hack from attrstr.hpp on Windows and moved it into attrstr.h. Let's merge back. 2018-04-18 00:54:24 -04:00
Pietro Gagliardi 4df47a6ee8 Decided what to do about uipriv.h including ui.h (uipriv_OS.h* wrecks that plan, so make a note of us not doing it). Now to just decide what to do about attrstr.h and then we can merge back. 2018-04-17 21:04:04 -04:00
cody271 5622b13c23 uiTimer() Use uiNew() and uiFree() 2018-04-16 17:49:08 -07:00
cody271 f921dde9f6 uiTimer() Use 'uipriv' prefix convention 2018-04-16 17:48:33 -07:00
cody271 fa7466e7b4 uiTimer() Qualify Objective-C instance variables with 'self' 2018-04-16 17:45:30 -07:00
Pietro Gagliardi ee986363c8 More notes. 2018-04-16 20:35:47 -04:00
cody271 d99549ec18 uiTimer() Use TimerHandler pointers directly as Windows timer IDs 2018-04-16 17:28:13 -07:00
cody271 c9d11a85cc uiTimer() Refactor TimerHandler for Windows timer IDs 2018-04-16 17:28:13 -07:00
cody271 4e6adca08c uiTimer() Ensure Windows timer IDs are unique 2018-04-16 17:28:13 -07:00
cody271 b1210165a0 Implement uiTimer() for Windows 2018-04-16 17:28:13 -07:00
cody271 68e1223e4d Fix TimerDelegate memory leak 2018-04-16 17:28:13 -07:00
cody271 5dbe20593d Implement uiTimer() for GTK+ and OS X 2018-04-16 17:28:12 -07:00
cody271 27b8ce1db3 Add uiTimer() API and example 2018-04-16 17:28:12 -07:00
Pietro Gagliardi 750f4214b7 Cleaned up private symbols (and in one case, explicit initialization) of symbols in all *.c files in common/. Now to decide what to do about whether uipriv.h should include ui.h and if attrstr.h should even stay, and then I can merge this back. 2018-04-16 02:31:24 -04:00
Pietro Gagliardi 7cd88ddd03 More notes. 2018-04-16 01:33:21 -04:00
Pietro Gagliardi b3df05eb8e More TODOs. (This was originally added in a prior commit but I forgot to mention it; I wanted it to be LONGTERM but forgot about that the first time.) 2018-04-15 23:16:04 -04:00
Pietro Gagliardi fcc26ab9a9 Fixed a serious bug in windows/utf16.cpp that went unnoticed for this long: we wanted utf16UTF8Count(), not utf16RuneCount(), in toUTF8(); any non-ASCII text had the wrong number of bytes, and thus random heap corruption. The string "鎿嶄綔鎴愬姛瀹屾垚銆" (taken from the completely unrelated #337) and the Set Button Text button was enough to trigger this. 2018-04-15 23:10:11 -04:00
Pietro Gagliardi c3992cc647 uipriv-ized utf.c. 2018-04-15 23:08:57 -04:00
Pietro Gagliardi 8e2004cf67 struct graphemes -> uiprivGraphemes. Also deleted OLD_uipriv.h now that that one is settled. 2018-04-15 22:43:14 -04:00
Pietro Gagliardi 01d6422664 Added uipriv prefixes to the matrix functions. 2018-04-15 22:39:34 -04:00
Pietro Gagliardi 24a4b0997c fromScancode() -> uiprivFromScancode(). 2018-04-15 22:31:17 -04:00
Pietro Gagliardi 0dddf4a490 clickCounter -> uiprivClickCounter. 2018-04-15 22:26:51 -04:00
Pietro Gagliardi f5be05f143 shouldQuit() -> uiprivShouldQuit(). 2018-04-15 21:54:46 -04:00
Pietro Gagliardi 59835a9bae Removed the declaration of newControl(): it was completely unused, as it was superceded by uiAllocControl() long ago. 2018-04-15 21:49:58 -04:00
Pietro Gagliardi f93973d3cb Migrated implbug() and userbug() to uipriv forms. 2018-04-15 21:46:08 -04:00
Pietro Gagliardi c6bb463692 uiAlloc() et al -> uiprivAlloc() et al, Windows code. 2018-04-15 18:12:58 -04:00
Pietro Gagliardi 099c4ff631 uiAlloc() et al -> uiprivAlloc() et al, GTK+ code. 2018-04-15 16:36:03 -04:00
Pietro Gagliardi 8ca32f098f uiAlloc() et al -> uiprivAlloc() et al, OS X code. 2018-04-15 16:05:24 -04:00
Pietro Gagliardi 72e8b9a198 Started FINALLY renaming uiAlloc(), uiNew(), uiRealloc(), and uiFree() into uipriv* forms. This handles the common folder. 2018-04-15 15:53:27 -04:00
Pietro Gagliardi 4a57b15d09 Renamed the common options variable to uiprivOptions. 2018-04-15 15:49:45 -04:00
Pietro Gagliardi e0f800d5eb Started cleaning up the common/ folder. Backed up the current uipriv.h. 2018-04-15 15:39:28 -04:00
Pietro Gagliardi f3fcf9918b
Merge pull request #336 from Qwerp-Derp/patch-1
Added link to Hedron
2018-04-14 12:59:33 -04:00
Pietro Gagliardi 0f8c59ef49
Merge pull request #330 from tom-corwin/libuisharp-bindings
Added the LibUISharp project to the list of bindings.
2018-04-14 12:59:05 -04:00
Pietro Gagliardi 03d0d4074a More notes. 2018-04-14 12:36:52 -04:00
Pietro Gagliardi a24085bd5e More notes. 2018-04-13 22:30:21 -04:00