Commit Graph

123 Commits

Author SHA1 Message Date
Pietro Gagliardi ff3d39213e Decided to just build everything by default and not have separate all or examples targets since we don't really have much control over what's a top-level target anyway (and ninja on its own == ninja all). Also set layout to flat by default, since it keeps everything together, which will lead to less surprising behavior on Windows and is more useful for our release packages. 2019-03-31 11:04:20 -04:00
Pietro Gagliardi 81e25f76f2 Moved the binary PIC as a TODO and marked merge blockers as MESONTODO. Also removed a stale cmake-era TODO, because the manifest distribution idea it had will eventually be part of the uires tool. 2019-03-27 21:34:09 -04:00
Pietro Gagliardi e1d6f35ef0 And settled examples/CMakeLists.txt. 2019-03-27 01:09:54 -04:00
Pietro Gagliardi 1b9250e41e Removed include_directories hackery, as suggested by various people in freenode #mesonbuild. 2019-03-25 20:07:22 -04:00
Pietro Gagliardi 3457082b1b Set up examples meson.build. 2019-03-24 17:26:15 -04:00
Pietro Gagliardi 6533c0be32 Fixed the datetime example 2018-05-13 13:00:42 -04:00
Pietro Gagliardi ca1079f344 Cleaned up from the previous merge and added it to the README. 2018-05-13 12:05:09 -04:00
cody271 edd4127f8e uiDateTimePicker Fix style consistency 2018-05-12 21:35:07 -07:00
cody271 3e9bdd26f1 Fix layout in datetime/main.c 2018-05-12 21:35:07 -07:00
cody271 bc14042935 Add uiDateTimePickerTime() APIs 2018-05-12 21:35:07 -07:00
cody271 27b8ce1db3 Add uiTimer() API and example 2018-04-16 17:28:12 -07:00
Pietro Gagliardi 242620ff0f Fixing deployment target issues on OS X broke cpp-multithread due to deployment target libc++ issues. Fixed.
Fixes #302.
2018-03-20 02:10:48 -04:00
Pietro Gagliardi 3e76d799b1 Fixed leftovers from utflib-and-attrstr that broke builds of things I didn't fully update yet, since people want to build them anyway (for testing in a CI environment, I suppose; a real unit test suite would be better for this, though, which is one of the reasons for the _future/unittest stuff...)
Updates #302.
2018-03-20 01:58:34 -04:00
Pietro Gagliardi d788d86239 Removed the margins from the drawtext example. It looks better this way. 2018-03-18 15:39:44 -04:00
Pietro Gagliardi a0d2d6a1f8 Added alignment to the drawtext example. 2018-03-18 15:30:50 -04:00
Pietro Gagliardi 9aea7fa62e Polished up the drawtext demo a bit (such as finally fixing that titlebar). Also more crash-related TODOs. 2018-03-18 11:24:09 -04:00
Pietro Gagliardi 8709838a8f Added a uiFreeFontButtonFont() function to free resources allocated by uiFontButtonFont(), implemented it on Windows, and integrated it into the drawtext example. I'm going to continue chipping away at the Windows code for a bit longer, so I'll add this to the other platforms later. 2018-03-17 23:07:40 -04:00
Pietro Gagliardi 5d116d87fe Fixed a typo in the drawtext example and made it redraw immediately on a font change. 2018-03-17 16:14:50 -04:00
Pietro Gagliardi 6ba2d3606d Removed uiprivStrdup() (we'll just uiprivAlloc()+strcpy() instead) and fleshed out the drawtext example's text a bit more. 2018-03-10 22:51:39 -05:00
Pietro Gagliardi 5ef04f2675 And fixed the other issue: didn't fully set uiDrawTextLayoutParams. Oops =P It works! Also did proper memory management before uiUninit()... but it's crashing for other reasons now (using strdup() instead of uiAlloc()). And Skia doesn't map correctly... 2018-03-10 22:16:43 -05:00
Pietro Gagliardi 1fae3eea02 And wrote a new, simpler drawtext example. Now to debug run-time issues in the new attributed string code! First up: some infinite loop. 2018-03-10 21:57:45 -05:00
Pietro Gagliardi 427e013d78 And moved the OpenType example out of the way too. 2018-03-10 19:42:50 -05:00
Pietro Gagliardi 8fda407183 Moved the old drawtext example out of the way. 2018-03-10 19:24:20 -05:00
Pietro Gagliardi a74923d574 Finally decided to add that httext file; gzipped to avoid git mangling it. 2018-02-17 11:04:02 -05:00
Pietro Gagliardi c8f4ccc712 Did a patch for OS X. Fixing grid is gonna be FUN. 2017-06-11 12:21:49 -04:00
Pietro Gagliardi 85c39c6cb3 Connected events in the opentype example. 2017-06-11 00:37:26 -04:00
Pietro Gagliardi 8728dcb5c0 Started a new example for showing off OpenType features. This just lays out the UI and draws the string. 2017-06-10 23:33:25 -04:00
Pietro Gagliardi dbb17e441d Comments related to above. 2017-06-06 16:20:58 -04:00
Pietro Gagliardi b3e3b27f71 Some more TODO cleanup and name adjustment. 2017-06-06 14:14:33 -04:00
Pietro Gagliardi 01df4631f6 And finished integrating the new attributed string stuff on OS X. 2017-05-30 15:24:31 -04:00
Pietro Gagliardi 475ae4a4bf Started making attribute manipulation better. In a sense. Pointers will be represented properly, and in a const-safe way. We'll need to make local copies of everything, of course. 2017-05-28 00:19:49 -04:00
Pietro Gagliardi bd39189a0e Fixed the build and an unspotted error in the drawtext example. 2017-05-19 16:10:54 -04:00
Pietro Gagliardi 4f427b2121 And ported the drawtext example to use the new features system. 2017-05-17 21:41:08 -04:00
Pietro Gagliardi 5234586ead Added a test for making uiDrawTextLayouts on empty strings. We're already off to a good start since we have a ~0 error on OS X... 2017-02-24 18:54:35 -05:00
Pietro Gagliardi 28b30367e2 Still more TODO resolution. 2017-02-24 18:19:34 -05:00
Pietro Gagliardi cca4db5ce9 More TODO resolution and pointless TODO elimination. 2017-02-24 18:15:20 -05:00
Pietro Gagliardi 0df8346bff Also removed uiAttributeLangauge for compatibility reasons too. Let's settle all the TODOs now. 2017-02-24 12:12:03 -05:00
Pietro Gagliardi be56ec3626 Removed the vertical forms attribute. This is a compatiblity nightmare. 2017-02-24 01:23:47 -05:00
Pietro Gagliardi f2b158b529 And finished implementing attributes on Windows. 2017-02-22 19:13:36 -05:00
Pietro Gagliardi 9cc8b03516 Switched to a custom IDWriteTextRenderer, which will be necessary for some of our text attributes. More TODO. 2017-02-22 03:43:43 -05:00
Pietro Gagliardi 7920559aa5 More TODOs. 2017-02-20 12:50:00 -05:00
Pietro Gagliardi f65d4592d0 Combined attributes. We're good I guess. 2017-02-20 12:49:20 -05:00
Pietro Gagliardi fbd294c089 Filled in the rest of the typographic features. Now to write the any combination example. 2017-02-20 12:38:39 -05:00
Pietro Gagliardi 025dd16d76 More examples and crash fixes. 2017-02-16 15:02:19 -05:00
Pietro Gagliardi 685e17fc0e More typographical features examples. This crashing thing is getting really annoying. 2017-02-16 12:49:06 -05:00
Pietro Gagliardi 768aba6614 Added test of Unicase. Had to use the Arial that comes with Windows 10, which seems to be the only font file I have out of **everything** that comes with Unicase. :S 2017-02-16 03:05:29 -05:00
Pietro Gagliardi 4262d893bc Fixed the Arabic embeds that demonstrate required ligatures. 2017-02-16 00:13:09 -05:00
Pietro Gagliardi dcc01f5b01 Started putting the typographical features attributes into the example program. 2017-02-15 23:52:16 -05:00
Pietro Gagliardi ddffce6d44 More work. This is annoying, stupid 10.9. 2017-02-15 19:42:57 -05:00
Pietro Gagliardi 6761c0a9f7 Added the language tag stuff to the example program. More TODOs. 2017-02-15 16:40:04 -05:00