/inkscape/src/ |
H A D | context-fns.cpp | 90 /* Control is down: we are constrained to producing integer-ratio rectangles */ 95 /* Round it so that we have an integer-ratio (or golden ratio) box */ 97 double ratio = delta[Geom::X] / delta[Geom::Y]; local 98 double ratioabs = fabs (ratio); 99 double sign = (ratio < 0 ? -1 : 1); 103 delta[Geom::X] = floor(ratio + 0.5) * delta[Geom::Y]; 106 double ratio = delta[Geom::Y] / delta[Geom::X]; local 107 double ratioabs = fabs (ratio); 108 double sign = (ratio < [all...] |
/inkscape/src/display/ |
H A D | nr-filter-image.cpp | 196 // Check aspect ratio of image vs. viewport 199 bool ratio = (feAspect < aspect); local 248 if( ratio ) { 261 if( ratio ) {
|
/inkscape/src/ui/ |
H A D | previewholder.cpp | 224 void PreviewHolder::setStyle( ::PreviewSize size, ViewType view, guint ratio, ::BorderStyle border ) argument 226 if ( size != _baseSize || view != _view || ratio != _ratio || border != _border ) { 229 _ratio = ratio;
|
H A D | object-edit.cpp | 276 //original ratio 277 gdouble ratio = (w_orig / h_orig); local 287 if (minx != 0 && fabs(miny/minx) > 0.5 * 1/ratio && (SGN(minx) == SGN(miny))) { 288 // closer to the diagonal and in same-sign quarters, change both using ratio 289 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handle, Geom::Point(-ratio, -1)), state); 293 rect->height = MAX(h_orig + minx / ratio, 0); 306 if (miny != 0 && fabs(minx/miny) > 0.5 * ratio && (SGN(minx) == SGN(miny))) { 307 // closer to the diagonal and in same-sign quarters, change both using ratio 308 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handle, Geom::Point(-ratio, -1)), state); 312 rect->width = MAX(w_orig + miny * ratio, 376 gdouble ratio = (w_orig / h_orig); local [all...] |
/inkscape/src/ui/tools/ |
H A D | spray-tool.h | 74 double ratio; member in class:Inkscape::UI::Tools::SprayTool
|
H A D | spray-tool.cpp | 162 , ratio(0) 266 sp_event_context_read(this, "ratio"); 332 } else if (path == "ratio") { 333 this->ratio = CLAMP(val.getDouble(), 0.0, 0.9); 877 double ratio, 937 Geom::Point move = (Geom::Point(cos(tilt)*cos(dp)*dr/(1-ratio)+sin(tilt)*sin(dp)*dr/(1+ratio), -sin(tilt)*cos(dp)*dr/(1-ratio)+cos(tilt)*sin(dp)*dr/(1+ratio)))+(p-a->midpoint()); 1039 Geom::Point move = (Geom::Point(cos(tilt)*cos(dp)*dr/(1-ratio) 864 sp_spray_recursive(SPDesktop *desktop, Inkscape::Selection *selection, SPItem *item, Geom::Point p, Geom::Point , gint mode, double radius, double population, double &scale, double scale_variation, bool , double mean, double standard_deviation, double ratio, double tilt, double rotation_variation, gint _distrib, bool no_overlap, bool picker, bool pick_center, bool pick_inverse_value, bool pick_fill, bool pick_stroke, bool pick_no_overlap, bool over_no_transparent, bool over_transparent, double offset, bool usepressurescale, double pressure, int pick, bool do_trace, bool pick_to_size, bool pick_to_presence, bool pick_to_color, bool pick_to_opacity, bool invert_picked, double gamma_picked , double rand_picked) argument [all...] |
/inkscape/src/live_effects/ |
H A D | lpe-perspective-envelope.cpp | 233 LPEPerspectiveEnvelope::pointAtRatio(Geom::Coord ratio,Geom::Point A, Geom::Point B) argument 235 Geom::Coord x = A[X] + (ratio * (B[X]-A[X])); 236 Geom::Coord y = A[Y]+ (ratio * (B[Y]-A[Y]));
|
/inkscape/src/widgets/ |
H A D | eek-preview.cpp | 74 guint ratio; member in struct:__anon156 186 if ( priv->ratio != 100 ) { 187 width = (width * priv->ratio) / 100; 801 guint ratio, 817 if ( ratio > PREVIEW_MAX_RATIO ) 819 ratio = PREVIEW_MAX_RATIO; 822 priv->ratio = ratio; 859 priv->ratio = 100; 798 eek_preview_set_details(EekPreview *preview, ViewType view, PreviewSize size, guint ratio, guint border) argument
|
/inkscape/src/ui/dialog/ |
H A D | color-item.cpp | 565 Gtk::Widget* ColorItem::getPreview(PreviewStyle style, ViewType view, ::PreviewSize size, guint ratio, guint border) argument 581 ratio,
|
/inkscape/src/extension/internal/ |
H A D | text_reassemble.c | 2278 double ratio; local 2327 ratio = (double)(tspj->fs)/(double)(tspi->fs); 2328 if(ratio >2.0 || ratio <0.5)break;
|
/inkscape/src/libuemf/ |
H A D | uemf.c | 512 U_PAIRF ratio; // intermediate value local 548 ratio.x = vec_estart.x/radii.x; 549 ratio.y = vec_estart.y/radii.y; 550 ratio.x *= ratio.x; // we only use the square 551 ratio.y *= ratio.y; 552 scale = 1.0/sqrt(ratio.x + ratio.y); 556 ratio 1799 xform_alt_set( U_FLOAT scale, U_FLOAT ratio, U_FLOAT rot, U_FLOAT axisrot, U_FLOAT eDx, U_FLOAT eDy ) argument [all...] |