| /inkscape/src/util/ |
| H A D | ege-tags.cpp | 76 Tag::Tag(std::string const& key) : argument 77 key(key) 112 if (tag.key == it->key) { 128 counts[tag.key] = 0; 140 int TagSet::getCount( std::string const& key ) 143 if ( counts.find(key) != counts.end() ) { 144 count = counts[key]; 149 void TagSet::increment( std::string const& key ) [all...] |
| H A D | enums.h | 29 const Glib::ustring key; member in struct:Inkscape::Util::EnumData 37 * @note that get_id_from_key and get_id_from_label return 0 if it cannot find an entry for that key string. 59 E get_id_from_key(const Glib::ustring& key) const 62 if(_data[i].key == key) 69 bool is_valid_key(const Glib::ustring& key) const 72 if(_data[i].key == key) 102 return _data[i].key;
|
| H A D | ege-tags.h | 68 Tag(std::string const& key); 71 std::string key; member in class:ege::Tag 97 int getCount( std::string const& key ); 98 void increment( std::string const& key ); 99 void decrement( std::string const& key );
|
| /inkscape/src/xml/ |
| H A D | attribute-record.h | 12 #define SP_REPR_ATTRIBUTE_KEY(a) g_quark_to_string((a)->key) 26 : key(k), value(v) {} 29 GQuark key; member in struct:Inkscape::XML::AttributeRecord
|
| H A D | node.h | 144 * @param key The name of the node's attribute 146 virtual char const *attribute(char const *key) const=0; 203 * @param key Name of the attribute to change 207 virtual void setAttribute(char const *key, char const *value, bool is_interactive=false)=0; 209 void setAttribute(char const *key, Glib::ustring const &value, bool is_interactive=false) argument 211 setAttribute(key, value.empty() ? NULL : value.c_str(), is_interactive); 214 void setAttribute(Glib::ustring const &key, Glib::ustring const &value, bool is_interactive=false) argument 216 setAttribute( key.empty() ? NULL : key.c_str(), 391 * @c key i [all...] |
| H A D | repr-util.cpp | 184 GQuark const key = g_quark_from_string(uri); local 187 if ( iter->uri == key ) { 245 GQuark const key = g_quark_from_string(prefix); local 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, unsigne argument 329 sp_repr_lookup_child(Inkscape::XML::Node *repr, gchar const *key, gchar const *value) argument 449 sp_repr_get_int(Inkscape::XML::Node *repr, gchar const *key, int *val) argument 467 sp_repr_get_double(Inkscape::XML::Node *repr, gchar const *key, double *val) argument 483 sp_repr_set_boolean(Inkscape::XML::Node *repr, gchar const *key, unsigned int val) argument 492 sp_repr_set_int(Inkscape::XML::Node *repr, gchar const *key, int val) argument 510 sp_repr_set_css_double(Inkscape::XML::Node *repr, gchar const *key, double val) argument 527 sp_repr_set_svg_double(Inkscape::XML::Node *repr, gchar const *key, double val) argument 545 sp_repr_set_svg_length(Inkscape::XML::Node *repr, gchar const *key, SVGLength &val) argument 554 sp_repr_set_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point const & val) argument 566 sp_repr_get_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point *val) argument [all...] |
| H A D | repr.h | 91 void sp_repr_css_set(Inkscape::XML::Node *repr, SPCSSAttr *css, char const *key); 94 void sp_repr_css_change(Inkscape::XML::Node *repr, SPCSSAttr *css, char const *key); 95 void sp_repr_css_change_recursive(Inkscape::XML::Node *repr, SPCSSAttr *css, char const *key); 113 unsigned sp_repr_get_boolean(Inkscape::XML::Node *repr, char const *key, unsigned *val); 114 unsigned sp_repr_get_int(Inkscape::XML::Node *repr, char const *key, int *val); 115 unsigned sp_repr_get_double(Inkscape::XML::Node *repr, char const *key, double *val); 116 unsigned sp_repr_set_boolean(Inkscape::XML::Node *repr, char const *key, unsigned val); 117 unsigned sp_repr_set_int(Inkscape::XML::Node *repr, char const *key, int val); 118 unsigned sp_repr_set_css_double(Inkscape::XML::Node *repr, char const *key, double val); 119 unsigned sp_repr_set_svg_double(Inkscape::XML::Node *repr, char const *key, doubl [all...] |
| /inkscape/src/libnrtype/ |
| H A D | nr-type-primitives.cpp | 20 * An entry in a list of key->value pairs 24 const gchar *key; member in struct:NRTDEntry 29 * Type Dictionary, consisting of size number of key-value entries 96 * Inserts a key/value into a typeface dictionary 99 nr_type_dict_insert (NRTypeDict *td, const gchar *key, void *val) argument 101 if (key) { 105 hval = nr_str_hash (key) % td->size; 108 if (!strcmp (key, tde->key)) { 116 tde->key 126 nr_type_dict_lookup(NRTypeDict *td, const gchar *key) argument [all...] |
| H A D | nr-type-primitives.h | 46 void nr_type_dict_insert (NRTypeDict *td, const gchar *key, void *val); 48 void *nr_type_dict_lookup (NRTypeDict *td, const gchar *key);
|
| /inkscape/src/ |
| H A D | sp-hatch-path.h | 43 Inkscape::DrawingItem *show(Inkscape::Drawing &drawing, unsigned int key, Geom::OptInterval extents); 44 void hide(unsigned int key); 46 void setStripExtents(unsigned int key, Geom::OptInterval const &extents); 49 SPCurve *calculateRenderCurve(unsigned key) const; 54 virtual void set(unsigned int key, const gchar* value); 60 View(Inkscape::DrawingShape *arenaitem, int key); 67 unsigned int key; member in class:SPHatchPath::View
|
| H A D | macros.h | 41 #define MOD__SHIFT(event) ((event)->key.state & GDK_SHIFT_MASK) 42 #define MOD__CTRL(event) ((event)->key.state & GDK_CONTROL_MASK) 43 #define MOD__ALT(event) ((event)->key.state & GDK_MOD1_MASK) 44 #define MOD__SHIFT_ONLY(event) (((event)->key.state & GDK_SHIFT_MASK) && !((event)->key.state & GDK_CONTROL_MASK) && !((event)->key.state & GDK_MOD1_MASK)) 45 #define MOD__CTRL_ONLY(event) (!((event)->key.state & GDK_SHIFT_MASK) && ((event)->key.state & GDK_CONTROL_MASK) && !((event)->key.state & GDK_MOD1_MASK)) 46 #define MOD__ALT_ONLY(event) (!((event)->key [all...] |
| H A D | sp-script.cpp | 29 //Read values of key attributes from XML nodes into object. 58 void SPScript::set(unsigned int key, const gchar* value) { argument 59 switch (key) { 69 SPObject::set(key, value);
|
| H A D | sp-missing-glyph.cpp | 49 void SPMissingGlyph::set(unsigned int key, const gchar* value) { argument 50 switch (key) { 98 SPObject::set(key, value); 104 #define COPY_ATTR(rd,rs,key) (rd)->setAttribute((key), rs->attribute(key));
|
| H A D | sp-polygon.h | 28 virtual void set(unsigned int key, char const* value); 33 void sp_polygon_set(SPObject *object, unsigned int key, char const*value);
|
| H A D | sp-marker.h | 66 /* Private views indexed by key that corresponds to a 76 virtual void set(unsigned int key, gchar const* value); 80 virtual Inkscape::DrawingItem* show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags); 81 virtual Inkscape::DrawingItem* private_show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags); 82 virtual void hide(unsigned int key); 99 void sp_marker_show_dimension (SPMarker *marker, unsigned int key, unsigned int size); 101 unsigned int key, unsigned int pos, 103 void sp_marker_hide (SPMarker *marker, unsigned int key);
|
| H A D | sp-symbol.cpp | 46 void SPSymbol::set(unsigned int key, const gchar* value) { argument 47 switch (key) { 61 SPGroup::set(key, value); 112 Inkscape::DrawingItem* SPSymbol::show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags) { argument 117 ai = SPGroup::show(drawing, key, flags); 128 void SPSymbol::hide(unsigned int key) { argument 131 SPGroup::hide(key);
|
| H A D | registrytool.cpp | 34 HKEY key; member in struct:__anon416 60 //Trim out the root key if necessary 61 for (KeyTableEntry *entry = keyTable; entry->key; entry++) 65 rootKey = entry->key; 71 //Get or create the key 76 HKEY key; local 79 KEY_WRITE, NULL, &key, NULL)) 81 fprintf(stderr, "RegistryTool: Could not create the registry key '%s'\n", keyName.c_str()); 86 if (RegSetValueExW(key, (WCHAR*) valuenamew, 96 RegCloseKey(key); 183 char *key = local [all...] |
| H A D | sp-clippath.cpp | 35 unsigned int key; member in struct:SPClipPathView 40 static SPClipPathView* sp_clippath_view_new_prepend(SPClipPathView *list, unsigned int key, Inkscape::DrawingItem *arenaitem); 77 void SPClipPath::set(unsigned int key, const gchar* value) { argument 78 switch (key) { 95 if (SP_ATTRIBUTE_IS_CSS(key)) { 99 SPObjectGroup::set(key, value); 114 Inkscape::DrawingItem *ac = SP_ITEM(ochild)->invoke_show(v->arenaitem->drawing(), v->key, SP_ITEM_REFERENCE_FLAGS); 199 Inkscape::DrawingItem *SPClipPath::show(Inkscape::Drawing &drawing, unsigned int key) { argument 201 display = sp_clippath_view_new_prepend(display, key, ai); 205 Inkscape::DrawingItem *ac = SP_ITEM(child)->invoke_show(drawing, key, SP_ITEM_REFERENCE_FLAG 225 hide(unsigned int key) argument 243 setBBox(unsigned int key, Geom::OptRect const &bbox) argument 268 sp_clippath_view_new_prepend(SPClipPathView *list, unsigned int key, Inkscape::DrawingItem *arenaitem) argument [all...] |
| H A D | sp-mask.cpp | 32 unsigned int key; member in struct:SPMaskView 37 SPMaskView *sp_mask_view_new_prepend (SPMaskView *list, unsigned int key, Inkscape::DrawingItem *arenaitem); 77 void SPMask::set(unsigned int key, const gchar* value) { argument 78 switch (key) { 110 SPObjectGroup::set(key, value); 124 Inkscape::DrawingItem *ac = SP_ITEM (ochild)->invoke_show(v->arenaitem->drawing(), v->key, SP_ITEM_REFERENCE_FLAGS); 230 Inkscape::DrawingItem *SPMask::sp_mask_show(Inkscape::Drawing &drawing, unsigned int key) { argument 235 this->display = sp_mask_view_new_prepend (this->display, key, ai); 239 Inkscape::DrawingItem *ac = SP_ITEM (child)->invoke_show (drawing, key, SP_ITEM_REFERENCE_FLAGS); 256 void SPMask::sp_mask_hide(unsigned int key) { argument 277 sp_mask_set_bbox(unsigned int key, Geom::OptRect const &bbox) argument 289 sp_mask_view_new_prepend(SPMaskView *list, unsigned int key, Inkscape::DrawingItem *arenaitem) argument [all...] |
| H A D | sp-hatch-path.cpp | 87 void SPHatchPath::set(unsigned int key, const gchar* value) argument 89 switch (key) { 113 if (SP_ATTRIBUTE_IS_CSS(key)) { 117 SPObject::set(key, value); 160 Inkscape::DrawingItem *SPHatchPath::show(Inkscape::Drawing &drawing, unsigned int key, Geom::OptInterval extents) argument 163 _display.push_front(View(s, key)); 171 void SPHatchPath::hide(unsigned int key) argument 174 if (iter->key == key) { 184 void SPHatchPath::setStripExtents(unsigned int key, Geo argument 321 View(Inkscape::DrawingShape *arenaitem, int key) argument [all...] |
| H A D | sp-anchor.cpp | 53 void SPAnchor::set(unsigned int key, const gchar* value) { argument 54 switch (key) { 72 SPGroup::set(key, value); 78 #define COPY_ATTR(rd,rs,key) (rd)->setAttribute((key), rs->attribute(key));
|
| /inkscape/src/ui/cache/ |
| H A D | svg_preview_cache.cpp | 87 Glib::ustring key; local 88 key += (uri!=NULL) ? uri : ""; 89 key += ":"; 90 key += (name!=NULL) ? name : "unknown"; 91 key += ":"; 92 key += psize; 93 return key; 96 GdkPixbuf* SvgPreview::get_preview_from_cache(const Glib::ustring& key) { argument 97 std::map<Glib::ustring, GdkPixbuf *>::iterator found = _pixmap_cache.find(key); 104 void SvgPreview::set_preview_in_cache(const Glib::ustring& key, GdkPixbu argument 112 Glib::ustring key = cache_key(uri, id, psize); local 124 remove_preview_from_cache(const Glib::ustring& key) argument [all...] |
| /inkscape/share/extensions/ |
| H A D | image_attributes.py | 78 for key, value in attribute.items(): 79 if key == 'preserveAspectRatio': 82 node.set(key, str(value)) 84 if node.get(key): 85 del node.attrib[key] 86 elif key == 'image-rendering': 88 if key not in node_style: 91 node.set(key, str(value)) 93 if node.get(key): 94 del node.attrib[key] [all...] |
| /inkscape/src/ui/widget/ |
| H A D | registered-enums.h | 32 const Glib::ustring& key, 39 RegisteredWidget< LabelledComboBoxEnum<E> >::init_parent(key, wr, repr_in, doc_in); 48 void set_active_by_key (const Glib::ustring& key) { argument 49 combobox()->set_active_by_key(key); 76 RegisteredWidget< LabelledComboBoxEnum<E> >::write_to_xml(data->key.c_str()); 30 RegisteredEnum( const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, const Util::EnumDataConverter<E>& c, Registry& wr, Inkscape::XML::Node* repr_in = NULL, SPDocument *doc_in = NULL ) argument
|
| /inkscape/src/ui/tool/ |
| H A D | event-utils.cpp | 28 0 /*event->key.group*/, 39 // while the next event is also a key notify with the same keyval and mask, 41 && event_next->key.keyval == keyval 42 && (!mask || event_next->key.state & mask)) { 108 state = event->key.state; 109 switch(shortcut_key(event->key)) { 126 state = event->key.state; 127 switch(shortcut_key(event->key)) {
|