Lines Matching refs:key
184 GQuark const key = g_quark_from_string(uri);
187 if ( iter->uri == key ) {
245 GQuark const key = g_quark_from_string(prefix);
248 if ( iter->prefix == key ) {
322 * @c key equal to @c value. Note that this function does not recurse.
325 * @param key The name of the attribute to use for comparisons
330 gchar const *key,
335 gchar const *child_value = child->attribute(key);
418 * Parses the boolean value of an attribute "key" in repr and sets val accordingly, or to FALSE if
423 unsigned int sp_repr_get_boolean(Inkscape::XML::Node *repr, gchar const *key, unsigned int *val)
428 g_return_val_if_fail(key != NULL, FALSE);
431 v = repr->attribute(key);
449 unsigned int sp_repr_get_int(Inkscape::XML::Node *repr, gchar const *key, int *val)
454 g_return_val_if_fail(key != NULL, FALSE);
457 v = repr->attribute(key);
467 unsigned int sp_repr_get_double(Inkscape::XML::Node *repr, gchar const *key, double *val)
470 g_return_val_if_fail(key != NULL, FALSE);
473 gchar const *v = repr->attribute(key);
483 unsigned int sp_repr_set_boolean(Inkscape::XML::Node *repr, gchar const *key, unsigned int val)
486 g_return_val_if_fail(key != NULL, FALSE);
488 repr->setAttribute(key, (val) ? "true" : "false");
492 unsigned int sp_repr_set_int(Inkscape::XML::Node *repr, gchar const *key, int val)
497 g_return_val_if_fail(key != NULL, FALSE);
501 repr->setAttribute(key, c);
510 unsigned int sp_repr_set_css_double(Inkscape::XML::Node *repr, gchar const *key, double val)
513 g_return_val_if_fail(key != NULL, FALSE);
518 repr->setAttribute(key, os.str().c_str());
527 unsigned int sp_repr_set_svg_double(Inkscape::XML::Node *repr, gchar const *key, double val)
530 g_return_val_if_fail(key != NULL, FALSE);
536 repr->setAttribute(key, os.str().c_str());
545 unsigned int sp_repr_set_svg_length(Inkscape::XML::Node *repr, gchar const *key, SVGLength &val)
548 g_return_val_if_fail(key != NULL, FALSE);
550 repr->setAttribute(key, val.write());
554 unsigned sp_repr_set_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point const & val)
557 g_return_val_if_fail(key != NULL, FALSE);
562 repr->setAttribute(key, os.str().c_str());
566 unsigned int sp_repr_get_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point *val)
569 g_return_val_if_fail(key != NULL, FALSE);
572 gchar const *v = repr->attribute(key);