Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

void sp_canvas_window_to_world ( SPCanvas const *  canvas,
double  winx,
double  winy,
double *  worldx,
double *  worldy 
)

Sets world coordinates from win and canvas.

Definition at line 2250 of file sp-canvas.cpp.

References SPCanvas::x0, and SPCanvas::y0.

Referenced by SPDesktop::point(), and sp_canvas_paint_rect().

{
    g_return_if_fail (canvas != NULL);
    g_return_if_fail (SP_IS_CANVAS (canvas));

    if (worldx) *worldx = canvas->x0 + winx;
    if (worldy) *worldy = canvas->y0 + winy;
}


Generated by  Doxygen 1.6.0   Back to index