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

int zbar_window_resize ( zbar_window_t window,
unsigned  width,
unsigned  height 
)

resize the image window (reconfigure handler). this does not update the contents of the window

Since:
0.3, changed in 0.4 to not redraw window

Definition at line 310 of file window.c.

References zbar_window_resize().

Referenced by zbar::Window::resize(), and zbar_window_resize().

{
    if(window_lock(w))
        return(-1);
    w->width = width;
    w->height = height;
    w->scaled_size.x = 0;
    _zbar_window_resize(w);
    return(window_unlock(w));
}


Generated by  Doxygen 1.6.0   Back to index