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

Public Member Functions

 ZtMain (const ZConnect &zconnect, Window window)
 
 ZtMain (const ZWindow &zwindow)
 
 ZtMain (const ZWidget &zwidget)
 
void add (const ZtObject *pObject)
 
int objects_count () const
 
void raise_exch (int iObject)
 
void raise_shift (int iObject)
 
int object_index (const ZtObject *pObject) const
 
void remove (int iObject)
 
void remove (const ZtObject *pObject)
 
void hide (int iObject)
 
void show (int iObject)
 
Logic is_hidden (int iObject) const
 
ZtObjectobject_pointer (int iObject) const
 
ZtObjectoperator[] (int iObject) const
 
virtual void expose ()
 
virtual void redraw ()
 
virtual void draw_to_tiff (const char *path)
 
virtual void draw_to_pixmap (ZArea &pixmap)
 
virtual ZInputStatus input (const XEvent *xev)
 
void seldom_redraw (Logic flag)
 
Logic is_seldom_redraw () const
 
void set_info_lines (InfoLine *il)
 
InfoLineget_info_lines () const
 
- Public Member Functions inherited from ZWindow
 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)
 
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 Member Functions inherited from ZWidget
 ZWidget (Widget w=NULL)
 
virtual Widget widget () const
 

Public Attributes

ZPCoordMastermpx
 
ZPCoordMastermpy
 
ZNCoordMastermnx
 
ZNCoordMastermny
 
- Public Attributes inherited from ZWindow
Window wid
 
- Public Attributes inherited from ZGEnv
GC gc
 
XFontStruct * font
 
- Public Attributes inherited from ZConnect
Display * dpy
 
ScreenNo scr_no
 

Protected Member Functions

virtual void draw_to (Drawable d, const ZSize &s)
 
Logic cache_is_actual () const
 
- 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

InfoLinepInfoLine
 
ZAreacached_area
 
ZtObjAr * objects
 
int iGrabInput
 
- Protected Attributes inherited from ZWidget
Widget wptr
 

Member Function Documentation

Logic ZtMain::cache_is_actual ( ) const
protected

Finding up is it possible to draw from cache instead of full redraw() cycle?

virtual void ZtMain::draw_to_pixmap ( ZArea pixmap)
virtual

Copy current image to given pixmap object.

InfoLine* ZtMain::get_info_lines ( ) const

Get pointer to info lines.

virtual void ZtMain::redraw ( )
virtual

Direct draw procedure: always redraws cache pixmap

void ZtMain::set_info_lines ( InfoLine il)

Set/reset info lines.

Member Data Documentation

ZArea* ZtMain::cached_area
protected

Drawing cache for seldom redraw

int ZtMain::iGrabInput
protected

Who grabs input ?

ZtObjAr* ZtMain::objects
protected

Array of objects

InfoLine* ZtMain::pInfoLine
protected

Object which is responsible for displaying local messages for user.


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