ZBar Bar Code Reader Library  version 0.10
window.c File Reference
Include dependency graph for window.c:

Functions

static int window_draw_overlay (zbar_window_t *w)
 
static void window_outline_symbol (zbar_window_t *w, uint32_t color, const zbar_symbol_t *sym)
 
int zbar_window_attach (zbar_window_t *w, void *display, unsigned long drawable)
 
zbar_window_t * zbar_window_create ()
 constructor. More...
 
void zbar_window_destroy (zbar_window_t *w)
 
int zbar_window_draw (zbar_window_t *w, zbar_image_t *img)
 
int zbar_window_get_overlay (const zbar_window_t *w)
 
int zbar_window_redraw (zbar_window_t *w)
 
int zbar_window_resize (zbar_window_t *w, unsigned width, unsigned height)
 
void zbar_window_set_overlay (zbar_window_t *w, int lvl)
 

Function Documentation

static int window_draw_overlay ( zbar_window_t *  w)
inlinestatic

References _zbar_window_draw_marker(), _zbar_window_draw_text(), zbar_symbol_s::syms, window_outline_symbol(), window_scale_pt(), point_s::x, point_s::y, and zbar::ZBAR_QRCODE.

Referenced by zbar_window_redraw().

Here is the call graph for this function:

Here is the caller graph for this function:

static void window_outline_symbol ( zbar_window_t *  w,
uint32_t  color,
const zbar_symbol_t *  sym 
)
static

References _zbar_window_draw_polygon().

Referenced by window_draw_overlay().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_window_attach ( zbar_window_t *  w,
void display,
unsigned long  drawable 
)
zbar_window_t* zbar_window_create ( void  )

constructor.

References _zbar_mutex_init, err_init(), void, and ZBAR_MOD_WINDOW.

Referenced by zbar::Window::Window(), zbar_gtk_init(), and zbar_processor_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar_window_destroy ( zbar_window_t *  w)

References _zbar_mutex_destroy, err_cleanup(), and zbar_window_attach().

Referenced by zbar_gtk_private_finalize(), and zbar_processor_init().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_window_draw ( zbar_window_t *  w,
zbar_image_t *  img 
)
int zbar_window_get_overlay ( const zbar_window_t *  w)

References zbar_window_s::overlay, void, window_lock(), and window_unlock().

Referenced by _zbar_processor_handle_input().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_window_resize ( zbar_window_t *  w,
unsigned  width,
unsigned  height 
)

References _zbar_window_resize(), scan_image::height, scan_image::width, window_lock(), and window_unlock().

Referenced by win_handle_event(), x_handle_event(), and zbar_gtk_size_allocate().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar_window_set_overlay ( zbar_window_t *  w,
int  lvl 
)

References void, window_lock(), and window_unlock().

Referenced by _zbar_processor_handle_input().

Here is the call graph for this function:

Here is the caller graph for this function: