~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Plugins/Cairo/tm_cairo.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA, Kamaraju Kusumanchi, kohda
  • Date: 2009-04-26 19:35:14 UTC
  • mfrom: (1.1.10 upstream) (4.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090426193514-9yo3oggdslgdls4b
Tags: 1:1.0.7.2-1
[Kamaraju Kusumanchi <kamaraju@gmail.com>]
* New upstream release
* texmacs crashes if /usr/share/texmacs/TeXmacs/misc/pixmaps/unknown.ps
  is not present. Do not remove it. (Closes: #484073, #497021)
* update patches 03_mupad.dpatch, 04_axiom.dpatch, 11-desktop-file.dpatch
* fix the mime problem in gnome. Thanks to Andrea Gamba for the fix.
[kohda]
* Refined a fix for the mime problem in gnome a bit.
* Try to fix /bin/sh problem (debian/fixsh) but it is not complete fix yet.
* Try to fix hard coded settings for ipa fonts(patches/09_ipa.dpatch), 
  especially for Debian where no ipa fonts exist yet.
* Fixed obsolete Build-Depends: changed libltdl3-dev to 
  libltdl-dev | libltdl7-dev (the latter for Ubuntu?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/******************************************************************************
 
3
* MODULE     : tm_cairo.hpp
 
4
* DESCRIPTION: Interface with Cairo
 
5
* COPYRIGHT  : (C) 2008 Massimiliano Gubinelli
 
6
*******************************************************************************
 
7
* This software falls under the GNU general public license version 3 or later.
 
8
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
 
9
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
 
10
******************************************************************************/
 
11
 
 
12
#ifndef TM_CAIRO_H
 
13
#define TM_CAIRO_H
 
14
//#include "tree.hpp"
 
15
 
 
16
bool tm_cairo_initialize ();
 
17
bool tm_cairo_present ();
 
18
 
 
19
#ifdef USE_CAIRO
 
20
#include <cairo.h>
 
21
 
 
22
extern void (*tm_cairo_move_to) (cairo_t *cr, double x, double y);
 
23
extern void (*tm_cairo_show_glyphs) (cairo_t *cr, const cairo_glyph_t *glyphs, int num_glyphs);
 
24
extern cairo_status_t (*tm_cairo_font_face_status) (cairo_font_face_t *font_face);
 
25
extern void (*tm_cairo_set_source_surface) (cairo_t *cr, cairo_surface_t *surface, double x, double y);
 
26
extern void (*tm_cairo_new_path) (cairo_t *cr);
 
27
extern void (*tm_cairo_stroke) (cairo_t *cr);
 
28
extern cairo_status_t (*tm_cairo_font_face_set_user_data) (cairo_font_face_t *font_face, const cairo_user_data_key_t *key, void *user_data, cairo_destroy_func_t destroy);
 
29
extern void (*tm_cairo_set_antialias) (cairo_t *cr, cairo_antialias_t antialias);
 
30
extern void (*tm_cairo_set_font_size) (cairo_t *cr, double size);
 
31
extern void (*tm_cairo_fill) (cairo_t *cr);
 
32
extern void (*tm_cairo_set_source_rgba) (cairo_t *cr, double red, double green, double blue, double alpha);
 
33
extern cairo_surface_t * (*tm_cairo_ps_surface_create) (const char *filename, double width_in_points, double height_in_points);
 
34
extern const char * (*tm_cairo_status_to_string) (cairo_status_t status);
 
35
extern void (*tm_cairo_set_source_rgb) (cairo_t *cr, double red, double green, double blue);
 
36
extern void (*tm_cairo_close_path) (cairo_t *cr);
 
37
extern void (*tm_cairo_restore) (cairo_t *cr);
 
38
extern void (*tm_cairo_translate) (cairo_t *cr, double tx, double ty);
 
39
extern void (*tm_cairo_set_font_face) (cairo_t *cr, cairo_font_face_t *font_face);
 
40
extern void (*tm_cairo_font_face_destroy) (cairo_font_face_t *font_face);
 
41
extern void (*tm_cairo_set_line_width) (cairo_t *cr, double width);
 
42
extern cairo_surface_t * (*tm_cairo_image_surface_create_from_png) (const char *filename);
 
43
extern cairo_font_face_t * (*tm_cairo_ft_font_face_create_for_ft_face) (FT_Face face, int load_flags);
 
44
extern int (*tm_cairo_image_surface_get_width) (cairo_surface_t *surface);
 
45
extern void (*tm_cairo_scale) (cairo_t *cr, double sx, double sy);
 
46
extern void (*tm_cairo_mask) (cairo_t *cr, cairo_pattern_t *pattern);
 
47
extern void (*tm_cairo_set_operator) (cairo_t *cr, cairo_operator_t op);
 
48
extern cairo_surface_t * (*tm_cairo_image_surface_create) (cairo_format_t format, int width, int height);
 
49
extern void (*tm_cairo_paint) (cairo_t *cr);
 
50
extern void (*tm_cairo_rectangle) (cairo_t *cr, double x, double y, double width, double height);
 
51
extern void (*tm_cairo_set_line_cap) (cairo_t *cr, cairo_line_cap_t line_cap);
 
52
extern void (*tm_cairo_set_line_join) (cairo_t *cr, cairo_line_join_t line_join);
 
53
extern cairo_surface_t * (*tm_cairo_surface_reference) (cairo_surface_t *surface);
 
54
extern void (*tm_cairo_line_to) (cairo_t *cr, double x, double y);
 
55
extern cairo_status_t (*tm_cairo_status) (cairo_t *cr);
 
56
extern void (*tm_cairo_show_page) (cairo_t *cr);
 
57
extern cairo_t * (*tm_cairo_reference) (cairo_t *cr);
 
58
extern cairo_t * (*tm_cairo_create) (cairo_surface_t *target);
 
59
extern void (*tm_cairo_surface_destroy) (cairo_surface_t *surface);
 
60
extern void (*tm_cairo_set_fill_rule) (cairo_t *cr, cairo_fill_rule_t fill_rule);
 
61
extern void (*tm_cairo_destroy) (cairo_t *cr);
 
62
extern void (*tm_cairo_save) (cairo_t *cr);
 
63
extern void (*tm_cairo_set_source) (cairo_t *cr, cairo_pattern_t *source);
 
64
extern int (*tm_cairo_image_surface_get_height) (cairo_surface_t *surface);
 
65
extern void (*tm_cairo_mask_surface) (cairo_t *cr, cairo_surface_t *surface, double surface_x, double surface_y);
 
66
 
 
67
#endif
 
68
 
 
69
#endif // TM_CAIRO_H