Searched refs:val (Results 1 - 25 of 194) sorted by relevance

12345678

/inkscape/src/display/
H A Dnr-filter-utils.h29 inline int clamp(int const val) { argument
30 if (val < 0) return 0;
31 if (val > 255) return 255;
32 return val;
41 inline int clamp3(int const val) { argument
42 if (val < 0) return 0;
43 if (val > 16581375) return 16581375;
44 return val;
56 * \return 0 if val is negative, alpha if val i
60 clamp_alpha(int const val, int const alpha) argument
[all...]
/inkscape/src/xml/
H A Dquote.h6 size_t xml_quoted_strlen(char const *val);
H A Dquote.cpp15 size_t xml_quoted_strlen(char const *val) argument
17 if (!val) return 0;
20 for (char const *valp = val; *valp; ++valp) {
/inkscape/src/trace/potrace/
H A Dinkscape-potrace.h62 void setParamsTurdSize(int val) argument
64 potraceParams->turdsize = val;
71 void setParamsAlphaMax(double val) argument
73 potraceParams->alphamax = val;
80 void setParamsOptiCurve(bool val) argument
82 potraceParams->opticurve = val;
89 void setParamsOptTolerance(double val) argument
91 potraceParams->opttolerance = val;
98 void setTraceType(TraceType val) argument
100 traceType = val;
110 setInvert(bool val) argument
122 setQuantizationNrColors(int val) argument
134 setBrightnessThreshold(double val) argument
146 setBrightnessFloor(double val) argument
158 setCannyHighThreshold(double val) argument
170 setMultiScanNrColors(int val) argument
182 setMultiScanStack(bool val) argument
194 setMultiScanSmooth(bool val) argument
206 setMultiScanRemoveBackground(bool val) argument
[all...]
/inkscape/src/io/
H A Dinkscapestream.h285 virtual const Reader& readBool (bool& val ) = 0;
286 virtual const Reader& operator>> (bool& val ) = 0;
288 virtual const Reader& readShort (short &val) = 0;
289 virtual const Reader& operator>> (short &val) = 0;
291 virtual const Reader& readUnsignedShort (unsigned short &val) = 0;
292 virtual const Reader& operator>> (unsigned short &val) = 0;
294 virtual const Reader& readInt (int &val) = 0;
295 virtual const Reader& operator>> (int &val) = 0;
297 virtual const Reader& readUnsignedInt (unsigned int &val) = 0;
298 virtual const Reader& operator>> (unsigned int &val)
345 operator >>(short &val) argument
349 operator >>(unsigned short &val) argument
353 operator >>(int &val) argument
357 operator >>(unsigned int &val) argument
361 operator >>(long &val) argument
365 operator >>(unsigned long &val) argument
369 operator >>(float &val) argument
373 operator >>(double &val) argument
[all...]
H A Dinkscapestream.cpp218 static bool getLong(Glib::ustring &str, long *val) argument
225 *val = ival;
229 static bool getULong(Glib::ustring &str, unsigned long *val) argument
236 *val = ival;
240 static bool getDouble(Glib::ustring &str, double *val) argument
247 *val = ival;
253 const Reader &BasicReader::readBool (bool& val )
257 val = true;
259 val = false;
263 const Reader &BasicReader::readShort (short& val )
580 writeInt(int val) argument
593 writeUnsignedInt(unsigned int val) argument
606 writeLong(long val) argument
619 writeUnsignedLong(unsigned long val) argument
632 writeFloat(float val) argument
650 writeDouble(double val) argument
666 operator <<(Writer &writer, char val) argument
669 operator <<(Writer &writer, Glib::ustring &val) argument
672 operator <<(Writer &writer, std::string &val) argument
675 operator <<(Writer &writer, char const *val) argument
678 operator <<(Writer &writer, bool val) argument
681 operator <<(Writer &writer, short val) argument
684 operator <<(Writer &writer, unsigned short val) argument
687 operator <<(Writer &writer, int val) argument
690 operator <<(Writer &writer, unsigned int val) argument
693 operator <<(Writer &writer, long val) argument
696 operator <<(Writer &writer, unsigned long val) argument
699 operator <<(Writer &writer, float val) argument
702 operator <<(Writer &writer, double val) argument
[all...]
/inkscape/src/
H A Dunicoderange.cpp23 gchar* val = (gchar*) value;
24 while(val[0] != '\0'){
25 if (val[0]=='U' && val[1]=='+'){
26 val += add_range(val+2);
28 this->unichars.push_back(g_utf8_get_char(&val[0]));
29 val++;
32 while(val[0]==' ' || val[
36 add_range(gchar* val) argument
75 unsigned char val = unival & 0xf; local
[all...]
H A Dunicoderange.h14 UnicodeRange(const char* val);
15 int add_range(char* val);
H A Dsnap-preferences.h56 void setGridTolerance(double val) {_grid_tolerance = val;} argument
57 void setGuideTolerance(double val) {_guide_tolerance = val;} argument
58 void setObjectTolerance(double val) {_object_tolerance = val;} argument
H A Dstyle.cpp589 gchar const *val = repr->attribute("style"); local
590 if( val != NULL && *val ) {
591 _mergeString( val );
686 // Matches sp_style_merge_property(SPStyle *style, gint id, gchar const *val)
688 SPStyle::readIfUnset( gint id, gchar const *val ) {
690 // std::cout << "SPStyle::readIfUnset: Entrance: " << (val?val:"null") << std::endl;
693 g_return_if_fail(val != NULL);
697 font_specification.readIfUnset( val );
1587 gchar *val = g_strdup_printf("url(#%s)", linked->getId()); local
1973 css_quote(Glib::ustring &val) argument
2012 css_font_family_quote(Glib::ustring &val) argument
2031 css_unquote(Glib::ustring &val) argument
2049 css_font_family_unquote(Glib::ustring &val) argument
[all...]
H A Dpreferences-test.h22 virtual void notify(Inkscape::Preferences::Entry const &val) argument
24 value = val.getInt();
117 Inkscape::Preferences::Entry val = prefs->getEntry("/test/prefentry"); local
118 TS_ASSERT(val.isValid());
119 TS_ASSERT_EQUALS(val.getPath(), "/test/prefentry");
120 TS_ASSERT_EQUALS(val.getEntryName(), "prefentry");
121 TS_ASSERT_EQUALS(val.getInt(), 100);
/inkscape/src/util/
H A Dfixed_point.h37 FixedPoint& operator+=(FixedPoint val) { v += val.v; return *this; } argument
38 FixedPoint& operator-=(FixedPoint val) { v -= val.v; return *this; } argument
39 FixedPoint& operator*=(FixedPoint val) { argument
41 const T al = v&((1<<half_size)-1), bl = val.v&((1<<half_size)-1);
42 const T ah = v>>half_size, bh = val.v>>half_size;
53 FixedPoint& operator*=(char val) { v *= val; return *this; } argument
54 FixedPoint& operator*=(unsigned char val) { argument
55 operator *=(short val) argument
56 operator *=(unsigned short val) argument
57 operator *=(int val) argument
58 operator *=(unsigned int val) argument
[all...]
H A Dziptool.h147 virtual void setFileName(const std::string &val);
223 bool getLong(unsigned long *val);
226 bool putLong(unsigned long val);
270 virtual void setFileName(const std::string &val);
280 virtual void setComment(const std::string &val);
295 virtual void setCompressionMethod(int val);
305 virtual void setCompressedData(const std::vector<unsigned char> &val);
320 virtual void setUncompressedData(const std::vector<unsigned char> &val);
351 virtual void setPosition(unsigned long val);
407 virtual void setComment(const std::string &val);
[all...]
/inkscape/src/svg/
H A Dsvg-angle.cpp30 static bool sp_svg_angle_read_lff(gchar const *str, SVGAngle::Unit &unit, float &val, float &computed);
76 static bool sp_svg_angle_read_lff(gchar const *str, SVGAngle::Unit &unit, float &val, float &computed) argument
91 val = v;
100 val = v;
107 val = v;
111 val = v;
115 val = v;
119 val = v;
H A Dsvg-length.cpp23 static unsigned sp_svg_length_read_lff(gchar const *str, SVGLength::Unit *unit, float *val, float *computed, char **next);
29 unsigned int sp_svg_number_read_f(gchar const *str, float *val) argument
41 *val = v;
45 unsigned int sp_svg_number_read_d(gchar const *str, double *val) argument
57 *val = v;
63 static unsigned int sp_svg_number_write_ui(gchar *buf, unsigned int val) argument
68 c[16u - (++i)] = '0' + (val % 10u);
69 val /= 10u;
70 } while (val > 0u);
80 static unsigned int sp_svg_number_write_i(gchar *buf, int bufLen, int val) argument
98 sp_svg_number_write_d(gchar *buf, int bufLen, double val, unsigned int tprec, unsigned int fprec) argument
149 sp_svg_number_write_de(gchar *buf, int bufLen, double val, unsigned int tprec, int min_exp) argument
[all...]
H A Dsvg.h28 * Return FALSE and let val untouched on error
31 unsigned int sp_svg_number_read_f( const char *str, float *val );
32 unsigned int sp_svg_number_read_d( const char *str, double *val );
37 unsigned int sp_svg_number_write_de( char *buf, int bufLen, double val, unsigned int tprec, int min_exp );
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;
/inkscape/src/2geom/
H A Dgeneric-interval.h102 C clamp(C val) const {
103 if (val < min()) return min();
104 if (val > max()) return max();
105 return val;
108 C nearestEnd(C val) const {
109 C dmin = std::abs(val - min()), dmax = std::abs(val - max());
117 bool contains(C val) const {
118 return min() <= val && val <
[all...]
H A Dinterval.h122 bool interiorContains(Coord val) const { return min() < val && val < max(); }
125 bool interiorContains(Interval const &val) const { return min() < val.min() && val.max() < max(); }
127 bool lowerContains(Coord val) { return min() <= val && val < max(); } argument
129 bool lowerContains(Interval const &val) cons
131 upperContains(Coord val) argument
[all...]
/inkscape/share/extensions/
H A Dwebslicer_effect.py23 def is_empty(val):
24 if val is None:
27 return len(str(val)) == 0
H A Dcoloreffect.py49 val = node.get(attr)
50 if val:
51 new_val = self.process_prop(val)
52 if new_val != val:
78 (prop, val) = parts
81 val = val.strip()
82 new_val = self.process_prop(val)
83 if new_val != val:
87 val
[all...]
H A Dinkweb.js80 InkWeb.setStyle = function (el, att, val) {
86 style = style.replace( re, "$1"+ att +":"+ val +"$3" );
88 style += ";"+ att +":"+ val;
91 return val
104 var val = this.getStyle( conf.from, conf.att[i] );
105 if ( val ) {
106 this.setStyle( toEl, conf.att[i], val );
108 val = conf.from.getAttribute(conf.att[i]);
109 toEl.setAttribute( conf.att[i], val );
119 conf.val
[all...]
/inkscape/src/ui/widget/
H A Dfilter-effect-chooser.cpp69 void SimpleFilterModifier::set_blend_mode(const int val) argument
71 _blend.set_active(val);
79 void SimpleFilterModifier::set_blur_value(const double val) argument
81 _blur.set_value(val);
H A Dspin-slider.cpp47 const double val = _adjustment->get_value(); local
49 const double val = _adjustment.get_value();
53 return Glib::Ascii::dtostr((int)val);
55 return Glib::Ascii::dtostr(val);
60 const gchar* val = attribute_value(o); local
62 if(val)
63 _adjustment->set_value(Glib::Ascii::strtod(val));
67 if(val)
68 _adjustment.set_value(Glib::Ascii::strtod(val));
92 void SpinSlider::set_value(const double val) argument
191 const gchar* val = attribute_value(o); local
[all...]
/inkscape/src/libnrtype/
H A Dnr-type-primitives.cpp25 void *val; member in struct:NRTDEntry
99 nr_type_dict_insert (NRTypeDict *td, const gchar *key, void *val) argument
109 tde->val = val;
117 tde->val = val;
133 if (!strcmp (key, tde->key)) return tde->val;

Completed in 239 milliseconds

12345678