Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_image_scroll_rect ( int  x,
int  y,
int  width,
int  height,
int  delta_x,
int  delta_y 

x The top left x coordinate of the rectangle.
y The top left y coordinate of the rectangle.
width The width of the rectangle.
height The height of the rectangle.
delta_x Distance along the x coordinates.
delta_y Distance along the y coordinates.
Scrolls a rectangle of size width, height at the (x, y) location within the current image by the delta_x, delta_y distance (in pixels).

Definition at line 4606 of file imlib2.c.

   ImlibImage         *im;
   int                 xx, yy, w, h, nx, ny;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_image_scroll_rect", "image", ctx->image);
   CAST_IMAGE(im, ctx->image);
   if ((!(im->data)) && (im->loader) && (im->loader->load))
      im->loader->load(im, NULL, 0, 1);
   if (!(im->data))
   if (delta_x > 0)
        xx = x;
        nx = x + delta_x;
        w = width - delta_x;
        xx = x - delta_x;
        nx = x;
        w = width + delta_x;
   if (delta_y > 0)
        yy = y;
        ny = y + delta_y;
        h = height - delta_y;
        yy = y - delta_y;
        ny = y;
        h = height + delta_y;
   __imlib_copy_image_data(im, xx, yy, w, h, nx, ny);

Generated by  Doxygen 1.6.0   Back to index