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

void GMapArea::resize ( int  new_width,
int  new_height 
) [inherited]

Resizes the hyperlink to fit new bounding rectangle while keeping the (xmin, ymin) points at rest.

Definition at line 186 of file GMapAreas.cpp.

References GMapArea::get_xmax(), GMapArea::get_xmin(), GMapArea::get_ymax(), and GMapArea::get_ymin().

{
   if (get_xmax()-get_xmin()!=new_width ||
       get_ymax()-get_ymin()!=new_height)
   {
     gma_resize(new_width, new_height);
     bounds_initialized=false;
   }
}


Generated by  Doxygen 1.6.0   Back to index