~ubuntu-branches/ubuntu/precise/inkscape/precise-updates

« back to all changes in this revision

Viewing changes to src/gradient-chemistry.h

  • Committer: Bazaar Package Importer
  • Author(s): Alex Valavanis
  • Date: 2010-09-12 19:44:58 UTC
  • mfrom: (1.1.12 upstream) (45.1.3 maverick)
  • Revision ID: james.westby@ubuntu.com-20100912194458-4sjwmbl7dlsrk5dc
Tags: 0.48.0-1ubuntu1
* Merge with Debian unstable (LP: #628048, LP: #401567, LP: #456248, 
  LP: #463602, LP: #591986)
* debian/control: 
  - Ubuntu maintainers
  - Promote python-lxml, python-numpy, python-uniconvertor to Recommends.
  - Demote pstoedit to Suggests (universe package).
  - Suggests ttf-dejavu instead of ttf-bitstream-vera (LP: #513319)
* debian/rules:
  - Run intltool-update on build (Ubuntu-specific).
  - Add translation domain to .desktop files (Ubuntu-specific).
* debian/dirs:
  - Add usr/share/pixmaps.  Allow inkscape.xpm installation
* drop 50-poppler-API.dpatch (now upstream)
* drop 51-paste-in-unwritable-directory.dpatch (now upstream) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __SP_GRADIENT_CHEMISTRY_H__
2
 
#define __SP_GRADIENT_CHEMISTRY_H__
 
1
#ifndef SEEN_SP_GRADIENT_CHEMISTRY_H
 
2
#define SEEN_SP_GRADIENT_CHEMISTRY_H
3
3
 
4
4
/*
5
5
 * Various utility methods for gradients
8
8
 *   Lauris Kaplinski <lauris@kaplinski.com>
9
9
 *   bulia byak <buliabyak@users.sf.net>
10
10
 *   Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
 
11
 *   Jon A. Cruz <jon@joncruz.org>
11
12
 *
 
13
 * Copyright (C) 2010 Authors
12
14
 * Copyright (C) 2007 Johan Engelen
13
15
 * Copyright (C) 2001-2002 Lauris Kaplinski
14
16
 * Copyright (C) 2001 Ximian, Inc.
40
42
/*
41
43
 * Get default normalized gradient vector of document, create if there is none
42
44
 */
43
 
 
44
 
SPGradient *sp_document_default_gradient_vector (SPDocument *document, guint32 color = 0);
45
 
SPGradient *sp_gradient_vector_for_object (SPDocument *doc, SPDesktop *desktop, SPObject *o, bool is_fill);
 
45
SPGradient *sp_document_default_gradient_vector( SPDocument *document, SPColor const &color, bool singleStop );
 
46
SPGradient *sp_gradient_vector_for_object( SPDocument *doc, SPDesktop *desktop, SPObject *o, bool is_fill, bool singleStop = false );
46
47
 
47
48
void sp_object_ensure_fill_gradient_normalized (SPObject *object);
48
49
void sp_object_ensure_stroke_gradient_normalized (SPObject *object);
54
55
SPGradient *sp_gradient_get_forked_vector_if_necessary(SPGradient *gradient, bool force_vector);
55
56
 
56
57
 
57
 
SPStop* sp_first_stop(SPGradient *gradient);
58
58
SPStop* sp_last_stop(SPGradient *gradient);
59
 
SPStop* sp_prev_stop(SPStop *stop, SPGradient *gradient);
60
 
SPStop* sp_next_stop(SPStop *stop);
61
59
SPStop* sp_get_stop_i(SPGradient *gradient, guint i);
62
 
guint sp_number_of_stops(SPGradient *gradient);
63
 
guint sp_number_of_stops_before_stop(SPGradient *gradient, SPStop *target);
 
60
guint sp_number_of_stops(SPGradient const *gradient);
 
61
guint sp_number_of_stops_before_stop(SPGradient const *gradient, SPStop *target);
64
62
 
65
63
guint32 average_color (guint32 c1, guint32 c2, gdouble p = 0.5);
66
64
 
80
78
void sp_item_gradient_edit_stop (SPItem *item, guint point_type, guint point_i, bool fill_or_stroke);
81
79
void sp_item_gradient_reverse_vector (SPItem *item, bool fill_or_stroke);
82
80
 
83
 
#endif
 
81
#endif // SEEN_SP_GRADIENT_CHEMISTRY_H
84
82
 
85
83
/*
86
84
  Local Variables: