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

int zebra_processor_set_visible ( zebra_processor_t processor,
int  visible 
)

show or hide the display window owned by the library. the size will be adjusted to the input size

Definition at line 624 of file processor.c.

References ZEBRA_ERR_INVALID, zebra_processor_set_visible(), zebra_video_get_height(), and zebra_video_get_width().

Referenced by zebra::Processor::set_visible(), and zebra_processor_set_visible().

{
    if(proc_lock(proc) < 0)
        return(-1);
    int rc = 0;
    if(proc->window) {
        if(proc->video)
            rc = _zebra_window_resize(proc,
                                      zebra_video_get_width(proc->video),
                                      zebra_video_get_height(proc->video));
        if(!rc)
            rc = _zebra_window_set_visible(proc, visible);
    }
    else if(visible)
        rc = err_capture(proc, SEV_ERROR, ZEBRA_ERR_INVALID, __func__,
                         "processor display window not initialized");
    proc_unlock(proc);
    return(rc);
}


Generated by  Doxygen 1.6.0   Back to index