Commit Graph

4034 Commits

Author SHA1 Message Date
Pietro Gagliardi cda991b7e2
Merge pull request #376 from mischnic/datetime-unreg
Fix uiDateTimePicker-related crashes in test on OS X: they were not being destroyed properly.
2018-05-31 08:20:16 -04:00
Niklas Mischkulnig 1b4c898a0c Fix datetimepicker crash 2018-05-31 13:03:19 +02:00
Pietro Gagliardi 1cb0e9046f Made the button cell renderer draw and size much more nicely than it did before, fixing a few bugs along the way. 2018-05-30 22:48:46 -04:00
Pietro Gagliardi 0907ea47bd Merge branch 'master' into table 2018-05-30 08:53:40 -04:00
Pietro Gagliardi 2f0e6e974b And updated the README. 2018-05-30 08:52:24 -04:00
Pietro Gagliardi 246abee8a4 Merge branch 'master' into windows-namespace-and-hresult-cleanup 2018-05-30 08:50:58 -04:00
Pietro Gagliardi 61dbbdbf96 Merge branch 'master' into table 2018-05-30 08:50:40 -04:00
Pietro Gagliardi 1530192673 Finally got around to merging ANNOUNCE and Changelog into NEWS. 2018-05-30 08:49:24 -04:00
Pietro Gagliardi bba2d30362 Merge branch 'master' into windows-namespace-and-hresult-cleanup 2018-05-30 08:07:40 -04:00
Pietro Gagliardi 32840cd88c Merge branch 'master' into table 2018-05-30 08:07:19 -04:00
Pietro Gagliardi 5bd78c1932 Merge branch 'master' of github.com:andlabs/libui 2018-05-30 08:06:39 -04:00
Pietro Gagliardi 9020b248e2
Merge pull request #372 from zhaozg/patch-1
Add another libui bare bindings for lua
2018-05-30 08:06:11 -04:00
Pietro Gagliardi 0e7f866531 More bindings. 2018-05-30 08:05:16 -04:00
Pietro Gagliardi 374eed7432 Removed the facilities for printing an int as text; this was causing the tester to crash in a weird way on OS X (through NSApplication _crashOnException: without telling me what that exception was) and I didn't intend on this part type to be used in this way anyway... 2018-05-29 20:27:31 -04:00
Pietro Gagliardi a7fe45b8a5 Removed carriage returns. 2018-05-29 20:26:48 -04:00
Pietro Gagliardi 32a83241cb
Merge pull request #361 from bcampbell/table-comctl
Add minimal uiTable implementation for Windows.

