Jan Vrany <jan.vrany@fit.cvut.cz> [Tue, 05 Apr 2016 10:00:57 +0100] rev 77
CairoGraphicsContext: Fixed paint setting
Even though methods like #foreground: / #foreground:background: method
are marked obsolete for quite some time, a lot of core widgets are still
using them (!). Therefore CairoGraphicsContext must implement them to
correctly update Cairo context.
This fixes issues with EditField.
Jan Vrany <jan.vrany@fit.cvut.cz> [Tue, 05 Apr 2016 08:02:32 +0100] rev 76
Oops, fixed CairoGraphicsContext>>width:height:
Must test whether a Cairo context has been created. If not,
we're done.
Jan Vrany <jan.vrany@fit.cvut.cz> [Tue, 05 Apr 2016 07:44:27 +0100] rev 75
Fixed a baad bug in CairoGraphicsContext>>clippingBounds:
Must call `cr clipReset` as `cr clip` can never make clipping bounds
larger (see documentation for cairo_clip()). This fixes bard drawing
of underlined Text in text editor.
Jan Vrany <jan.vrany@fit.cvut.cz> [Mon, 04 Apr 2016 18:47:45 +0100] rev 74
Oops, fixed slip in CairoGraphicsContext>>destroyCR
Call #dcUnlockForGC: only on Windows...
Jan Vrany <jan.vrany@fit.cvut.cz> [Mon, 04 Apr 2016 18:43:52 +0100] rev 73
Moved CairoGraphicsContextTests to Smalltalk
Jan Vrany <jan.vrany@fit.cvut.cz> [Fri, 25 Mar 2016 22:05:01 +0000] rev 72
Cairo context and surface management for CairoGraphicsContext reworked to work under Win32
Win32 surfaces take initial clip/bounds from the passed device context. Therefore
when the view changes its size, the drawing is still clipped by the initial
size. Xlib surfaces need to be updated when window size changes.
This means that under Win32 the surface must be thrown away whenever the size
of the view changes. To do so, CairoGraphicsContext registers on #sizeOfView event
and updates (Xlib surfaces) or recreate surface and cairo context (Win32 surfaces).
Under Win32, use new WinWworkstation>>#dcLockForGC:/#dcUnlockForGC: to make sure
the device context is not released behind the back for Cairo's surface.
This reworked code depends on new API in stx:libview (see commits in stx:libview
9f5e7ff7c729 and 1b427e95d77c)
This should fix issue #2.
Jan Vrany <jan.vrany@fit.cvut.cz> [Mon, 28 Mar 2016 00:19:56 +0100] rev 71
Tests: CairoGraphicsContextTests moved to stx:goodies/libcairo/tests
...where it belongs.
Jan Vrany <jan.vrany@fit.cvut.cz> [Fri, 25 Mar 2016 07:06:46 +0000] rev 70
Added support for clipping
Jan Vrany <jan.vrany@fit.cvut.cz> [Fri, 25 Mar 2016 06:46:05 +0000] rev 69
Fixed SimpleView>>redrawWithCairoBuffered:
Use #sourceSurface:x:y: instead of (old) setSourceSufrace:
Jan Vrany <jan.vrany@fit.cvut.cz> [Tue, 22 Mar 2016 20:17:17 +0000] rev 68
Examples: Indicate Cairo or Native rendering
...in test window.