ZBar Bar Code Reader Library  version 0.10
zbar::Window Class Reference

mid-level output window abstraction. More...

Collaboration diagram for zbar::Window:

Public Member Functions

 Window (zbar_window_t *window=NULL)
 constructor. More...
 
 Window (void *x11_display_w32_hwnd, unsigned long x11_drawable)
 constructor. More...
 
 ~Window ()
 
void attach (void *x11_display_w32_hwnd, unsigned long x11_drawable=0)
 associate reader with an existing platform window. More...
 
void clear ()
 clear the image from the output window. More...
 
void draw (Image &image)
 retrieve current content level of reader overlay. More...
 
 operator zbar_window_t * () const
 cast to C window object. More...
 
void redraw ()
 redraw the last image. More...
 
void resize (unsigned width, unsigned height)
 resize the image window. More...
 
void set_overlay (int level)
 control content level of the reader overlay. More...
 

Private Attributes

zbar_window_t_window
 

Detailed Description

mid-level output window abstraction.

displays images to user-specified platform specific output window

Constructor & Destructor Documentation

zbar::Window::Window ( zbar_window_t window = NULL)
inline

constructor.

References _window, window, and zbar::zbar_window_create().

Here is the call graph for this function:

zbar::Window::Window ( void x11_display_w32_hwnd,
unsigned long  x11_drawable 
)
inline

constructor.

References _window, attach(), and zbar::zbar_window_create().

Here is the call graph for this function:

zbar::Window::~Window ( )
inline

References _window, and zbar::zbar_window_destroy().

Here is the call graph for this function:

Member Function Documentation

void zbar::Window::attach ( void x11_display_w32_hwnd,
unsigned long  x11_drawable = 0 
)
inline

associate reader with an existing platform window.

see zbar_window_attach()

References _window, zbar::throw_exception(), and zbar::zbar_window_attach().

Referenced by zbar::QZBar::attach(), zbar::QZBar::changeEvent(), zbar::QZBar::QZBar(), and Window().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar::Window::clear ( )
inline

clear the image from the output window.

see zbar_window_draw()

References _window, zbar::throw_exception(), and zbar::zbar_window_draw().

Referenced by zbar::QZBarThread::clear().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar::Window::draw ( Image image)
inline

retrieve current content level of reader overlay.

see zbar_window_get_overlay() draw a new image into the output window. see zbar_window_draw()

References _window, zbar::throw_exception(), and zbar::zbar_window_draw().

Referenced by zbar::QZBarThread::processImage().

Here is the call graph for this function:

Here is the caller graph for this function:

zbar::Window::operator zbar_window_t * ( ) const
inline

cast to C window object.

References _window.

void zbar::Window::redraw ( )
inline

redraw the last image.

zbar_window_redraw()

References _window, zbar::throw_exception(), and zbar::zbar_window_redraw().

Referenced by zbar::QZBar::paintEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar::Window::resize ( unsigned  width,
unsigned  height 
)
inline

resize the image window.

zbar_window_resize()

References _window, zbar::throw_exception(), and zbar::zbar_window_resize().

Referenced by zbar::QZBar::resizeEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar::Window::set_overlay ( int  level)
inline

control content level of the reader overlay.

see zbar_window_set_overlay()

References _window, and zbar::zbar_window_set_overlay().

Here is the call graph for this function:

Member Data Documentation


The documentation for this class was generated from the following file: