1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
5 * Copyright 2007 Novell, Inc. (http://www.novell.com)
7 * See the LICENSE file included with the distribution for details.
20 Point::FromStr (const char *s
, Point
*p
)
22 GArray
*values
= double_garray_from_str (s
, 2);
27 *p
= Point (g_array_index (values
, double, 0), g_array_index (values
, double, 1));
29 g_array_free (values
, true);
35 Point::Transform (cairo_matrix_t
*matrix
)
40 cairo_matrix_transform_point (matrix
, &nx
, &ny
);
42 return Point (nx
, ny
);