Commit Graph

1986 Commits

Author SHA1 Message Date
Pietro Gagliardi 0ec70f9111 Removed libgmalloc. That was a mistake; it slows down callbacks tremendously on DEFAULT SETTINGS. 2015-12-27 15:54:53 -05:00
Pietro Gagliardi c31d06c254 Quick change for now: added libgmalloc to the OS X build so I can debug potential memory allocation issues. I think something is wrong in the mouseExited logic... 2015-12-27 15:19:14 -05:00
Pietro Gagliardi 3b916fa749 Stubbed out the text drawing functions on OS X. 2015-12-27 11:32:47 -05:00
Pietro Gagliardi 15bb899770 Vertically condensed Page 9 a bit. 2015-12-24 23:04:07 -05:00
Pietro Gagliardi 6fd945b602 Split the text test onto a separate page, Page 9. 2015-12-24 22:59:00 -05:00
Pietro Gagliardi 353afcd464 Added the Language field to the text styles list. 2015-12-24 22:31:32 -05:00
Pietro Gagliardi 6ef404c2dd Implemented the basic uiDrawText() function on GTK+. It looks like I missed some PangoAttributes; I'll add those in next. 2015-12-24 19:48:57 -05:00
Pietro Gagliardi 280ef464f6 Started work on text rendering. Right now, features match Pango; they will be stripped as needed. Also I never committed test/page8.c; whoops. 2015-12-24 18:05:16 -05:00
Pietro Gagliardi 6a5997cc1a More notes. 2015-12-23 15:22:01 -05:00
Pietro Gagliardi 5698d84cf3 More text rendering stuff. And given how it appears I have to render DirectWrite data into a Direct2D path geometry, I might be a little bit too much in over my head here... 2015-12-23 15:19:40 -05:00
Pietro Gagliardi a9419e0cc4 Oops, I completely overlooked the Core Text Font Manager Reference, which would have told me that CTFontManagerCopyAvailableFontFamilyNames() was what I was looking for. Yay; the font families stuff now works on OS X as well! 2015-12-23 00:58:06 -05:00
Pietro Gagliardi bcc17a4e6d Attempted to write the font enumeration code for OS X. It does not work yet (memory management is borked and duplicate removal does not work, period). 2015-12-22 21:48:26 -05:00
Pietro Gagliardi 9efb452b2e Implemented the font family listing on Windows. 2015-12-22 20:01:53 -05:00
Pietro Gagliardi 5d47fcab5a Implemented the font family enumerator on GTK+. 2015-12-22 19:17:27 -05:00
Pietro Gagliardi 9987c98dcd Began the work to list font families. This is the first of the text rendering work. 2015-12-22 19:01:56 -05:00
Pietro Gagliardi 5267489f0b Now entering Valhalla. 2015-12-22 16:00:51 -05:00
Pietro Gagliardi a1d2c2b9fd Oh that's fucking wonderful, dwrite.h is C++-only. This is gonna make things extra wonderful... 2015-12-22 15:51:16 -05:00
Pietro Gagliardi d05bbe50a8 More TODOs. 2015-12-22 12:52:05 -05:00
Pietro Gagliardi e63f73e240 TODO elaboration. 2015-12-22 01:06:18 -05:00
Pietro Gagliardi 51d7cabfd9 More TODOs. 2015-12-22 01:02:06 -05:00
Pietro Gagliardi 0b68fc6931 More TODOs. 2015-12-22 00:43:48 -05:00
Pietro Gagliardi f04bbe1bdc Laid the foundation for text rendering into uiAreas on Windows. GTK+ and Cocoa backends need no special setup (we can start using Pango and Core Text respectively without extra initialization). Not sure when I'll actually add the APIs to draw text, but hopefully it's soon because I really really really need to start working on what I was actually going to USE this library for, and text rendering is the last major prerequisite. 2015-12-22 00:35:52 -05:00
Pietro Gagliardi 7d77a8c4e7 More TODOs. 2015-12-21 23:33:54 -05:00
Pietro Gagliardi 1919e74783 More TODOs. 2015-12-20 18:51:08 -05:00
Pietro Gagliardi f39b57bd27 TODO updates. 2015-12-19 17:41:54 -05:00
Pietro Gagliardi 92680a549d Oh I know why the green didn't show up; fixed. 2015-12-19 17:32:13 -05:00
Pietro Gagliardi 16f22576ed Reduced the number of tabs on the first page of the outer tab in the test program. This makes the uiArea tabs more readily accessible on all platforms and keeps the initial size of the main window down on OS X. Also fixed the rpath nonsense on the example makefile too. 2015-12-19 16:56:45 -05:00
Pietro Gagliardi 33d4217450 Fixed rpath shenanigans on OS X. 2015-12-19 16:46:04 -05:00
Pietro Gagliardi c095d80098 Implemented mouse tracking on OS X. 2015-12-19 16:35:18 -05:00
Pietro Gagliardi 35f2cc55da Fixed compiler errors. Now to implement mouse tracking. 2015-12-19 16:15:50 -05:00
Pietro Gagliardi a0c3c80393 Finished migrating OS X uiArea to the new scroll system. Now to compile and test. Crossed events come next. 2015-12-19 15:33:54 -05:00
Pietro Gagliardi 8cf437211d Dropped ALL the custom scrolling crap from darwin/area.m. We're going back to NSScrollView baby! 2015-12-19 15:13:44 -05:00
Pietro Gagliardi 85dac9fa80 Oh right they don't show because of ID2D1HwndRenderTarget::Resize(). I still wonder if areas outside the scroll could be scrolled visible... 2015-12-19 14:56:44 -05:00
Pietro Gagliardi b5d257409c Added a green "out of bounds" area to test/page7c.c. For some reason it doesn't show up here... will need to look further. 2015-12-19 14:54:24 -05:00
Pietro Gagliardi af374ed859 Implemented redrawing on scrolling and adjusting scrolling on resizing and actually implemented scrolled drawing correctly on uiArea on Windows. 2015-12-19 14:43:34 -05:00
Pietro Gagliardi a922551b78 More TODOs. 2015-12-19 01:17:06 -05:00
Pietro Gagliardi 0f80d15fc4 Added a test of scrolled drawing. More TODOs. 2015-12-19 01:16:32 -05:00
Pietro Gagliardi 13fa2e213d Took scrolling into account on uiArea with drawing (untested) and mouse events (tested). This is the preliminary work for moving scrolling from pixels to DIPs. But first, a test of scrolled drawing. 2015-12-18 22:06:48 -05:00
Pietro Gagliardi adc72c9d0b Implemented the other areautil.c functions. 2015-12-18 21:38:27 -05:00
Pietro Gagliardi 5e90cbcb93 Started a windows/areautil.c for miscellaneous functions, mostly (completely for now) having to do with coordinates and sizes. Right now it only has renderTargetGetSize(). 2015-12-18 21:15:40 -05:00
Pietro Gagliardi 444a7d3045 Fixed mouse capture behavior. It's not as clean as it could be, but it'll do. 2015-12-18 19:38:21 -05:00
Pietro Gagliardi 4b114f2764 Started the implementation of mouse crossing on Windows. 2015-12-18 18:06:45 -05:00
Pietro Gagliardi ce042eb12a Added an expository comment to windows/area.c. 2015-12-18 15:05:49 -05:00
Pietro Gagliardi 4edcddce14 Fixed the ID2D1RenderTarget::GetSize() madness a *SECOND* time. Urgh. Also removed a now-irrelevant TODO. 2015-12-18 15:04:37 -05:00
Pietro Gagliardi 6d06e15390 More Windows uiArea migration and compiler error fixes. Now to figure out what happened with GetSize again... 2015-12-18 14:21:35 -05:00
Pietro Gagliardi e76b34b670 Split windows/area.c into a bunch of files to make it much more manageable. Also did half of the migration to the new uiArea system. 2015-12-18 12:00:46 -05:00
Pietro Gagliardi fdbaea6b6c Migrated the histogram example to the new uiArea system. 2015-12-17 21:26:55 -05:00
Pietro Gagliardi 2ce0c810f1 Added a test of mouse events in a scrolled uiArea. Removed some dead code from the GTK+ uiArea. Now to make the changes to the Windows and OS X backends! 2015-12-17 21:21:29 -05:00
Pietro Gagliardi 6b2d9920c5 Split out the content of test/page7.c into test/page7a.c so more can be put on page 7. 2015-12-17 21:11:00 -05:00
Pietro Gagliardi cc7dd186e5 Fixed runtime issues with uiArea on GTK+. It works! 2015-12-17 19:59:33 -05:00