Logo Search packages:      
Sourcecode: inkscape version File versions

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

Sets win coordinates from world and canvas.

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

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

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


Generated by  Doxygen 1.6.0   Back to index