/inkscape/src/live_effects/ |
H A D | lpe-path_length.h | 19 #include "live_effects/parameter/unit.h" 39 UnitParam unit; member in class:Inkscape::LivePathEffect::LPEPathLength
|
H A D | lpe-ruler.h | 20 #include "live_effects/parameter/unit.h" 54 UnitParam unit; member in class:Inkscape::LivePathEffect::LPERuler
|
/inkscape/src/live_effects/parameter/ |
H A D | unit.h | 40 operator Inkscape::Util::Unit const *() const { return unit; } 43 Inkscape::Util::Unit const *unit; member in class:Inkscape::LivePathEffect::UnitParam::Inkscape::Util
|
/inkscape/src/svg/ |
H A D | svg-angle.h | 37 // The unit of value. 38 Unit unit; member in class:SVGAngle 48 unit = NONE;
|
H A D | svg-angle.cpp | 30 static bool sp_svg_angle_read_lff(gchar const *str, SVGAngle::Unit &unit, float &val, float &computed); 34 , unit(NONE) 56 unit = u; 65 unit = u; 76 static bool sp_svg_angle_read_lff(gchar const *str, SVGAngle::Unit &unit, float &val, float &computed) argument 90 unit = SVGAngle::NONE; 96 return false; // spaces between value and unit are not allowed 99 unit = SVGAngle::NONE; 106 unit = SVGAngle::DEG; 110 unit [all...] |
H A D | svg-length.h | 39 // The unit of value. 40 Unit unit; member in class:SVGLength 45 // The value in pixels (value * pixels/unit). 50 unit = NONE; 63 void scale(double scale); // Scales length (value, computed), leaving unit alone.
|
H A D | svg-length-test.h | 8 gchar const *sp_svg_length_get_css_units(SVGLength::Unit unit); 14 char const* str; SVGLength::Unit unit; float value; float computed; member in struct:SvgLengthTest::test_t 37 TSM_ASSERT_EQUALS(absolute_tests[i].str , len.unit , absolute_tests[i].unit); 45 TSM_ASSERT_EQUALS(relative_tests[i].str , len.unit , relative_tests[i].unit); 60 TSM_ASSERT_EQUALS(absolute_tests[i].str , len.unit , absolute_tests[i].unit); 68 TSM_ASSERT_EQUALS(relative_tests[i].str , len.unit , relative_tests[i].unit); [all...] |
/inkscape/src/ui/widget/ |
H A D | spinbutton.cpp | 16 #include "unit-menu.h" 17 #include "unit-tracker.h" 38 Unit const *unit = NULL; local 40 unit = _unit_menu->getUnit(); 42 unit = _unit_tracker->getActiveUnit(); 44 Inkscape::Util::ExpressionEvaluator eval = Inkscape::Util::ExpressionEvaluator(get_text().c_str(), unit); 46 // check if output dimension corresponds to input unit 47 if (result.dimension != (unit->isAbsolute() ? 1 : 0) ) {
|
H A D | unit-menu.cpp | 16 #include "unit-menu.h" 34 // Expand the unit widget with unit entries from the unit table 68 bool UnitMenu::setUnit(Glib::ustring const & unit) argument 70 // TODO: Determine if 'unit' is available in the dropdown. 73 set_active_text(unit); 119 // Catch the case of zero or negative unit factors (error!)
|
H A D | scalar-unit.cpp | 16 #include "scalar-unit.h" 80 bool ScalarUnit::setUnit(Glib::ustring const &unit) argument 83 // First set the unit 84 if (!_unit_menu->setUnit(unit)) { 87 lastUnits = unit;
|
H A D | unit-tracker.cpp | 3 * Simple mediator to synchronize changes to unit menus 16 #include "unit-tracker.h" 84 void UnitTracker::setActiveUnit(Inkscape::Util::Unit const *unit) argument 86 if (unit) { 93 if (storedUnit && (!unit->abbr.compare(storedUnit))) { 211 Inkscape::Util::Unit const *unit = unit_table.getUnit(abbr); member in class:Inkscape::UI::Widget::Inkscape::Util 221 _fixupAdjustments(unit, newUnit); 225 g_warning("Did not find new unit"); 228 g_warning("Did not find old unit");
|
H A D | page-sizer.cpp | 46 #include "ui/widget/scalar-unit.h" 101 Glib::ustring const unit; //units member in class:Inkscape::UI::Widget::PaperSizeRec::Glib 307 desc.append(" " + p->unit); 308 PaperSize paper(name, p->smaller, p->larger, unit_table.getUnit(p->unit)); 337 // Setting default custom unit to document unit 578 _unit = w.unit->abbr; 611 _dimensionWidth.setUnit(w.unit->abbr); 613 _dimensionHeight.setUnit(h.unit->abbr); 675 Quantity smallX (paper.smaller, paper.unit); [all...] |
/inkscape/src/util/ |
H A D | expression-evaluator.h | 45 * It relies on external unit resolving through a callback and does 62 * unit factor ::= factor unit? ; 68 * unit ::= ? what not g_strtod() consumes and not whitespace ? ; 71 * non-terminal unit factor, which is inlined into factor) for 131 * @param unit Unit output should be in 136 ExpressionEvaluator(const char *string, Unit const *unit = NULL); 142 Unit const *unit; member in class:Inkscape::Util::ExpressionEvaluator 163 static bool resolveUnit(const char *identifier, EvaluatorQuantity *result, Unit const *unit);
|
H A D | units.h | 3 * These classes are used for defining different unit systems. 57 * of this unit. 61 /** Checks if a unit is compatible with the specified unit. */ 76 /** Get SVG unit code. */ 79 /** Convert value from this unit **/ 89 Unit const *unit; member in class:Inkscape::Util::Quantity 97 /** Checks if a quantity is compatible with the specified unit. */ 102 /** Return the quantity's value in the specified unit. */ 107 /** Return a printable string of the value in the specified unit [all...] |
H A D | expression-evaluator.cpp | 51 ExpressionEvaluator::ExpressionEvaluator(const char *string, Unit const *unit) : argument 53 unit(unit) 63 * analysis, and basic unit conversions. 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 69 * the order of the dimension (e.g. if the base unit is inches, a dimension 94 resolveUnit(NULL, &default_unit_factor, unit); 96 // Entire expression is dimensionless, apply default unit i 361 resolveUnit(const char* identifier, EvaluatorQuantity *result, Unit const* unit) argument [all...] |
/inkscape/src/widgets/ |
H A D | measure-toolbar.cpp | 46 #include "ui/widget/unit-tracker.h" 140 Glib::ustring const unit = tracker->getActiveUnit()->abbr; member in class:Glib 142 prefs->setString("/tools/measure/unit", unit); 264 tracker->setActiveUnitByAbbr(prefs->getString("/tools/measure/unit").c_str());
|
H A D | paintbucket-toolbar.cpp | 43 #include "ui/widget/unit-tracker.h" 80 Unit const *unit = tracker->getActiveUnit(); local 84 // unit and it'll be correctly handled on load. 87 g_return_if_fail(unit != NULL); 88 prefs->setString("/tools/paintbucket/offsetunits", unit->abbr); 152 paintbucket_threshold_changed, NULL /*unit tracker*/, 1, 0 );
|
H A D | lpe-toolbar.cpp | 46 #include "ui/widget/unit-tracker.h" 181 Unit const *unit = tracker->getActiveUnit(); local 182 g_return_if_fail(unit != NULL); 184 prefs->setString("/tools/lpetool/unit", unit->abbr); 285 Unit const *unit = tracker->getActiveUnit(); local 286 g_return_if_fail(unit != NULL); 289 prefs->setString("/tools/lpetool/unit", unit->abbr);
|
H A D | rect-toolbar.cpp | 49 #include "ui/widget/unit-tracker.h" 90 Unit const *unit = tracker->getActiveUnit(); local 91 g_return_if_fail(unit != NULL); 96 Quantity::convert(gtk_adjustment_get_value(adj), unit, "px")); local 113 (SP_RECT(*i)->*setter)(Quantity::convert(gtk_adjustment_get_value(adj), unit, "px")); 184 Unit const *unit = tracker->getActiveUnit(); local 185 g_return_if_fail(unit != NULL); 193 gtk_adjustment_set_value(adj, Quantity::convert(rx, "px", unit)); 200 gtk_adjustment_set_value(adj, Quantity::convert(ry, "px", unit)); 207 gtk_adjustment_set_value(adj, Quantity::convert(width, "px", unit)); [all...] |
/inkscape/src/extension/internal/ |
H A D | image-resolution.cpp | 227 ExifEntry *unit = exif_content_get_entry(ed->ifd[EXIF_IFD_0], EXIF_TAG_RESOLUTION_UNIT); local 232 if (unit) { 233 double u = exifDouble(unit, byte_order); 275 int unit; local 288 unit = i->toLong(); 293 if ( unit == 3 ) {
|
/inkscape/src/display/ |
H A D | nr-filter.cpp | 176 void Filter::set_filter_units(SPFilterUnits unit) { argument 177 _filter_units = unit; 180 void Filter::set_primitive_units(SPFilterUnits unit) { argument 181 _primitive_units = unit; 240 if (_region_x.unit == SVGLength::PERCENT) { 245 if (_region_width.unit == SVGLength::PERCENT) { 251 if (_region_y.unit == SVGLength::PERCENT) { 256 if (_region_height.unit == SVGLength::PERCENT) {
|
/inkscape/src/ |
H A D | sp-star.cpp | 98 SVGLength::Unit unit; local 114 if (!sp_svg_length_read_ldd (value, &unit, NULL, &this->center[Geom::X]) || 115 (unit == SVGLength::EM) || 116 (unit == SVGLength::EX) || 117 (unit == SVGLength::PERCENT)) { 125 if (!sp_svg_length_read_ldd (value, &unit, NULL, &this->center[Geom::Y]) || 126 (unit == SVGLength::EM) || 127 (unit == SVGLength::EX) || 128 (unit == SVGLength::PERCENT)) { 136 if (!sp_svg_length_read_ldd (value, &unit, NUL [all...] |
H A D | style-internal.cpp | 235 unit = SP_CSS_UNIT_NONE; 250 unit = SP_CSS_UNIT_NONE; 254 unit = SP_CSS_UNIT_PX; 258 unit = SP_CSS_UNIT_PT; 261 unit = SP_CSS_UNIT_PC; 264 unit = SP_CSS_UNIT_MM; 267 unit = SP_CSS_UNIT_CM; 270 unit = SP_CSS_UNIT_IN; 274 unit = SP_CSS_UNIT_EM; 282 unit 1971 int unit = prefs->getInt("/options/font/unitType", SP_CSS_UNIT_PT); local [all...] |
/inkscape/src/ui/dialog/ |
H A D | text-edit.cpp | 371 int unit = prefs->getInt("/options/font/unitType", SP_CSS_UNIT_PT); local 372 double size = sp_style_css_size_px_to_units(query.font_size.computed, unit); 397 else if (query.line_height.unit == SP_CSS_UNIT_PERCENT) 426 int unit = prefs->getInt("/options/font/unitType", SP_CSS_UNIT_PT); local 427 double pt_size = Inkscape::Util::Quantity::convert(sp_style_css_size_units_to_px(sp_font_selector_get_size(fsel), unit), "px", "pt"); 507 int unit = prefs->getInt("/options/font/unitType", SP_CSS_UNIT_PT); local 509 os << sp_style_css_size_units_to_px(sp_font_selector_get_size (fsel), unit) << sp_style_get_css_unit_string(SP_CSS_UNIT_PX); 511 os << sp_font_selector_get_size (fsel) << sp_style_get_css_unit_string(unit);
|
/inkscape/src/ui/tools/ |
H A D | lpe-tool.cpp | 409 Inkscape::Util::Unit const * unit = NULL; member in class:Inkscape::UI::Tools::Inkscape::Util 410 if (prefs->getString("/tools/lpetool/unit").compare("")) { 411 unit = unit_table.getUnit(prefs->getString("/tools/lpetool/unit")); 413 unit = unit_table.getUnit("px"); 417 lengthval = Inkscape::Util::Quantity::convert(lengthval, "px", unit); 418 arc_length = g_strdup_printf("%.2f %s", lengthval, unit->abbr.c_str()); 448 Inkscape::Util::Unit const * unit = NULL; member in class:Inkscape::UI::Tools::Inkscape::Util 449 if (prefs->getString("/tools/lpetool/unit").compare("")) { 450 unit [all...] |