Commit graph

2239 commits

Author SHA1 Message Date
Vladimir Vukicevic
0fe8a93d95 Win32: expose win32 DIB (image) surface creation function, and DC getter
Adds cairo_win32_surface_create_dib() for creating a win32 DIB-backed
surface with a particular format.  Also exposes
cairo_win32_surface_get_dc() to obtain the DC of a win32 surface.
(cherry picked from 0813a1b9b6f35d786fe8cb0d4748771023956cde commit)
2006-02-27 12:53:36 +01:00
Vladimir Vukicevic
f4b34df6b6 Have mark_dirty always invalidate the last clip set on the surface
mark_dirty will force cairo to set its own clip the next time the cairo clip
is applied after mark_dirty; otherwise we run the risk of cairo's cached
clip and the device clip getting out of sync if any clip-related functions
are used on the native device back-end.
(cherry picked from 1935a28949da8569f924e37714ec19571fa95987 commit)
(cherry picked from ef8b472f0ffab7b8b828d7297c7e454bb22bd5ec commit)
2006-02-27 12:24:09 +01:00
Vladimir Vukicevic
e0f4eecb91 Win32: Rework clip and extents handling
- Save extents at surface creation and always return these
- Simplify clipping paths
(cherry picked from a67722b3d7280e6c2375778c2d46556cca261bfc commit)
(cherry picked from 7ce09732a978749a4da814feb77f50161dc42c91 commit)
2006-02-27 12:23:23 +01:00
Vladimir Vukicevic
f6b4fabaf5 Misc compilation fixes (C++-style comments, M_PI decls, etc.)
(cherry picked from d0cc56b9a24fa59febc15ac5de073da0e785e1cc commit)
(cherry picked from a6a054abe45287eb950c294e20366594313138f5 commit)
2006-02-27 12:22:33 +01:00
Christian Biesinger
dba214b944 Use C-style comments rather than C++-style 2006-02-26 11:13:42 +01:00
Carl Worth
5a3c30eafe Implement cairo_font_face_get_type.
Add font type to font_face_backend.
Also export new CAIRO_FONT_TYPE_TOY.
2006-02-24 15:32:26 -08:00
Carl Worth
5928d03b49 Remove private cairo_pattern_type in favor of new public one. Rename
all values to now include TYPE. Drop _GRADIENT from LINEAR and RADIAL.
2006-02-24 15:25:19 -08:00
Carl Worth
f58f39d7af cairo.h: Fix typo (thanks to Torsten Schoenfeld) 2006-02-24 15:06:50 -08:00
Carl Worth
2fc9fd79e7 cairo.h: Fix two typos in the documentation. 2006-02-24 11:37:50 -08:00
Carl Worth
9287d60d60 Add get_type functions: cairo_surface_get_type,
cairo_pattern_get_type, cairo_font_face_get_type, and
cairo_scaled_font_get_type.
2006-02-24 11:24:03 -08:00
Carl Worth
d0e02a948e autogen.sh: Pass --foreign option to automake so that it doesn't
complain that ChangeLog does not exist.
2006-02-24 09:18:17 -08:00
Carl Worth
cb778760cb cairo_close_path: Document that there will be a current point after
cairo_close_path.
2006-02-23 22:07:13 -08:00
Carl Worth
1dc1b57b4e cairo_new_sub_path: Making cairo_arc easier to use and more.
This adds a new function which has as its only effect the elimination
of
the current point. This makes it much easier to use the various
cairo_arc calls when the initial line_to is not actually desired.