🎉
2018-05-29 20:00:22 -04:00
Ben Campbell b3b21196a1 minor windows table tweaks 2018-05-29 18:17:10 +12:00
Pietro Gagliardi 039a9db2e5 Wrapped the processing in a class and collapsed consecutive blank lines. 2018-05-28 22:57:52 -04:00
Pietro Gagliardi d4517fab84 And changed hresultwrap to only write to the output file in main(). 2018-05-28 22:50:00 -04:00
Pietro Gagliardi b590482ccb Expanded the tool input slightly and (finally) changed hresultwrap.cpp to use WriteCloser. 2018-05-28 22:46:30 -04:00
Pietro Gagliardi 7e2c505b1d Merge branch 'master' into windows-namespace-and-hresult-cleanup 2018-05-28 13:39:36 -04:00
Pietro Gagliardi cb5b6bf924 Merge branch 'master' into table 2018-05-28 13:39:11 -04:00
Pietro Gagliardi c3be9f221c Fixed a typo that led to CRLF bugs in uiMultilineEntry on Windows. Thanks to @mimecorg for spotting it.
Update #359
2018-05-28 13:38:36 -04:00
Ben Campbell ba13227bed further style consistency tweaks 2018-05-28 20:26:07 +12:00
Pietro Gagliardi ea5bd79b89 Made WINAPI (stdcall) the default calling convention. Hopefully this will opt us into some compiler optimizations... hopefully. 2018-05-27 20:44:34 -04:00
Pietro Gagliardi eef179c1e5 And added function bodies to hresultwrap. 2018-05-27 20:38:10 -04:00
Pietro Gagliardi a1a20837cd And cleaned up the item class, turning it into a Function class. 2018-05-27 20:17:35 -04:00
Pietro Gagliardi 620b03f442 And fixed the remaining errors, including runtime erorrs. It works! 2018-05-27 19:48:39 -04:00
Pietro Gagliardi cf945367a3 Rewrote hresultwrap.cpp with the new changes, fixing some build errors too. Now to fix the remaining build errors. 2018-05-27 16:32:33 -04:00
Pietro Gagliardi 4a7e7ed983 Rewrote the library to use ByteSlice. 2018-05-27 15:50:00 -04:00
Pietro Gagliardi 8231bd337f Built a new ByteSlice interface in lib.cpp that will keep shuffling the bytes around much nicer. I'll change everything to use it next. 2018-05-27 15:36:16 -04:00
George Zhao bd79a2fa8f
Update README.md
Add another libui bare bindings for lua
2018-05-27 14:52:21 +08:00
Pietro Gagliardi 481e1e30bb And updated hresultwrap to produce signatures. Man this is so un-C++-y it actually feels like I'm doing it wrong... 2018-05-26 20:09:16 -04:00
Pietro Gagliardi ef9e08d4ad Started assembling the input file to this hresult utility. 2018-05-26 19:40:55 -04:00
Pietro Gagliardi 8f5eba45bd Added more support for writing hresultwrap itself. There is probably a more C++-y way to write all this :| If only I could use Go... 2018-05-26 17:42:26 -04:00
Pietro Gagliardi a07727515f Updated hresultwrap to use lib.cpp, fixing errors along the way. 2018-05-26 16:56:53 -04:00
Pietro Gagliardi a6634f775b Minor style fretting 2018-05-25 21:17:29 -04:00
Pietro Gagliardi 472476392c Started expanding what were scanner.cpp and scanner.hpp into a more flexible library for tool writing. Also decided to go with separate POSIX and Windows implementations. 2018-05-25 21:07:45 -04:00
Pietro Gagliardi ca11bf1e42 More notes. 2018-05-25 20:25:36 -04:00
Pietro Gagliardi 43c2f26de3 Split Scanner into its own files. 2018-05-25 00:33:56 -04:00
Pietro Gagliardi 8b35ab973d Simplification through adversity, or, POSIX is not as portable as it would like :D It still works, though! 2018-05-24 16:11:58 -04:00
Pietro Gagliardi a5e07be2f5 Fixed EOF behavior. 2018-05-22 21:23:38 -04:00
Pietro Gagliardi c38564a8f7 And integrated Scanner into the mix. C's EOF behavior is gonna make things harder... 2018-05-22 21:19:54 -04:00
Pietro Gagliardi b769b37189 Attempted to simplify hresultwrap.cpp through a Scanner class, similar to Go's bufio.Scanner. There are a few snags right now... 2018-05-22 21:03:54 -04:00
Ben Campbell 4246ae5549 assorted consistancy cleanup 2018-05-22 22:53:25 +12:00
Ben Campbell 7402dec266 remove superfluous #include <vector> 2018-05-22 20:41:49 +12:00
Ben Campbell fc2ea17bb8 Add minimal uiTable implementation for windows
This uses the win32 common controls listview to implement uiTable.
There are limitations:
 - It supports only a single TextPart per column.
 - ImagePart, CheckboxPart and ProgessBarPart are not implemented.
 - There is no support for cell coloring.
 - Cell editing is not implemented.
Some of these will be very hard to support using the standard
common control listview, and probably require an entire custom
listview.
2018-05-22 20:41:49 +12:00
Pietro Gagliardi d09be0d5fc Fixed bugs in hresultwrap.cpp. 2018-05-21 23:05:39 -04:00
Pietro Gagliardi fb745e80e3 Started the tool to convert Windows API functions into HRESULT wrappers. 2018-05-21 22:42:19 -04:00
Pietro Gagliardi 20483669b2 Merge branch 'master' into windows-namespace-and-hresult-cleanup 2018-05-21 20:12:42 -04:00