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

int zebra_window_resize ( zebra_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 144 of file window.c.

References zebra_image_create(), zebra_image_set_size(), and zebra_window_resize().

Referenced by zebra::Window::resize(), and zebra_window_resize().

{
    if(window_lock(w))
        return(-1);
    w->width = width;
    w->height = height;
    if(!w->logo) {
        w->logo = zebra_image_create();
        w->logo->refcnt++;
    }
    if(w->logo->width != width || w->logo->height != height) {
        zebra_image_set_size(w->logo, width, height);
        _zebra_draw_logo(w->logo);
    }
    return(window_unlock(w));
}


Generated by  Doxygen 1.6.0   Back to index