summaryrefslogtreecommitdiff
path: root/src/cairo-svg.h
Commit message (Collapse)AuthorAgeFilesLines
* doc: Fix external linksKhaled Hosny2023-02-021-3/+3
|
* #483Glash Gnome2021-05-131-1/+0
| | | Fix Enum_member_description
* svg: Label for cairo_svg_unit_t doxygen was incorrectBryce Harrington2017-12-141-1/+1
|
* svg: add a new function to specify the SVG document unitAntonio Ospite2017-12-041-0/+47
| | | | | | | | | | | | | Add a cairo_svg_surface_set_document_unit() function to allow users to set a unit for the width and height values of the root <svg> element. In particular this allows to draw in pixels and still have the expected result when generating SVG output. Add also the correspondent getter function. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=90166 Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* doc: Add since documentation for enumeration valuesAndrea Canciani2012-03-291-2/+2
|
* doc: Add "since" tag to documentationAndrea Canciani2012-03-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following Python script was used to compute "Since: 1.X" tags, based on the first version where a symbol became officially supported. This script requires a concatenation of the the cairo public headers for the officially supported beckends to be available as "../../includes/1.X.0.h". from sys import argv import re syms = {} def stripcomments(text): def replacer(match): s = match.group(0) if s.startswith('/'): return "" else: return s pattern = re.compile( r'//.*?$|/\*.*?\*/|\'(?:\\.|[^\\\'])*\'|"(?:\\.|[^\\"])*"', re.DOTALL | re.MULTILINE ) return re.sub(pattern, replacer, text) for minor in range(12,-2,-2): version = "1.%d" % minor names = re.split('([A-Za-z0-9_]+)', stripcomments(open("../../includes/%s.0.h" % version).read())) for s in names: syms[s] = version for filename in argv[1:]: is_public = False lines = open(filename, "r").read().split("\n") newlines = [] for i in range(len(lines)): if lines[i] == "/**": last_sym = lines[i+1][2:].strip().replace(":", "") is_public = last_sym.lower().startswith("cairo") elif is_public and lines[i] == " **/": if last_sym in syms: v = syms[last_sym] if re.search("Since", newlines[-1]): newlines = newlines[:-1] if newlines[-1].strip() != "*": newlines.append(" *") newlines.append(" * Since: %s" % v) else: print "%s (%d): Cannot determine the version in which '%s' was introduced" % (filename, i, last_sym) newlines.append(lines[i]) out = open(filename, "w") out.write("\n".join(newlines)) out.close()
* doc: Make documentation comments symmetricAndrea Canciani2012-03-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Documentation comments should always start with "/**" and end with "**/". This is not required by gtk-doc, but it makes the documentations formatting more consistent and simplifies the checking of documentation comments. The following Python script tries to enforce this. from sys import argv from sre import search for filename in argv[1:]: in_doc = False lines = open(filename, "r").read().split("\n") for i in range(len(lines)): ls = lines[i].strip() if ls == "/**": in_doc = True elif in_doc and ls == "*/": lines[i] = " **/" if ls.endswith("*/"): in_doc = False out = open(filename, "w") out.write("\n".join(lines)) out.close() This fixes most 'documentation comment not closed with **/' warnings by check-doc-syntax.awk.
* Update FSF addressAndrea Canciani2010-04-271-1/+1
| | | | | | | | | | | I updated the Free Software Foundation address using the following script. for i in $(git grep Temple | cut -d: -f1 ) do sed -e 's/59 Temple Place[, -]* Suite 330, Boston, MA *02111-1307[, ]* USA/51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA/' -i "$i" done Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21356
* Use #include "cairo-*." instead of #include <cairo-*.h>Behdad Esfahbod2008-06-231-1/+1
| | | | | The rule is simple: <x.h> for system / other project includes, "x.h" for local includes.
* [doc] Stricter syntax check for type names, update testBehdad Esfahbod2008-01-281-1/+1
|
* [SVG] Define enum _cairo_svg_version.Behdad Esfahbod2006-11-211-1/+1
|
* Remove CAIRO_SVG_VERSION_LAST from public header file.Behdad Esfahbod2006-06-301-3/+10
|
* New API: Replace cairo_{ps,pdf,svg}_set_dpi with new ↵Carl Worth2006-06-091-5/+0
| | | | | | | | | cairo_surface_set_fallback_resolution. This just provides the mechanics for storing the value and removing the old function calls. The new value is still not used anywhere (though nor where the old values), so there should be no functional change (other than forcing any programs calling the old API to be updated).
* Remove trailing whitespace from lines that look like comments.Carl Worth2006-06-061-1/+1
| | | | | | | | | | This patch was produced with the following (GNU) sed script: sed -i -r -e '/^[ \t]*\/?\*/ s/[ \t]+$//' run on all *.[ch] files within cairo, (though I manually excluded src/cairo-atsui-font.c which has a code line that appears as a comment to this script).
* SVG: Fix cairo_svg_surface_restrict_to_version.Emmanuel Pacaud2006-05-051-1/+1
| | | | | surface parameter is actually a paginated surface. Use the same logic as pdf backend.
* SVG: Rework of API for SVG selection.Emmanuel Pacaud2006-05-021-21/+20
| | | | | | | | | I've removed cairo_svg_surface_create_xxx functions, and instead implemented the following ones: cairo_svg_surface_restrict_to_version cairo_svg_get_versions cairo_svg_version_to_string
* SVG: Add an additionnal API for creating SVG 1.1 or 1.2 files.Emmanuel Pacaud2006-05-011-0/+18
| | | | And update documentation.
* add optionnal disabled by default SVG backend.Emmanuel Pacaud2005-12-081-0/+63
include SVG backend files. include SVG_SURFACE_FEATURE. rename dtostr to _cairo_dtostr for use in cairo-svg-surface.c. _cairo_dtostr declaration. new. new. build svg-surface and svg-clip. new. new.