Searched defs:attr (Results 1 - 25 of 28) sorted by relevance

12

/inkscape/src/svg/
H A Dtest-stubs.cpp24 prefs_set_int_attribute(gchar const *path, gchar const *attr, long long int val) argument
26 int_prefs[std::string(path) + '/' + std::string(attr)] = val;
30 prefs_get_int_attribute(gchar const *path, gchar const *attr, long long int def) argument
32 std::map<std::string,long long int>::const_iterator it=int_prefs.find(std::string(path) + '/' + std::string(attr));
/inkscape/test/src/
H A Dcolor-profile-test.cpp59 gchar const *attr; member in struct:__anon191::__anon192
73 _prof->setKeyValue( SP_ATTR_RENDERING_INTENT, cases[i].attr);
74 ASSERT_EQ( (guint)cases[i].intVal, _prof->rendering_intent ) << cases[i].attr;
H A Dattributes-test.cpp26 AttributeInfo(std::string const &attr, bool supported) : argument
27 attr(attr),
32 std::string attr; member in class:__anon190::AttributeInfo
541 unsigned int id = sp_attribute_lookup(it->attr.c_str());
556 unsigned int id = sp_attribute_lookup(it->attr.c_str());
557 EXPECT_EQ(it->supported, id != 0u) << "Matching for attribute '" << it->attr << "'";
567 unsigned int id = sp_attribute_lookup(it->attr.c_str());
569 EXPECT_TRUE(redoneName != NULL) << "For attribute '" << it->attr << "'";
571 EXPECT_EQ(it->attr, redoneNam
[all...]
/inkscape/src/
H A Dcolor-profile-test.h64 gchar const *attr; member in struct:ColorProfileTest::__anon18
82 std::string descr(cases[i].attr);
83 SP_OBJECT(prof)->setKeyValue( SP_ATTR_RENDERING_INTENT, cases[i].attr);
H A Dattributes-test.h49 struct {char const *attr; bool supported;} const all_attrs[] = { member in struct:AttributesTest::__anon16
533 char const *const attr_str = all_attrs[i].attr;
536 TSM_ASSERT_EQUALS( std::string(all_attrs[i].attr), recognized, all_attrs[i].supported );
H A Did-clash.cpp36 const char *attr; // property or href-like attribute member in struct:IdReference
107 const char *attr = clipboard_properties[i]; local
108 const gchar *value = sp_repr_css_property(css, attr, NULL);
112 IdReference idref = { REF_CLIPBOARD, elem, attr };
125 const char *attr = href_like_attributes[i]; local
126 const gchar *val = repr_elem->attribute(attr);
129 IdReference idref = { REF_HREF, elem, attr };
177 const char *attr = other_url_properties[i]; local
178 const gchar *value = repr_elem->attribute(attr);
182 IdReference idref = { REF_URL, elem, attr };
[all...]
H A Drdf.cpp968 gchar const * attr = current->attribute("rdf:resource"); local
969 if ( attr == NULL ) continue;
972 printf("\texamining '%s' => '%s'\n", current->name(), attr);
982 printf("\t\t'%s' vs '%s'\n", attr, license->details[i].resource);
987 !strcmp( attr,
H A Dshortcuts.cpp295 Glib::ustring attr = prefs->getString("/dialogs/save_export/path"); local
296 if (!attr.empty()) open_path = attr;
H A Dsp-guide.cpp177 const gchar *attr = this->getRepr()->attribute("orientation"); local
178 if (attr && !strcmp(attr, "horizontal")) {
H A Dsp-gradient.cpp463 gchar const * attr = this->getAttribute("osb:paint"); local
464 if ( attr && strcmp(attr, "gradient") ) {
492 gchar const * attr = this->getAttribute("osb:paint"); local
494 if ( attr && strcmp(attr, "solid") ) {
H A Dfile.cpp65 #include "xml/sp-css-attr.h"
502 Glib::ustring attr = prefs->getString("/dialogs/open/path"); local
503 if (!attr.empty()) open_path = attr;
1303 Glib::ustring attr = prefs->getString("/dialogs/import/path"); local
1304 if (!attr.empty()) import_path = attr;
H A Dpreferences.cpp589 // If there is a node with id corresponding to the attr key,
729 gchar const *attr = node->attribute(attr_key.c_str()); local
730 if ( attr == NULL ) {
733 result = attr;
H A Dsp-object.cpp375 void SPObject::setCSS(SPCSSAttr *css, gchar const *attr) argument
378 sp_repr_css_set(this->getRepr(), css, attr);
381 void SPObject::changeCSS(SPCSSAttr *css, gchar const *attr) argument
384 sp_repr_css_change(this->getRepr(), css, attr);
/inkscape/share/extensions/ink2canvas/
H A Dsvg.py25 def attr(self, val, ns=""): member in class:Element
29 attr = float(self.node.get(val))
31 attr = self.node.get(val)
32 return attr
43 x1 = self.attr("x1")
44 y1 = self.attr("y1")
45 x2 = self.attr("x2")
46 y2 = self.attr("y2")
55 cx = self.attr("cx")
56 cy = self.attr("c
[all...]
/inkscape/src/extension/internal/filter/
H A Dfilter.cpp80 gchar const * attr = g_quark_to_string(iter->key); local
81 //printf("Attribute List: %s\n", attr);
82 if (!strcmp(attr, "id")) continue; // nope, don't copy that one!
83 to->setAttribute(attr, from->attribute(attr));
85 if (!strcmp(attr, "in") || !strcmp(attr, "in2") || !strcmp(attr, "in3")) {
86 if (srcGraphic != NULL && !strcmp(from->attribute(attr), "SourceGraphic")) {
87 to->setAttribute(attr, srcGraphi
[all...]
/inkscape/src/widgets/
H A Dink-action.cpp312 SPAttributeEnum attr)
320 //"SP_ATTR_INKSCAPE", attr, // Why doesn't this work and do I need to use g_object_set_data below?
323 g_object_set_data(obj, "SP_ATTR_INKSCAPE", GINT_TO_POINTER(attr));
307 ink_toggle_action_new( const gchar *name, const gchar *label, const gchar *tooltip, const gchar *inkId, Inkscape::IconSize size, SPAttributeEnum attr) argument
H A Druler.cpp1530 PangoAttribute *attr; local
1536 attr = pango_attr_scale_new (priv->font_scale);
1537 attr->start_index = 0;
1538 attr->end_index = -1;
1539 pango_attr_list_insert (attrs, attr);
/inkscape/src/ui/dialog/
H A Dsvg-fonts-dialog.h95 AttrEntry(SvgFontsDialog* d, gchar* lbl, const SPAttributeEnum attr);
101 SPAttributeEnum attr; member in class:Inkscape::UI::Dialog::SvgFontsDialog::AttrEntry
134 Gtk::HBox* AttrCombo(gchar* lbl, const SPAttributeEnum attr);
135 // Gtk::HBox* AttrSpin(gchar* lbl, const SPAttributeEnum attr);
H A Dxml-tree.cpp47 #include "widgets/sp-xmlview-attr-list.h"
324 * Sets the XML status bar, depending on which attr is selected.
326 void XmlTree::attr_reset_context(gint attr) argument
328 if (attr == 0) {
333 const gchar *name = g_quark_to_string(attr);
757 guint attr = 0; local
758 gtk_tree_model_get (model, &iter, ATTR_COL_NAME, &name, ATTR_COL_VALUE, &value, ATTR_COL_ATTR, &attr, -1);
766 self->selected_attr = attr;
H A Ddocument-properties.cpp1124 Glib::ustring attr = prefs->getString(_prefs_path); local
1125 if (!attr.empty()) open_path = attr;
H A Dsvg-fonts-dialog.cpp88 Gtk::HBox* SvgFontsDialog::AttrEntry(gchar* lbl, const SPAttributeEnum attr){
100 SvgFontsDialog::AttrEntry::AttrEntry(SvgFontsDialog* d, gchar* lbl, const SPAttributeEnum attr){ argument
102 this->attr = attr;
119 switch(this->attr){
131 const gchar* name = (const gchar*)sp_attribute_name(this->attr);
144 Gtk::HBox* SvgFontsDialog::AttrCombo(gchar* lbl, const SPAttributeEnum /*attr*/){
/inkscape/src/xml/
H A Drepr-css.cpp6 * sp-css-attr.h and node.h
30 #include "xml/sp-css-attr.h"
54 static void sp_repr_css_add_components(SPCSSAttr *css, Node *repr, gchar const *attr);
83 SPCSSAttr *sp_repr_css_attr(Node *repr, gchar const *attr) argument
86 g_assert(attr != NULL);
89 sp_repr_css_add_components(css, repr, attr);
167 static void sp_repr_css_attr_inherited_recursive(SPCSSAttr *css, Node *repr, gchar const *attr) argument
173 sp_repr_css_attr_inherited_recursive(css, parent, attr);
175 sp_repr_css_add_components(css, repr, attr);
181 SPCSSAttr *sp_repr_css_attr_inherited(Node *repr, gchar const *attr) argument
198 sp_repr_css_add_components(SPCSSAttr *css, Node *repr, gchar const *attr) argument
217 char const *attr = ((Node *)css)->attribute(name); local
231 char const *attr = ((Node *)css)->attribute(name); local
297 sp_repr_css_set(Node *repr, SPCSSAttr *css, gchar const *attr) argument
445 sp_repr_css_change(Node *repr, SPCSSAttr *css, gchar const *attr) argument
458 sp_repr_css_change_recursive(Node *repr, SPCSSAttr *css, gchar const *attr) argument
[all...]
/inkscape/src/ui/widget/
H A Dpreferences-widget.cpp828 Glib::ustring attr = prefs->getString(_prefs_path); local
829 if (!attr.empty()) open_path = attr;
H A Dgimpcolorwheel.c274 GdkWindowAttr attr; local
282 attr.window_type = GDK_WINDOW_CHILD;
283 attr.x = allocation.x;
284 attr.y = allocation.y;
285 attr.width = allocation.width;
286 attr.height = allocation.height;
287 attr.wclass = GDK_INPUT_ONLY;
288 attr.event_mask = (gtk_widget_get_events (widget) |
303 priv->window = gdk_window_new (parent_window, &attr, attr_mask);
/inkscape/src/ui/tool/
H A Dpath-manipulator.cpp84 virtual void notifyAttributeChanged(Inkscape::XML::Node &/*node*/, GQuark attr, argument
95 if (attr == lpe_quark || attr == path_d) {
97 } else if (attr == path_transform) {

Completed in 141 milliseconds

12