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

Public Member Functions

 ZWindow (const ZConnect &zconnect, Window window)
 
 ZWindow (const ZWindow &zwindow)
 
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
 
- 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
 

Public Attributes

Window wid
 
- Public Attributes inherited from ZGEnv
GC gc
 
XFontStruct * font
 
- Public Attributes inherited from ZConnect
Display * dpy
 
ScreenNo scr_no
 

Additional Inherited Members

- 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
 

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