This function also unifies and generalizes the long-existing behavior
of cairo_line_to being treated as cairo_move_to when there is no
current point. With the addition of cairo_new_sub_path this becomes a
documented feature with similar behavior in cairo_curve_to as well.
2006-02-23 22:01:07 -08:00
Carl Worth
0354956a09 Remove ChangeLog as it is no longer maintained as a separate file (instead it is implicitly generated) 2006-02-23 20:45:30 -08:00
Christian Biesinger
07205ddc4b Mark private functions as cairo_private
(cherry picked from a1c72cd8f244e97d4b6fe3e5d3efa622c8b3f7f9 commit)
2006-02-24 01:38:27 +01:00
Christian Biesinger
b2912241f6 Add missing gradient functions to pixman-remap.h 2006-02-21 21:00:48 +01:00
Christian Biesinger
0fc25c9853 Don't call _cairo_error when returning an error
Only return it when returning a nil surface.
2006-02-18 21:45:58 +01:00
Christian Biesinger
5c5ea6d523 Fix typo. 2006-02-18 19:36:18 +01:00
Christian Biesinger
f4d9e55962 Use TRUE/FALSE instead of 1/0 for boolean values
(cherry picked from e1703520169e0cf972a6edcaa8660d14806d8c6f commit)
2006-02-16 23:56:16 +01:00
Carl Worth
57edf3f28f Normalize indentation after previous commit. 2006-02-16 09:05:52 -08:00
Carl Worth
0152bd3a56 Allow _get_bitmap_surface to work for 0x0 glyphs, (fix for bug #5734).
Patch from: Behdad Esfahbod <freedesktop@behdad.org>
Reviewed by: Carl Worth <cworth@cworth.org>
2006-02-16 09:02:29 -08:00
Carl Worth
f12aa15466 Add Mozilla patches to ROADMAP 2006-02-15 16:50:57 -08:00
Carl Worth
fd9566ebd9 Slip 1.2.0 release date out to 2006-03-08 2006-02-15 16:36:12 -08:00
Carl Worth
32ec3ccf17 Annoying churn of tmpl file. (We really need to get all of these built files out of version control.) 2006-02-15 15:40:41 -08:00
Carl Worth
d88c19071f Rename .cvsignore to .gitignore. Add *~ and *.o. 2006-02-15 15:00:26 -08:00
Emmanuel Pacaud
f4270b3dfc convert _cairo_svg_surface_old_show_glyphs to _cairo_svg_surface_show_glyphs. 2006-02-13 14:11:36 +00:00
Emmanuel Pacaud
921dcc16f9 Add mask support and switch to SVG 1.2 for compositing operators.
return xml node instead of cairo status. (emit_composite_svg_pattern): ditto. (emit_composite_pattern): ditto. (emit_operator): use SVG 1.2 operators, since feComposite filter always composite resulting surface to current canvas. (_cairo_svg_surface_composite): removed. (_cairo_svg_surface_fill_rectangles): removed. (intersect): removed. (_cairo_svg_surface_composite_trapezoids): removed. (emit_paint): new. (_cairo_svg_surface_paint): new. (_cairo_svg_surface_mask): new. (_cairo_svg_surface_stroke): emit operator.
2006-02-13 12:41:10 +00:00
Christian Biesinger
8ff1866724 Adds the BeOS surface functions to the list of functions for which to generate documentation. 2006-02-11 12:57:56 +00:00
Emmanuel Pacaud
9c05d2aab1 fix filename.
shh!
2006-02-02 12:47:58 +00:00
Emmanuel Pacaud
be7b6251f3 fix offset of pattern stops. 2006-01-29 13:25:10 +00:00
Keith Packard
d157e1fcd5 Make watermark consistently translucent Use fill for dung outline Fix text locations 2006-01-25 19:17:34 +00:00
Carl Worth
3bcaab9fe1 Add a CONTROL-Q keybinding to quit. 2006-01-25 15:34:30 +00:00
Keith Packard
29479a8b12 Adopt proposed new cairo color scheme. Recolor scarab, eliminate gradient in dung Use new blue background color. Rework font sizes, use bold for titles. Change tutorial title.
reviewed by: cworth
2006-01-25 15:29:25 +00:00
Carl Worth
2d2c5fd5b0 Shrink the font size to make the tutorial instructions fit.
Format text to solve all problematic line wrapping.
Add my name to the README.
2006-01-25 14:31:17 +00:00
Carl Worth
dc64fcc68c Move the magic header files to be down in an include directory and more out of the way.
Look for the headers in -I./include.
Make the circle track the width and height of the window dynamically.
Remove boring expander example.
Add more interesting LCA exmaple.
Add some notes about how to use this stuff.
2006-01-25 10:22:32 +00:00
Carl Worth
9abe21ac70 Here's the actual template I was referring to in my previous commit.
Add a bunch more slides. Most of the text is in place now---just missing some formatting and a bunch of examples.
2006-01-25 08:41:14 +00:00
Carl Worth
649d8a0918 Add Red Hat logos to slide templates.
Add header/footer-less slide variant for slides needed an extra bit of space.
Start getting slides ready for linux.conf.au 2006 tutorial, updating for cairo 1.0 API, and adding better organization. Verify and fix all the little example shell programs.
Really remove the building of the
-pdf programs this time.
2006-01-25 07:33:56 +00:00
Carl Worth
ea9f65b0d4 A few random changes to the slides.
Remove pdf build by default, (since it is disabled by defalt in cairo 1.0.2).
Change draw interface to accept a width and height.
Fix the destroy event handler so that clicking on the window manager's 'close window' button works.
2006-01-25 02:10:23 +00:00
Behdad Esfahbod
d6ff77c297 Add cairo_scaled_font_text_extents.
New function.
Improve documentation.
2006-01-22 02:33:26 +00:00
Christian Biesinger
bfc2b49ad9 Updating BeOS reference images, the tests use a black background now. 2006-01-21 11:54:17 +00:00
Christian Biesinger
9fe4934635 Update BeOS test code per the cairo_format_t -> cairo_content_t changes. 2006-01-21 09:46:13 +00:00
Christian Biesinger
2afe78c0c2 Don't mix declarations and code. This makes the code valid ISO C, fixes a gcc -pedantic warning, and unbreaks the build with the compiler Zeta ships with. 2006-01-21 09:39:10 +00:00
Carl Worth
f1fd1cc7a9 Add getter functions for cairo_scaled_font_t. 2006-01-20 15:25:54 +00:00
Carl Worth
a6ad853ee1 Fix test to use fontconfig properly so that the test no longer fails. Fixes bug #4674. (Thnks to sunmoon1997 for the fix). 2006-01-20 15:15:40 +00:00
Carl Worth
13511972b6 Check font_face->status and return a nil scaled font if it is in an error state. (Thanks to Christian Biesinger and sunmoon1997 who pointed this out as part of bug #4674).
With this bug fix, the ft-font-create-for-ft-face test fails (as it should) since it is abusing fontconfig.
2006-01-20 14:48:07 +00:00
Carl Worth
074f886c00 Rip the cairo_content_t argument out of ps/pdf_surface_create as per discussion on cairo mailing list. Instead these surface will behave as if CONTENT_COLOR_ALPHA had been passed (that is, compositing operators will behave as if destination alpha were available).
This also has the benefit of preserving the API that has been in place for PS/PDF surface since the (experimental) stuff in 1.0.0.
Track API change.
Continue testing PS/PDF surfaces in the CAIRO_CONTENT_COLOR mode but do it by rendering to an intermediate similar surface rather than constructing the target surface differently.
2006-01-19 17:48:22 +00:00
Emmanuel Pacaud
14acc7f132 add missing header. Fix #5544. 2006-01-19 12:44:00 +00:00
Carl Worth
ec45efa57c Fix compilation-breaking typo. 2006-01-18 16:44:19 +00:00
Carl Worth
c634e54775 Change documentation to recommend cairo_paint rather than cairo_rectangle;cairo_fill for clearing a surface.
Add documentation. Add a cairo_content_t argument to PDF surface constructors.
Add documentation. Add a cairo_content_t argument to PS surface constructors.
Track changes in PS/PDF surface constructor API.
2006-01-18 16:40:17 +00:00
Carl Worth
ba69dfefa7 Fix documentation of cairo_arc which erroneously claimed M_PI radians == 90 degrees to correctly say that M_PI/2.0 radians == 90 degrees. This closes bug #5649 (with thanks to kengruven@gmail.com). 2006-01-18 09:46:42 +00:00