~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to src/gradient-chemistry.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Author:
8
8
 *   Lauris Kaplinski <lauris@kaplinski.com>
9
9
 *   bulia byak <buliabyak@users.sf.net>
 
10
 *   Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
10
11
 *
 
12
 * Copyright (C) 2007 Johan Engelen
11
13
 * Copyright (C) 2001-2002 Lauris Kaplinski
12
14
 * Copyright (C) 2001 Ximian, Inc.
13
15
 *
49
51
SPGradient *sp_gradient_reset_to_userspace (SPGradient *gr, SPItem *item);
50
52
 
51
53
SPGradient *sp_gradient_fork_vector_if_necessary (SPGradient *gr);
 
54
SPGradient *sp_gradient_get_forked_vector_if_necessary(SPGradient *gradient, bool force_vector);
 
55
 
52
56
 
53
57
SPStop* sp_first_stop(SPGradient *gradient);
54
58
SPStop* sp_last_stop(SPGradient *gradient);
55
59
SPStop* sp_prev_stop(SPStop *stop, SPGradient *gradient);
56
60
SPStop* sp_next_stop(SPStop *stop);
 
61
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);
 
64
 
 
65
guint32 average_color (guint32 c1, guint32 c2, gdouble p = 0.5);
 
66
 
 
67
SPStop *sp_vector_add_stop (SPGradient *vector, SPStop* prev_stop, SPStop* next_stop, gfloat offset);
57
68
 
58
69
void sp_gradient_transform_multiply (SPGradient *gradient, NR::Matrix postmul, bool set);
59
70
 
60
 
void sp_item_gradient_set_coords (SPItem *item, guint point_num, NR::Point p_desk, bool fill_or_stroke, bool write_repr, bool scale);
61
 
NR::Point sp_item_gradient_get_coords (SPItem *item, guint point_num, bool fill_or_stroke);
 
71
SPGradient * sp_item_gradient (SPItem *item, bool fill_or_stroke);
 
72
void sp_item_gradient_set_coords (SPItem *item, guint point_type, guint point_i, NR::Point p_desk, bool fill_or_stroke, bool write_repr, bool scale);
 
73
NR::Point sp_item_gradient_get_coords (SPItem *item, guint point_type, guint point_i, bool fill_or_stroke);
62
74
SPGradient *sp_item_gradient_get_vector (SPItem *item, bool fill_or_stroke);
63
75
SPGradientSpread sp_item_gradient_get_spread (SPItem *item, bool fill_or_stroke);
64
76
 
65
77
struct SPCSSAttr;
66
 
void sp_item_gradient_stop_set_style (SPItem *item, guint point_num, bool fill_or_stroke, SPCSSAttr *stop);
67
 
guint32 sp_item_gradient_stop_query_style (SPItem *item, guint point_num, bool fill_or_stroke);
68
 
void sp_item_gradient_edit_stop (SPItem *item, guint point_num, bool fill_or_stroke);
 
78
void sp_item_gradient_stop_set_style (SPItem *item, guint point_type, guint point_i, bool fill_or_stroke, SPCSSAttr *stop);
 
79
guint32 sp_item_gradient_stop_query_style (SPItem *item, guint point_type, guint point_i, bool fill_or_stroke);
 
80
void sp_item_gradient_edit_stop (SPItem *item, guint point_type, guint point_i, bool fill_or_stroke);
69
81
void sp_item_gradient_reverse_vector (SPItem *item, bool fill_or_stroke);
70
82
 
71
83
#endif