UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ZBarBuffer Class Reference
Inheritance diagram for ZBarBuffer:
ZBarDraw ZDrawable ZGEnv ZConnect

Public Member Functions

 ZBarBuffer (const ZConnect &zconnect, Drawable drawable)
 
 ZBarBuffer (const ZDrawable &zdrawable)
 
virtual void set_cliprect (ZRect &r)
 
virtual void flip (Logic new_flag)
 
virtual void draw_bar (int pos, int start, int end, unsigned color)
 
virtual void draw_bar (int pos, int start, int end)
 
virtual void set_color (unsigned color)
 
virtual void draw_bar_cp (int pos, int start, int end, ColorPixel cp)
 
virtual void flush_bars ()
 
- Public Member Functions inherited from ZBarDraw
 ZBarDraw (const ZConnect &zconnect, Drawable drawable)
 
 ZBarDraw (const ZDrawable &zdrawable)
 
Logic is_flipped () const
 
void set_autoflush (unsigned new_volume)
 
Logic clip_and_flip (XSegment &dest, int pos, int start, int end)
 
virtual void attach_palette (ZPalette *theColorPalette)
 
virtual void image_on ()
 
virtual void image_off ()
 
- Public Member Functions inherited from ZDrawable
 ZDrawable (const ZConnect &zconnect, Drawable drawable)
 
 ZDrawable (const ZDrawable &zdrawable)
 
virtual ZRect rect () const
 
void draw_text (int x, int y, int attachment, const char *szText) const
 
void draw_text (const ZRect &box, int alignment, const char *szText) const
 
void write_tiff (const char *path, ZmImageRemarks *remarks=NULL)
 
void write_png (const char *path, ZmImageRemarks *remarks=NULL)
 
- Public Member Functions inherited from ZGEnv
 ZGEnv (const ZConnect &zconnect)
 
 ZGEnv (const ZGEnv &zgenv)
 
virtual void expose ()
 
void set_foreground (const char *szColorName)
 
void set_foreground (ColorPixel cp)
 
ColorPixel get_foreground () const
 
const char * get_foreground_name () const
 
void set_background (const char *szColorName)
 
void set_background (ColorPixel cp)
 
ColorPixel get_background () const
 
const char * get_background_name () const
 
void swap_ground ()
 
void assign (const ZGEnv &zgenv)
 
void set_line_width (int new_width)
 
int get_line_width () const
 
void set_line_style (int new_style, int dash=3, int hole=3)
 
int get_line_style () const
 
void set_font (const char *szFontName)
 
void set_font_as (const ZGEnv &zgenv)
 
Font get_font () const
 
const char * get_font_name () const
 
int text_width (const char *szText) const
 
int text_width (int n) const
 
int text_height () const
 
int text_ascent () const
 
int text_descent () const
 
ZRect text_rect (int x, int y, int attachment, const char *szText) const
 
virtual void changed_state (int mask_of_changes)
 
ZGEnvoperator= (const ZGEnv &zgenv)
 
- Public Member Functions inherited from ZConnect
 ZConnect (Display *display)
 
 ZConnect (const ZConnect &zconnect)
 
void flush ()
 
void x_error (int code) const
 
ZRect rect (Drawable drawable) const
 
int depth (Drawable drawable) const
 
Window root_wid () const
 
ColorPixel white () const
 
ColorPixel black () const
 
ColorPixel color (const char *szColorName) const
 

Protected Types

enum  SpecType { NoStick = 0, ColorWillBeLater, StickIsHere, ExactColor }
 
- Protected Types inherited from ZBarDraw
enum  { NO_COLOR, COLOR_PALETTE, EXACT_COLOR }
 

Protected Member Functions

Logic merge_2_bars (int &pos, int &start, int &end)
 
- Protected Member Functions inherited from ZBarDraw
void set_bars_color ()
 
- Protected Member Functions inherited from ZGEnv
void draw_text (Drawable id, int x, int y, int attachment, const char *szText) const
 
void draw_text (Drawable id, const ZRect &box, int alignment, const char *szText) const
 

Protected Attributes

int prev_nocolor_bar
 
int * start_vect
 
int * end_vect
 
unsigned * color_vect
 
ColorPixel * pixel_vect
 
enum SpecType * spec_vect
 
- Protected Attributes inherited from ZBarDraw
ZRect clip
 
Logic flip_flag
 
ZPalettepal
 
XSegmentAr buf
 
unsigned cindex
 
ColorPixel cpixel
 
enum ZBarDraw:: { ... }  color_mode
 
unsigned auto_flush
 
XImage * image
 

Additional Inherited Members

- Public Attributes inherited from ZDrawable
Drawable did
 
- Public Attributes inherited from ZGEnv
GC gc
 
XFontStruct * font
 
- Public Attributes inherited from ZConnect
Display * dpy
 
ScreenNo scr_no
 

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