ARB
Classes | Macros | Typedefs | Enumerations | Functions | Variables
aw_device.hxx File Reference
#include <sized_cstr.h>
#include <aw_position.hxx>
#include <aw_font_limits.hxx>
#include <attributes.h>
#include <arbtools.h>
Include dependency graph for aw_device.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AW_zoomable
 
struct  AW_font_overlap
 
class  AW_clipable
 
class  AW_stylable
 
class  AW_click_cd
 
class  AW_device
 
class  FINAL_TYPE< SEQTYPE >
 xml element More...
 
class  AW_simple_device
 
class  AW_size_tracker
 
class  AW_device_size
 

Macros

#define AUTO_FLUSH(device)
 
#define AW_INT(x)   ((int)(((x)>=0.0) ? ((float)(x)+.5) : ((float)(x)-.5)))
 
#define DPI_SCREEN   80
 
#define DPI_PRINTER   1200
 

Typedefs

typedef bool(* TextOverlayCallback )(AW_device *device, int gc, const char *textBuffer, size_t textStart, size_t textLen, const AW::Position &pos, AW_CL cduser)
 

Enumerations

enum  AW_DEVICE_TYPE { AW_DEVICE_SCREEN = AW_SCREEN, AW_DEVICE_CLICK = AW_CLICK, AW_DEVICE_SIZE = AW_SIZE, AW_DEVICE_PRINTER = AW_PRINTER }
 
enum  {
  AW_FIXED = -1, AW_TIMES = 0, AW_TIMES_ITALIC = 1, AW_TIMES_BOLD = 2,
  AW_TIMES_BOLD_ITALIC = 3, AW_COURIER = 12, AW_COURIER_OBLIQUE = 13, AW_COURIER_BOLD = 14,
  AW_COURIER_BOLD_OBLIQUE = 15, AW_HELVETICA = 16, AW_HELVETICA_OBLIQUE = 17, AW_HELVETICA_BOLD = 18,
  AW_HELVETICA_BOLD_OBLIQUE = 19, AW_HELVETICA_NARROW = 20, AW_HELVETICA_NARROW_OBLIQUE = 21, AW_HELVETICA_NARROW_BOLD = 22,
  AW_HELVETICA_NARROW_BOLD_OBLIQUE = 23, AW_LUCIDA_SANS = 35, AW_LUCIDA_SANS_OBLIQUE = 36, AW_LUCIDA_SANS_BOLD = 37,
  AW_LUCIDA_SANS_BOLD_OBLIQUE = 38, AW_LUCIDA_SANS_TYPEWRITER = 39, AW_LUCIDA_SANS_TYPEWRITER_BOLD = 40, AW_SCREEN_MEDIUM = 41,
  AW_SCREEN_BOLD = 42, AW_CLEAN_MEDIUM = 43, AW_CLEAN_BOLD = 44, AW_TERMINAL_MEDIUM = 45,
  AW_TERMINAL_BOLD = 46, AW_NUM_FONTS = 68, AW_NUM_FONTS_XFIG = 35, AW_DEFAULT_NORMAL_FONT = AW_LUCIDA_SANS,
  AW_DEFAULT_BOLD_FONT = AW_LUCIDA_SANS_BOLD, AW_DEFAULT_FIXED_FONT = AW_LUCIDA_SANS_TYPEWRITER
}
 
enum  AW_cursor_type { AW_cursor_insert, AW_cursor_overwrite }
 
enum  AW_linestyle { AW_SOLID, AW_DASHED, AW_DOTTED }
 
enum  AW_function { AW_COPY, AW_XOR }
 

Functions

 MARK_NONFINAL_METHOD (AW_device, move_region,(AW_pos, AW_pos, AW_pos, AW_pos, AW_pos, AW_pos))
 
 MARK_NONFINAL_METHOD (AW_device, clear,(AW_bitset))
 
 MARK_NONFINAL_METHOD (AW_device, clear_part,(const AW::Rectangle &, AW_bitset))
 
 MARK_NONFINAL_METHOD (AW_device, flush,())
 

Variables

const AW_bitset AW_SCREEN = 1
 
const AW_bitset AW_CLICK = 2
 
const AW_bitset AW_CLICK_DROP = 4
 
const AW_bitset AW_SIZE = 8
 
const AW_bitset AW_SIZE_UNSCALED = 16
 
const AW_bitset AW_PRINTER = 32
 
const AW_bitset AW_PRINTER_EXT = 64
 
const AW_bitset AW_PRINTER_CLIP = 128
 
const AW_bitset AW_TRACK = 256
 
const AW_bitset AW_ALL_DEVICES = (AW_bitset)-1
 
const AW_bitset AW_ALL_DEVICES_SCALED = (AW_ALL_DEVICES & ~AW_SIZE_UNSCALED)
 
const AW_bitset AW_ALL_DEVICES_UNSCALED = (AW_ALL_DEVICES & ~AW_SIZE)
 

Macro Definition Documentation

#define AUTO_FLUSH (   device)

Definition at line 24 of file aw_device.hxx.

