/inkscape/cxxtest/sample/ |
H A D | MessageTest.h | 22 void checkValue( unsigned value, const char *message ) argument 24 TSM_ASSERT( message, value != 0 ); 25 TSM_ASSERT_EQUALS( message, value, value * value );
|
/inkscape/src/ |
H A D | helper-fns.h | 24 * @param value ascii representation of the number 31 inline double helperfns_read_number(gchar const *value, bool warning = true) { argument 32 if (!value) { 33 g_warning("Called helperfns_read_number with value==null_ptr, this can lead to unexpected behaviour."); 37 double ret = g_ascii_strtod(value, &end); 40 g_warning("helper-fns::helperfns_read_number() Unable to convert \"%s\" to number", value); 49 inline bool helperfns_read_bool(gchar const *value, bool default_value){ argument 50 if (!value) return default_value; 51 switch(value[0]){ 53 if (strncmp(value, "tru 68 helperfns_read_vector(const gchar* value) argument [all...] |
H A D | sp-font-face.cpp | 28 static std::vector<FontFaceStyleType> sp_read_fontFaceStyleType(gchar const *value){ argument 31 if (!value){ 36 if (strncmp(value, "all", 3) == 0){ 37 value += 3; 38 while(value[0]==',' || value[0]==' ') 39 value++; 44 while(value[0]!='\0'){ 45 switch(value[0]){ 47 if (strncmp(value, "norma 71 sp_read_fontFaceVariantType(gchar const *value) argument 100 sp_read_fontFaceWeightType(gchar const *value) argument 191 sp_read_fontFaceStretchType(gchar const *value) argument 378 set(unsigned int key, const gchar *value) argument [all...] |
H A D | sp-glyph.cpp | 57 static glyphArabicForm sp_glyph_read_arabic_form(gchar const *value){ argument 58 if (!value) { 62 switch(value[0]){ 64 if (strncmp(value, "initial", 7) == 0) { 68 if (strncmp(value, "isolated", 8) == 0) { 73 if (strncmp(value, "medial", 6) == 0) { 78 if (strncmp(value, "terminal", 8) == 0) { 87 static glyphOrientation sp_glyph_read_orientation(gchar const *value) argument 89 if (!value) { 93 switch(value[ 106 set(unsigned int key, const gchar *value) argument [all...] |
H A D | cms-color-types.h | 61 FourCCSig( FourCCSig const &other ) : value(other.value) {}; 64 FourCCSig( guint32 value ) : value(value) {}; 66 guint32 value; member in class:Inkscape::FourCCSig 74 ColorSpaceSig( guint32 value ) : FourCCSig(value) {}; 82 ColorProfileClassSig( guint32 value ) : FourCCSig(value) {}; [all...] |
H A D | conditions.cpp | 23 typedef bool (* condition_evaluator)(SPItem const *item, gchar const *value); 30 static bool evaluateSystemLanguage(SPItem const *item, gchar const *value); 31 static bool evaluateRequiredFeatures(SPItem const *item, gchar const *value); 32 static bool evaluateRequiredExtensions(SPItem const *item, gchar const *value); 45 gchar const *value = item->getAttribute(_condition_handlers[i].attribute); local 46 if ( value && !_condition_handlers[i].evaluator(item, value) ) { 77 static bool evaluateSystemLanguage(SPItem const *item, gchar const *value) { argument 78 if ( NULL == value ) 83 gchar **strlist = g_strsplit( value, ",", 128 splitByWhitespace(gchar const *value) argument 243 evaluateSingleFeature(gchar const *value) argument 256 evaluateRequiredFeatures(SPItem const * , gchar const *value) argument 275 evaluateRequiredExtensions(SPItem const * , gchar const *value) argument [all...] |
H A D | preferences-test.h | 20 value(0) {} 24 value = val.getInt(); 26 int value; member in class:TestObserver 74 obs.value = 1; 76 TS_ASSERT_EQUALS(obs.value, 1); // no notifications sent before adding 80 TS_ASSERT_EQUALS(obs.value, 10); 82 TS_ASSERT_EQUALS(obs.value, 10); // value should not change 86 TS_ASSERT_EQUALS(obs.value, 10); // no notifications sent after removal 93 obs.value [all...] |
H A D | sp-missing-glyph.cpp | 49 void SPMissingGlyph::set(unsigned int key, const gchar* value) { argument 56 this->d = g_strdup(value); 62 double number = value ? g_ascii_strtod(value, 0) : 0; 71 double number = value ? g_ascii_strtod(value, 0) : 0; 80 double number = value ? g_ascii_strtod(value, 0) : 0; 89 double number = value ? g_ascii_strtod(value, [all...] |
H A D | sp-namedview.cpp | 116 const char* value = NULL; local 117 if ((value = repr->attribute("gridoriginx"))) { 118 gridoriginx = value; 121 if ((value = repr->attribute("gridoriginy"))) { 122 gridoriginy = value; 125 if ((value = repr->attribute("gridspacingx"))) { 126 gridspacingx = value; 129 if ((value = repr->attribute("gridspacingy"))) { 130 gridspacingy = value; 133 if ((value 286 set(unsigned int key, const gchar* value) argument 1135 double value; local [all...] |
H A D | sp-glyph-kerning.cpp | 50 GlyphNames::GlyphNames(const gchar* value) argument 52 if (value) { 53 names = g_strdup(value); 83 void SPGlyphKerning::set(unsigned int key, const gchar *value) argument 92 this->u1 = new UnicodeRange(value); 102 this->u2 = new UnicodeRange(value); 112 this->g1 = new GlyphNames(value); 122 this->g2 = new GlyphNames(value); 128 double number = value ? g_ascii_strtod(value, [all...] |
H A D | viewbox.h | 40 void set_viewBox(const gchar* value); 41 void set_preserveAspectRatio(const gchar* value);
|
/inkscape/src/debug/ |
H A D | simple-event.h | 47 Util::ptr_shared<char> value) 49 _properties.push_back(PropertyPair(name, value)); 51 void _addProperty(Util::ptr_shared<char> name, char const *value) { argument 52 _addProperty(name, Util::share_string(value)); 54 void _addProperty(char const *name, Util::ptr_shared<char> value) { argument 55 _addProperty(Util::share_string(name), value); local 57 void _addProperty(char const *name, char const *value) { argument 58 _addProperty(Util::share_string(name), Util::share_string(value)); 60 void _addProperty(Util::ptr_shared<char> name, long value) { argument 61 _addFormattedProperty(name, "%ld", value); 46 _addProperty(Util::ptr_shared<char> name, Util::ptr_shared<char> value) argument 63 _addProperty(char const *name, long value) argument 64 _addProperty(Util::share_string(name), value); local 75 gchar *value=g_strdup_vprintf(format, args); local [all...] |
H A D | timestamp.cpp | 26 gchar *value = g_strdup_printf( "%d.%06d", static_cast<gint>(timestamp.tv_sec), static_cast<gint>(timestamp.tv_usec) ); local 27 result = Util::share_string(value); 28 g_free(value);
|
H A D | logger.cpp | 29 static void write_escaped_value(std::ostream &os, Util::ptr_shared<char> value) { argument 30 for ( char const *current=value ; *current ; ++current ) { 175 write_escaped_value(log_stream, property.value);
|
/inkscape/src/ui/widget/ |
H A D | attr-widget.h | 44 } value; member in class:Inkscape::UI::Widget::DefaultValueHolder 54 value.d_val = d; 59 value.vt_val = d; 64 value.cptr_val = c; 69 value.b_val = d; 74 value.uint_val = ui; 79 delete value.vt_val; 84 return value.uint_val; 89 return value.b_val; 94 return value 111 AttrWidget(const SPAttributeEnum a, unsigned int value) argument 116 AttrWidget(const SPAttributeEnum a, double value) argument 121 AttrWidget(const SPAttributeEnum a, bool value) argument 126 AttrWidget(const SPAttributeEnum a, char* value) argument [all...] |
/inkscape/share/extensions/ |
H A D | synfig_fileformat.py | 148 "amount": ["angle", 0] # <angle value=.../> 201 def paramType(layer, param, value=None): 209 # Unknown layer, try to determine parameter type based on value 210 if value is None: 212 if type(value) == int: 214 elif type(value) == float: 216 elif type(value) == bool: 218 elif type(value) == dict: 219 if "points" in value.keys(): 221 elif 0.0 in value [all...] |
/inkscape/src/util/ |
H A D | expression-evaluator.cpp | 39 EvaluatorQuantity::EvaluatorQuantity(double value, unsigned int dimension) : argument 40 value(value), 48 value.fl = 0; 66 * base-unit. This is also the unit of the returned value. 68 * Returns: An EvaluatorQuantity with a value given in the base unit along with 98 result.value /= default_unit_factor.value; 127 new_term.value /= default_unit_factor.value; 278 gdouble value = g_strtod(s, &endptr); local 305 isExpected(TokenType token_type, EvaluatorToken *value) argument [all...] |
/inkscape/src/xml/ |
H A D | attribute-record.h | 2 * @brief Key-value pair representing an attribute 13 #define SP_REPR_ATTRIBUTE_VALUE(a) ((a)->value) 19 * @brief Key-value pair representing an attribute 26 : key(k), value(v) {} 30 /** @brief Shared pointer to the value of the attribute */ 31 Inkscape::Util::ptr_shared<char> value; member in struct:Inkscape::XML::AttributeRecord
|
/inkscape/src/filters/ |
H A D | componenttransfer-funcnode.cpp | 73 static Inkscape::Filters::FilterComponentTransferType sp_feComponenttransfer_read_type(gchar const *value){ argument 74 if (!value) { 78 switch(value[0]){ 80 if (strncmp(value, "identity", 8) == 0) { 85 if (strncmp(value, "table", 5) == 0) { 90 if (strncmp(value, "discrete", 8) == 0) { 95 if (strncmp(value, "linear", 6) == 0) { 100 if (strncmp(value, "gamma", 5) == 0) { 110 * Sets a specific value in the SPFeFuncNode. 112 void SPFeFuncNode::set(unsigned int key, gchar const *value) { argument [all...] |
H A D | turbulence.cpp | 62 static bool sp_feTurbulence_read_stitchTiles(gchar const *value){ argument 63 if (!value) { 67 switch(value[0]){ 69 if (strncmp(value, "stitch", 6) == 0) { 74 if (strncmp(value, "noStitch", 8) == 0) { 83 static Inkscape::Filters::FilterTurbulenceType sp_feTurbulence_read_type(gchar const *value){ argument 84 if (!value) { 88 switch(value[0]){ 90 if (strncmp(value, "fractalNoise", 12) == 0) { 95 if (strncmp(value, "turbulenc 107 set(unsigned int key, gchar const *value) argument [all...] |
H A D | composite.cpp | 71 sp_feComposite_read_operator(gchar const *value) { argument 72 if (!value) { 76 if (strcmp(value, "over") == 0) { 78 } else if (strcmp(value, "in") == 0) { 80 } else if (strcmp(value, "out") == 0) { 82 } else if (strcmp(value, "atop") == 0) { 84 } else if (strcmp(value, "xor") == 0) { 86 } else if (strcmp(value, "arithmetic") == 0) { 90 else if (strcmp(value, "clear") == 0) { 92 } else if (strcmp(value, "cop 116 set(unsigned int key, gchar const *value) argument [all...] |
H A D | spotlight.cpp | 75 * Sets a specific value in the SPFeSpotLight. 77 void SPFeSpotLight::set(unsigned int key, gchar const *value) { argument 84 if (value) { 85 this->x = g_ascii_strtod(value, &end_ptr); 92 if(!value || !end_ptr) { 106 if (value) { 107 this->y = g_ascii_strtod(value, &end_ptr); 114 if(!value || !end_ptr) { 128 if (value) { 129 this->z = g_ascii_strtod(value, [all...] |
H A D | pointlight.cpp | 66 * Sets a specific value in the SPFePointLight. 68 void SPFePointLight::set(unsigned int key, gchar const *value) { argument 75 if (value) { 76 this->x = g_ascii_strtod(value, &end_ptr); 83 if (!value || !end_ptr) { 97 if (value) { 98 this->y = g_ascii_strtod(value, &end_ptr); 105 if (!value || !end_ptr) { 119 if (value) { 120 this->z = g_ascii_strtod(value, [all...] |
H A D | distantlight.cpp | 65 * Sets a specific value in the SPFeDistantLight. 67 void SPFeDistantLight::set(unsigned int key, gchar const *value) { argument 74 if (value) { 75 this->azimuth = g_ascii_strtod(value, &end_ptr); 82 if (!value || !end_ptr) { 96 if (value) { 97 this->elevation = g_ascii_strtod(value, &end_ptr); 104 if (!value || !end_ptr) { 116 // See if any parents need this value. 117 SPObject::set(key, value); [all...] |
/inkscape/src/libcroco/ |
H A D | cr-attr-sel.c | 135 if (cur->value) { 136 guchar *value = NULL; local 138 value = (guchar *) g_strndup (cur->value->stryng->str, 139 cur->value->stryng->len); 140 if (value) { 162 (str_buf, "\"%s\"", value); 164 g_free (value); 165 value = NULL; 220 if (a_this->value) { [all...] |