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

Macros

#define ZBAR_OVERLAY_FONT
 

Functions

int _zbar_window_attach (zbar_window_t *w, void *display, unsigned long win)
 
int _zbar_window_begin (zbar_window_t *w)
 
int _zbar_window_clear (zbar_window_t *w)
 
int _zbar_window_draw_logo (zbar_window_t *w)
 
int _zbar_window_draw_marker (zbar_window_t *w, uint32_t rgb, point_t p)
 
int _zbar_window_draw_polygon (zbar_window_t *w, uint32_t rgb, const point_t *pts, int npts)
 
int _zbar_window_draw_text (zbar_window_t *w, uint32_t rgb, point_t p, const char *text)
 
int _zbar_window_end (zbar_window_t *w)
 
int _zbar_window_expose (zbar_window_t *w, int x, int y, int width, int height)
 
int _zbar_window_fill_rect (zbar_window_t *w, uint32_t rgb, point_t org, point_t size)
 
int _zbar_window_resize (zbar_window_t *w)
 
static unsigned long window_alloc_color (zbar_window_t *w, Colormap cmap, unsigned short r, unsigned short g, unsigned short b)
 
static int window_alloc_colors (zbar_window_t *w)
 
static int window_hide_cursor (zbar_window_t *w)
 

Macro Definition Documentation

#define ZBAR_OVERLAY_FONT

Referenced by _zbar_window_attach().

Function Documentation

int _zbar_window_attach ( zbar_window_t *  w,
void display,
unsigned long  win 
)
int _zbar_window_begin ( zbar_window_t *  w)

References __func__, window_state_s::exposed, window_state_s::gc, and null_error().

Referenced by window_scale_pt().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_window_clear ( zbar_window_t *  w)

References __func__, window_state_s::gc, null_error(), and x.

Referenced by window_scale_pt().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_window_draw_logo ( zbar_window_t *  w)

References __func__, window_state_s::exposed, window_state_s::gc, window_state_s::logo_bars, window_state_s::logo_colors, window_state_s::logo_scale, window_state_s::logo_z, window_state_s::logo_zbars, null_error(), and x.

Referenced by window_scale_pt().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_window_draw_marker ( zbar_window_t *  w,
uint32_t  rgb,
point_t  p 
)

References __func__, window_state_s::colors, window_state_s::gc, null_error(), point_s::x, and point_s::y.

Referenced by window_scale_pt().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_window_draw_polygon ( zbar_window_t *  w,
uint32_t  rgb,
const point_t pts,
int  npts 
)

References __func__, window_state_s::colors, window_state_s::gc, null_error(), window_scale_pt(), point_s::x, and point_s::y.

Referenced by window_scale_pt().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_window_draw_text ( zbar_window_t *  w,
uint32_t  rgb,
point_t  p,
const char *  text 
)

References __func__, window_state_s::colors, window_state_s::font, window_state_s::gc, null_error(), scan_image::width, point_s::x, and point_s::y.

Referenced by window_scale_pt().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_window_end ( zbar_window_t *  w)

References __func__, window_state_s::exposed, window_state_s::gc, barcodetest::None, null_error(), and x.

Referenced by window_scale_pt().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_window_expose ( zbar_window_t *  w,
int  x,
int  y,
int  width,
int  height 
)

References __func__, window_state_s::exposed, scan_image::height, null_error(), scan_image::width, x, and y.

Referenced by window_scale_pt().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_window_fill_rect ( zbar_window_t *  w,
uint32_t  rgb,
point_t  org,
point_t  size 
)

References __func__, window_state_s::colors, window_state_s::gc, null_error(), point_s::x, and point_s::y.

Referenced by window_scale_pt().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_window_resize ( zbar_window_t *  w)

References window_state_s::logo_bars, window_state_s::logo_scale, window_state_s::logo_z, window_state_s::logo_zbars, and x.

Referenced by _zbar_window_attach(), and window_scale_pt().

Here is the caller graph for this function:

static unsigned long window_alloc_color ( zbar_window_t *  w,
Colormap  cmap,
unsigned short  r,
unsigned short  g,
unsigned short  b 
)
inlinestatic

References g.

Referenced by window_alloc_colors().

Here is the caller graph for this function:

static int window_alloc_colors ( zbar_window_t *  w)
inlinestatic

References window_state_s::colors, window_state_s::logo_colors, window_alloc_color(), and x.

Referenced by _zbar_window_attach().

Here is the call graph for this function:

Here is the caller graph for this function:

static int window_hide_cursor ( zbar_window_t *  w)
inlinestatic

Referenced by _zbar_window_attach().

Here is the caller graph for this function: