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) |
|
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().
|
static |
References _zbar_window_draw_polygon().
Referenced by window_draw_overlay().
int zbar_window_attach | ( | zbar_window_t * | w, |
void * | display, | ||
unsigned long | drawable | ||
) |
References _zbar_window_attach(), and zbar_window_draw().
Referenced by _zbar_processor_close(), _zbar_processor_open(), win_handle_event(), x_handle_event(), zbar_gtk_realize(), zbar_gtk_unrealize(), and zbar_window_destroy().
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().
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().
int zbar_window_draw | ( | zbar_window_t * | w, |
zbar_image_t * | img | ||
) |
References _zbar_image_refcnt(), window_lock(), and window_unlock().
Referenced by _zbar_process_image(), zbar_gtk_process_image(), zbar_gtk_processing_thread(), zbar_gtk_video_open(), zbar_processor_set_active(), and zbar_window_attach().
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().
|
inline |
References __func__, _zbar_best_format(), _zbar_image_refcnt(), _zbar_window_begin(), _zbar_window_draw_logo(), _zbar_window_end(), _zbar_window_fill_rect(), err_capture_int(), SEV_ERROR, test_zbar::size, void, window_draw_overlay(), window_lock(), window_scale_pt(), window_unlock(), point_s::x, point_s::y, zbar::ZBAR_ERR_UNSUPPORTED, zbar_image_convert_resize(), zbar_image_destroy(), zbar_symbol_set_ref(), and zprintf.
Referenced by win_handle_event(), x_handle_event(), and zbar_gtk_expose().
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().
void zbar_window_set_overlay | ( | zbar_window_t * | w, |
int | lvl | ||
) |
References void, window_lock(), and window_unlock().
Referenced by _zbar_processor_handle_input().