Referenced by AW_draw_string_on_screen().

#define AW_INT (   x)    ((int)(((x)>=0.0) ? ((float)(x)+.5) : ((float)(x)-.5)))

Definition at line 27 of file aw_device.hxx.

#define DPI_SCREEN   80

Definition at line 31 of file aw_device.hxx.

Referenced by awt_print_tree_check_size().

#define DPI_PRINTER   1200

Definition at line 32 of file aw_device.hxx.

Typedef Documentation

typedef bool(* TextOverlayCallback)(AW_device *device, int gc, const char *textBuffer, size_t textStart, size_t textLen, const AW::Position &pos, AW_CL cduser)

Definition at line 354 of file aw_device.hxx.

Enumeration Type Documentation

Enumerator
AW_DEVICE_SCREEN 
AW_DEVICE_CLICK 
AW_DEVICE_SIZE 
AW_DEVICE_PRINTER 

Definition at line 48 of file aw_device.hxx.

anonymous enum
Enumerator
AW_FIXED 
AW_TIMES 
AW_TIMES_ITALIC 
AW_TIMES_BOLD 
AW_TIMES_BOLD_ITALIC 
AW_COURIER 
AW_COURIER_OBLIQUE 
AW_COURIER_BOLD 
AW_COURIER_BOLD_OBLIQUE 
AW_HELVETICA 
AW_HELVETICA_OBLIQUE 
AW_HELVETICA_BOLD 
AW_HELVETICA_BOLD_OBLIQUE 
AW_HELVETICA_NARROW 
AW_HELVETICA_NARROW_OBLIQUE 
AW_HELVETICA_NARROW_BOLD 
AW_HELVETICA_NARROW_BOLD_OBLIQUE 
AW_LUCIDA_SANS 
AW_LUCIDA_SANS_OBLIQUE 
AW_LUCIDA_SANS_BOLD 
AW_LUCIDA_SANS_BOLD_OBLIQUE 
AW_LUCIDA_SANS_TYPEWRITER 
AW_LUCIDA_SANS_TYPEWRITER_BOLD 
AW_SCREEN_MEDIUM 
AW_SCREEN_BOLD 
AW_CLEAN_MEDIUM 
AW_CLEAN_BOLD 
AW_TERMINAL_MEDIUM 
AW_TERMINAL_BOLD 
AW_NUM_FONTS 
AW_NUM_FONTS_XFIG 
AW_DEFAULT_NORMAL_FONT 
AW_DEFAULT_BOLD_FONT 
AW_DEFAULT_FIXED_FONT 

Definition at line 55 of file aw_device.hxx.

Enumerator
AW_cursor_insert 
AW_cursor_overwrite 

Definition at line 97 of file aw_device.hxx.

Enumerator
AW_SOLID 
AW_DASHED 
AW_DOTTED 

Definition at line 276 of file aw_device.hxx.

Enumerator
AW_COPY 
AW_XOR 

Definition at line 283 of file aw_device.hxx.

Function Documentation

MARK_NONFINAL_METHOD ( AW_device  ,
move_region  ,
(AW_pos, AW_pos, AW_pos, AW_pos, AW_pos, AW_pos  
)
MARK_NONFINAL_METHOD ( AW_device  ,
clear  ,
(AW_bitset  
)
MARK_NONFINAL_METHOD ( AW_device  ,
clear_part  ,
(const AW::Rectangle &, AW_bitset  
)
MARK_NONFINAL_METHOD ( AW_device  ,
flush  ,
()   
)

Variable Documentation

const AW_bitset AW_SCREEN = 1
const AW_bitset AW_CLICK = 2

Definition at line 35 of file aw_device.hxx.

Referenced by input_cb(), input_event(), SAI_graphic::paint(), and paintProbeInfo().

const AW_bitset AW_CLICK_DROP = 4

Definition at line 36 of file aw_device.hxx.

Referenced by motion_event().

const AW_bitset AW_SIZE = 8
const AW_bitset AW_SIZE_UNSCALED = 16
const AW_bitset AW_PRINTER = 32
const AW_bitset AW_PRINTER_EXT = 64

Definition at line 40 of file aw_device.hxx.

Referenced by canvas_to_xfig(), get_drawsize(), and SEC_root::paint().

const AW_bitset AW_PRINTER_CLIP = 128

Definition at line 41 of file aw_device.hxx.

Referenced by canvas_to_xfig().

const AW_bitset AW_TRACK = 256

Definition at line 42 of file aw_device.hxx.

const AW_bitset AW_ALL_DEVICES = (AW_bitset)-1
const AW_bitset AW_ALL_DEVICES_SCALED = (AW_ALL_DEVICES & ~AW_SIZE_UNSCALED)

Definition at line 45 of file aw_device.hxx.

Referenced by clear_and_update_rectangle(), and SEC_root::paintAnnotation().

const AW_bitset AW_ALL_DEVICES_UNSCALED = (AW_ALL_DEVICES & ~AW_SIZE)

Definition at line 46 of file aw_device.hxx.

Referenced by SEC_root::paint(), and AW_xfig::print().