Mozilla2:NewGFXAPIs: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
I've been giving some thought to what kind of wrappers we want for cairo.  They should be pretty thin, but allow us flexability to add new features and helper functions.
'''This page and the things it links to are somewhat out-of-date.  Check LXR for more up-to-date APIs in mozilla/gfx/thebes'''
 
I've been giving some thought to what kind of wrappers we want for cairo.  They should be pretty thin, but allow us flexibility to add new features and helper functions. This code is being called "Thebes".


These are pretty rough and need more thought, but here are some of the classes I've been thinking of.
These are pretty rough and need more thought, but here are some of the classes I've been thinking of.


[[Mozilla2:Surface|Surface]]
* [[Mozilla2:GFXGraphics|gfxContext]]
[[Mozilla2:Color|Color]]
* [[Mozilla2:GFXSurface|gfxSurface]]
[[Mozilla2:Matrix|Matrix]]
* [[Mozilla2:GFXColor|gfxColor]]
* [[Mozilla2:GFXMatrix|gfxMatrix]]
* [[Mozilla2:GFXPoint|gfxPoint,Rect,Size]]
* [[Mozilla2:GFXTextRun|gfxTextRun]]
 
All these classes use gfxFloat as their floating point type (currently typedefed to 'double'). This will probably stay 'double' but might be typedefed to 'float' on small devices.

Latest revision as of 00:35, 1 November 2005

This page and the things it links to are somewhat out-of-date. Check LXR for more up-to-date APIs in mozilla/gfx/thebes

I've been giving some thought to what kind of wrappers we want for cairo. They should be pretty thin, but allow us flexibility to add new features and helper functions. This code is being called "Thebes".

These are pretty rough and need more thought, but here are some of the classes I've been thinking of.

All these classes use gfxFloat as their floating point type (currently typedefed to 'double'). This will probably stay 'double' but might be typedefed to 'float' on small devices.