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 |
Pietro Gagliardi
|
0cb080d085
|
Ported over the tests. Now to fix runtime errors!
|
2015-12-17 19:30:28 -05:00 |
Pietro Gagliardi
|
78b714c238
|
Oh neat, only one compiler error. Now to rewrite the tests.
|
2015-12-17 19:19:08 -05:00 |
Pietro Gagliardi
|
e167b08fdb
|
Finished reimplementing the GTK+ uiArea. Now to build. Then to rewrite the tests...
|
2015-12-17 19:16:30 -05:00 |
Pietro Gagliardi
|
8ea3b07aa8
|
Got rid of the clientWidth and clientHeight variables.
|
2015-12-17 17:37:58 -05:00 |
Pietro Gagliardi
|
473c6c92f0
|
FINALLY removed areaPrivate from uiArea on GTK+, using uiArea itself for everything. Standardized variable names on that front. Also implemented MouseCrossing() there.
|
2015-12-17 16:49:59 -05:00 |
Pietro Gagliardi
|
1957ff1418
|
More TODOs.
|
2015-12-17 16:31:56 -05:00 |
Pietro Gagliardi
|
ffe9a2db28
|
Got rid of the GtkScrollable code from GtkDrawingArea for uiArea. Woo! Now we just have to nuke all that from the Cocoa backend and we're good.
|
2015-12-17 14:48:58 -05:00 |
Pietro Gagliardi
|
e9247858d4
|
Forgot a parameter in uiAreaHandler.MouseCrossed().
|
2015-12-17 14:20:17 -05:00 |
Pietro Gagliardi
|
4e015cf4d6
|
More parameter updating.
|
2015-12-17 13:54:54 -05:00 |