Commit Graph

157 Commits

Author SHA1 Message Date
Pietro Gagliardi d7fa5e63be More events.md stuff. I need to decide if I should just give in and use <stdbool.h>... 2019-05-11 13:40:36 -04:00
Pietro Gagliardi e1c970bdbd More event interface refining. 2019-05-07 23:12:18 -04:00
Pietro Gagliardi 4aaad25c02 Started writing the documentation for the new event handling interface. At this point I'm tempted to forego the overview sections for the time being, since all the contractual stuff would go in the reference. 2019-05-07 23:05:31 -04:00
Pietro Gagliardi 7424a9ea6c Added a note on static Windows linking to the using-libui.md that I overlooked all this time until I realized we needed this now. 2019-05-04 21:49:07 -04:00
Pietro Gagliardi 69000cda46 More TODOs. 2019-04-30 02:32:44 -04:00
Pietro Gagliardi 2c57498e44 Re-added uiMain(), uiQuit(), and uiQueueMain(). 2019-04-27 21:48:51 -04:00
Pietro Gagliardi 23591eeefa Executive decision: drop uiUnint(). This was really more for double-checking *my* work, mostly with regards to memory management, and we could probably do that in the test suite instead, or even with AddressSanitizer. 2019-04-21 20:59:36 -04:00
Pietro Gagliardi 29c51b6348 Started readding the Windows code; added the Windows version headers to the docs as well now since I'm cleaning up winapi.hpp as well. 2019-04-21 13:54:39 -04:00
Pietro Gagliardi 2652772891 Wrapped the init example in a main() for maximum clarity. 2019-04-20 21:56:50 -04:00
Pietro Gagliardi 668a908e76 Fleshed out init-main.md some more. 2019-04-19 00:56:52 -04:00
Pietro Gagliardi 2f58c2059e Oops 2019-04-12 22:06:23 -04:00
Pietro Gagliardi 745f2da3b8 Forgot something 2019-04-12 22:05:21 -04:00
Pietro Gagliardi 541f9d892d More documentation of initialization. 2019-04-12 22:02:01 -04:00
Pietro Gagliardi 4c46a25154 Started re-adding the uiInit functions, with a new method of returning errors. 2019-04-12 21:44:39 -04:00
Pietro Gagliardi d861de85f6 Fleshed out using-libui.md. 2019-04-09 11:23:39 -04:00
Pietro Gagliardi 7387f08ee9 Added OS-specific header guidance. 2019-04-09 10:56:21 -04:00
Pietro Gagliardi b2cee470ca Oops, I accidentally swapped these two files. 2019-04-09 10:47:36 -04:00
Pietro Gagliardi c5db824918 Started writing the documentation. Also decided that uiStatic must be defined in order to use libui as a static library. I'll change libui itself next. 2019-04-08 21:23:22 -04:00
Pietro Gagliardi 751ce562bb Renamed the doc folder to _doc so as to make room for newer, more final documentation. 2019-03-17 19:29:58 -04:00
Pietro Gagliardi c25831ec66 Properly sized the explorer bar now. 2018-11-05 21:09:50 -05:00
Pietro Gagliardi a5fb198558 Started work to properly size the explorer bars. 2018-11-04 22:19:44 -05:00
Pietro Gagliardi 7138276ccf And completed the genericization for Vista. It works!!! 2018-11-02 23:23:35 -04:00
Pietro Gagliardi 3d4b959632 More work on generalizing the winbuttonexplorertheme program. 2018-11-01 10:50:10 -04:00
Pietro Gagliardi d9a851169e More work. More platform-specific parameters, yay! 2018-10-30 23:34:06 -04:00
Pietro Gagliardi 447dc24651 Start of refactoring of stuff into classes! It's spaghetti already~ 2018-10-29 21:11:16 -04:00
Pietro Gagliardi c49151a4dc Background now draws correctly on Vista. Something weird is going on with the theme there; the parts (except for part 1) seem to be shifted down one... and the UIFILE there uses named constants directly... 2018-10-28 22:03:56 -04:00
Pietro Gagliardi b82d1b0a3b More work; we now have the background. Oh boy, this is gonna be fun, because Vista doesn't have things set up quite right compared to 7... 2018-10-28 18:17:37 -04:00
Pietro Gagliardi 9e6baf0a61 And cleaned up the button sizing, metrics, and drawing code. It seems to position the content correctly still! :D 2018-10-26 23:23:08 -04:00
Pietro Gagliardi d15dfa06a8 More text drawing work. I might need to make a generic button metrics function for this instead. 2018-10-21 22:23:11 -04:00
Pietro Gagliardi 836e0dc2c7 Resolved sizing woes for now. 2018-10-20 19:22:02 -04:00
Pietro Gagliardi 71ddf6ce91 Figured out more stuff about our button size woes. 2018-10-19 22:22:45 -04:00
Pietro Gagliardi 24e8649c87 More experiments. This is getting absurd. 2018-10-18 22:32:53 -04:00
Pietro Gagliardi 7e34fac79d More experimentation. DirectUI is doing something with the sizing that I'm not... 2018-10-16 23:19:23 -04:00
Pietro Gagliardi 83ba0b1a41 More experiments in properly sizing our themed buttons since I'll just be custom-drawing them in their entirety based on the UIFILE's specification of content alignment. 2018-10-16 11:25:22 -04:00
Pietro Gagliardi fcec8693ca Started drawing the button properly. Focus rects are now in the way... 2018-10-15 09:30:22 -04:00
Pietro Gagliardi 38723aeff9 More TODOs. 2018-10-15 01:54:15 -04:00
Pietro Gagliardi ba9c42e5bb More theming work. We may actually have it this time! 2018-10-15 01:53:22 -04:00
Pietro Gagliardi 760a7c09f5 Started a new test program that works like the rebar one except with real button controls instead. 2018-10-14 23:56:00 -04:00
Pietro Gagliardi 359c08aa11 Tried to custom-draw the split button properly. Not sure it's possible... 2018-10-14 19:08:02 -04:00
Pietro Gagliardi c216d8953d Undid all custom sizing stuff for now. Let's just make this work first. 2018-10-14 18:42:51 -04:00
Pietro Gagliardi ddd6afbf36 Refined icon loading and tried to expand the winrebarexplorertheme test a bit more elaborate. This is going badly again... 2018-10-14 15:12:00 -04:00
Pietro Gagliardi 79d1d58af2 Oops 2018-10-13 18:12:04 -04:00
Pietro Gagliardi 1d94e95e83 More work. That chevron is going to be annoying... 2018-10-13 17:56:44 -04:00
Pietro Gagliardi 9d31dddd13 Figured out what I was doing wrong to get rightbar not working; it was some code I forgot about =P 2018-10-13 14:17:17 -04:00
Pietro Gagliardi fc2ef2c904 More work. This is starting to get twisted. 2018-10-12 22:45:37 -04:00
Pietro Gagliardi a5aa4624df More work. We're definitely building up to something... 2018-10-12 20:56:53 -04:00
Pietro Gagliardi 87d3fc5064 And started the custom draw code. 2018-10-11 22:49:37 -04:00
Pietro Gagliardi 6a22c61cd4 More work on winrebarexplorertheme.cpp, including the boilerplate for custom draw. More TODOs in general. 2018-10-11 22:19:10 -04:00
Pietro Gagliardi d082b4efa4 More work on winrebarexplorertheme.cpp. It registers themes. 2018-10-11 21:03:34 -04:00
Pietro Gagliardi 91fe6e7c47 More rebar refinements. 2018-10-11 05:35:06 -04:00
Pietro Gagliardi 97b11e027d Refined the rebar test some more. 2018-10-11 04:10:36 -04:00
Pietro Gagliardi 30ee36f8d2 More test programs. This isn't done yet, and it's not working right... 2018-10-09 23:40:13 -04:00
Pietro Gagliardi 37bd4fc5a1 Added a test program to demonstrate the GTK+ progress bar cell renderer timer issues. 2018-06-25 21:25:23 -04:00
Pietro Gagliardi 7be597f674 TODO-ize names.md. I'm just going to merge this as-is, since I have not yet solidified the Obj-C rules yet. 2018-05-06 19:32:56 -04:00
Pietro Gagliardi 1e5f1b8254 More name stuff. Argh. 2018-05-06 14:56:38 -04:00
Pietro Gagliardi fb60d5860e Started pinning down reserved names. This is awkward... 2018-05-06 11:27:43 -04:00
Pietro Gagliardi e0b584082d Reintegrated everything and fixed more compiler errors. Now we have to deal with linker errors, and then with testing to see if everything worked... 2017-11-03 20:59:27 -04:00
Pietro Gagliardi 2276a136cb And tied everything together. Now we move everything back and test. 2017-11-03 20:33:08 -04:00
Pietro Gagliardi 8333063cc0 And implemented fontvariation.m. 2017-11-03 19:52:49 -04:00
Pietro Gagliardi 72d31285c1 Migrated fonttraits.m to use the new fontStyleData class. 2017-11-03 18:52:15 -04:00
Pietro Gagliardi 51f0e3dbe5 Folded all CFNumber accesses into [self prepare] for error checking. This shouldn't make things *significantly* slower... 2017-11-03 18:41:13 -04:00
Pietro Gagliardi 4e7fb5e264 Added code that handles all the attribute stuff for a CTFontRef AND CTFontDescriptorRef for us; we'll use this throughout the various font style files instead of doing everything ourselves. 2017-11-03 15:51:21 -04:00
Pietro Gagliardi be6a07755b Described what each of the three .m files are going to do. 2017-11-02 21:51:00 -04:00
Pietro Gagliardi 57a6ea0a77 Moved fontmatch.m alongside the other font files as we prepare to combine everything. 2017-11-02 21:10:38 -04:00
Pietro Gagliardi f2971f637f Added fvar axis identifiers. 2017-11-02 19:33:41 -04:00
Pietro Gagliardi b7e6311621 Started writing the code for processing font variations for Core Text so we can process Skia correctly. 2017-11-02 19:27:57 -04:00
Pietro Gagliardi 2e5f2c273b More fvar.swift stuff. I'm going to need a font with an avar table... 2017-11-02 10:39:43 -04:00
Pietro Gagliardi 830753d888 More fvar.swift stuff. This is gonna hurt... 2017-11-02 03:17:33 -04:00
Pietro Gagliardi 03b089c972 Added a fvar table test. This might be a bit more complicated... 2017-11-02 02:46:16 -04:00
Pietro Gagliardi 6b295b2d3f And fixed a comment placeholder (and typo) and reformatted it slightly. 2017-11-01 20:23:52 -04:00
Pietro Gagliardi a7bbbc8bb9 Changed a slight thing in fonttraits.m. 2017-11-01 20:20:12 -04:00
Pietro Gagliardi 3108f65b39 Wrote the initial version of the final code for converting Core Text traits into libui traits. 2017-11-01 20:14:44 -04:00
Pietro Gagliardi 2481610ee4 And made a similar ctwidthscombined to the previous commit's ctweightscombined. Now I can start thinking about implementation. 2017-11-01 13:34:54 -04:00
Pietro Gagliardi b769b81639 Added an aggregation of Core Text weight values for my own thinking and planning. 2017-10-31 23:50:05 -04:00
Pietro Gagliardi 0a1b5ff6a8 Oops, accidentally chopped off a hex digit from one of the ctweights values. Fixed (manually). 2017-10-31 22:48:02 -04:00
Pietro Gagliardi 78bfc62399 Oops; generated weights instead of widths. 2017-10-22 10:06:28 -04:00
Pietro Gagliardi 1673156fd6 And the last bits for widths. 2017-10-22 01:31:26 -04:00
Pietro Gagliardi 1851fc8045 Added code to print the unregistered OS2 width values using the real instructions and constants used by Core Text. 2017-10-22 01:27:57 -04:00
Pietro Gagliardi e2369df648 More width stuff. 2017-10-21 23:55:03 -04:00
Pietro Gagliardi e186c0e69a Mapped out Core Text width value deduction. Will need to do the other files for this one too. 2017-10-21 22:43:43 -04:00
Pietro Gagliardi b2b5bc36b1 And annotated the ctweights list. 2017-10-21 12:45:15 -04:00
Pietro Gagliardi e5e0dca360 And processed the weights list. 2017-10-21 12:33:38 -04:00
Pietro Gagliardi e3deebaa1d And sorted out the weights. Now to determine what is and isn't sane. 2017-10-21 12:22:50 -04:00
Pietro Gagliardi 3b316ddb5b Sorted all the possible Core Text weight values into lists. Now to process those lists. 2017-10-21 12:07:07 -04:00
Pietro Gagliardi 2858c56528 CGFontCopyName() is too intricate to recreate. We might have to wind up calling it directly... 2017-10-21 02:54:39 -04:00
Pietro Gagliardi 9b28bd5ecd More name table work. 2017-10-20 14:14:32 -04:00
Pietro Gagliardi 9731d2e836 More work on ctweights. 2017-10-19 23:54:46 -04:00
Pietro Gagliardi f94de2eef8 And finally finished the core Core Text weight determination functionality pseudo-Go-code. God damn. And I have a funny feeling stretches are going to be a tad bit more inconsistent too... :| Not quite complete, though; need to fill in the name table parsing rules first. 2017-10-19 19:15:46 -04:00
Pietro Gagliardi 683bd47491 More ctweights stuff. 2017-10-19 00:01:14 -04:00
Pietro Gagliardi 9f1e1b25be Started converting the code in Core Text itself that determines what weight a font has into pseudocode. 2017-10-17 23:40:07 -04:00
Pietro Gagliardi 015008976f More documentation stuff. 2016-06-16 16:44:53 -04:00
Pietro Gagliardi 179042025a And implemented on Windows, and more TODOs on top of that. 2016-06-16 14:12:47 -04:00
Pietro Gagliardi caec39281b And implemented the new sizing stuff on OS X. 2016-06-16 00:58:40 -04:00
Pietro Gagliardi 997c8aac35 Implemented visibility change detection on Windows. Now to refine the actual implementation of hidden controls. 2016-06-14 15:55:24 -04:00
Pietro Gagliardi c31699e4cd Pinned down resource numbers now. 2016-06-04 14:36:55 -04:00
Pietro Gagliardi 0738eca6e4 More work. 2016-05-29 19:01:48 -04:00
Pietro Gagliardi 473e3b593b Quick README fix. 2016-05-29 18:36:11 -04:00
Pietro Gagliardi be8a957689 Fixed static linking on Windows. 2016-05-29 18:35:06 -04:00
Pietro Gagliardi 84d3df031f Either solved, dropped, or relegated to LONGTERM many of drawtext.m's TODOs. 2016-05-28 23:37:07 -04:00
Pietro Gagliardi 4ab0d9c1f6 More TODO resolution. 2016-05-22 22:57:18 -04:00