UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HorScale Class Reference
Inheritance diagram for HorScale:
XDR Scaler XGOps XGEnv XDO

Public Member Functions

 HorScale (const XDO &xdo)
 
void set_border (int w)
 
virtual void string (char *s, float value)
 
virtual void set_mark_freq (unsigned mark_freq)
 
virtual void set_label_step (float label_step)
 
float get_label_step () const
 
virtual void set_range (float v_left, float v_right)
 
virtual void set_width (int w)
 
virtual void set_height (int h)
 
virtual void set_xy (int x, int y)
 
virtual void set_font (const char *szFontName)
 
virtual void draw_grid (XDR &rect)
 
virtual void expose ()
 
- Public Member Functions inherited from XDR
 XDR (const XDO &xdo)
 
virtual void set_sizes (int w, int h)
 
virtual int get_width () const
 
virtual int get_height () const
 
virtual int get_x () const
 
virtual int get_y () const
 
virtual Logic is_inside (int x, int y) const
 
virtual Logic force_inside (int &x, int &y) const
 
void set_cs (int cs)
 
int get_cs () const
 
virtual void fill_background ()
 
void cs_out (int u, int v, int &x, int &y)
 
void cs_in (int x, int y, int &u, int &v)
 
virtual void draw_line (int u1, int v1, int u2, int v2)
 
virtual void draw_rect1 (int u1, int v1, int w, int h)
 
virtual void draw_rect2 (int u1, int v1, int u2, int v2)
 
virtual void draw_point (int u, int v)
 
virtual void fill_rect1 (int u1, int v1, int w, int h)
 
virtual void fill_rect2 (int u1, int v1, int u2, int v2)
 
- Public Member Functions inherited from XGOps
 XGOps (const XDO &xdo)
 
int text_width (const char *szText) const
 
int text_width (int n) const
 
int text_height () const
 
int text_shape (TextShape ts, int x, int y, int attachment, const char *szText) const
 
virtual void draw_text (int x, int y, int attachment, const char *szText) const
 
- Public Member Functions inherited from XGEnv
 XGEnv (const XDO &xdo)
 
 XGEnv (const XGEnv &xgenv)
 
virtual Drawable wid () const
 
virtual void x_error (int rc) const
 
virtual void set_line_width (int width)
 
virtual void set_line_style (int style)
 
virtual void set_foreground (ColorPixel pix)
 
virtual void set_background (ColorPixel pix)
 
virtual void set_function (int func)
 
virtual void set_gc_as (const XGEnv &xgenv)
 
int get_line_width () const
 
int get_line_style () const
 
ColorPixel get_foreground () const
 
ColorPixel get_background () const
 
int get_function () const
 
void changed ()
 
virtual void use_pixmap (Pixmap pix_id)
 
virtual Pixmap get_pixmap () const
 
virtual Logic prepare_pixmap ()
 
virtual void reset_pixmap ()
 
virtual void flush_pixmap ()
 
- Public Member Functions inherited from XDO
 XDO (const XDO &xdo)
 
 XDO (Display *display, ScreenNo screen, Window window)
 
 XDO (Display *display, Window window)
 
ColorPixel white () const
 
ColorPixel black () const
 
ColorPixel color (const char *szColorName) const
 
int get_win_width () const
 
int get_win_height () const
 
virtual Drawable true_wid () const
 
virtual void get_true_win_size (int &w, int &h) const
 
virtual void get_win_size (int &w, int &h) const
 
virtual void flush () const
 
- Public Member Functions inherited from Scaler
 Scaler (float v_left, float v_right)
 
int get_coord (float value) const
 
float get_value (int coord) const
 
Logic is_inside (float value) const
 
float get_left () const
 
float get_right () const
 
int get_size () const
 
int get_offset () const
 
int get_left_coord () const
 
int get_right_coord () const
 
float vpp () const
 
virtual void set_size (int size)
 
virtual void set_offset (int offset)
 
void zoom_in (float v1, float v2)
 
void zoom_out (float v1, float v2)
 

Protected Member Functions

void draw_ruler ()
 
void draw_labels ()
 
void compute_height ()
 
- Protected Member Functions inherited from XGEnv
void setup_font ()
 

Protected Attributes

int border
 
unsigned markFreq
 
float labelStep
 
- Protected Attributes inherited from XDR
int width
 
int height
 
int x_left
 
int y_top
 
int cs_mask
 
- Protected Attributes inherited from Scaler
float Vleft
 
float Vright
 
int vSize
 
int vOffset
 

Additional Inherited Members

- Public Attributes inherited from XGEnv
XFontStruct * fontInfo
 
GC gc
 
- Public Attributes inherited from XDO
Display * dpy
 
ScreenNo scrno
 
int depth
 
Window window_id
 
Pixmap pixmap_id
 

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