ARB
Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
AW_device Class Referenceabstract

#include <aw_device.hxx>

Inheritance diagram for AW_device:
Inheritance graph
[legend]
Collaboration diagram for AW_device:
Collaboration graph
[legend]

Public Member Functions

 AW_device (class AW_common *common_)
 
virtual ~AW_device ()
 
const AW_click_cdget_click_cd () const
 
AW_bitset get_filter () const
 
void reset ()
 
const AW_screen_areaget_area_size () const
 
AW::Rectangle get_rtransformed_cliprect () const
 
void set_filter (AW_bitset filteri)
 
void push_clip_scale ()
 
void pop_clip_scale ()
 
virtual AW_DEVICE_TYPE type ()=0
 
bool ready_to_draw (int gc)
 
bool line (int gc, const AW::LineVector &Line, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool line (int gc, const AW::Position &pos1, const AW::Position &pos2, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool line (int gc, AW_pos x0, AW_pos y0, AW_pos x1, AW_pos y1, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool text (int gc, const SizedCstr &cstr, const AW::Position &pos, AW_pos alignment=0.0, AW_bitset filteri=AW_ALL_DEVICES_UNSCALED)
 
bool text (int gc, const char *str, const AW::Position &pos, AW_pos alignment=0.0, AW_bitset filteri=AW_ALL_DEVICES_UNSCALED)
 
bool text (int gc, const char *str, AW_pos x, AW_pos y, AW_pos alignment=0.0, AW_bitset filteri=AW_ALL_DEVICES_UNSCALED)
 
bool invisible (const AW::Position &pos, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool box (int gc, AW::FillStyle filled, const AW::Rectangle &rect, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool box (int gc, AW::FillStyle filled, const AW::Position &pos, const AW::Vector &size, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool box (int gc, AW::FillStyle filled, AW_pos x0, AW_pos y0, AW_pos width, AW_pos height, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool circle (int gc, AW::FillStyle filled, const AW::Position &center, const AW::Vector &radius, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool circle (int gc, AW::FillStyle filled, AW_pos x0, AW_pos y0, AW_pos xradius, AW_pos yradius, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool circle (int gc, AW::FillStyle filled, const AW::Rectangle &rect, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool arc (int gc, AW::FillStyle filled, AW_pos x0, AW_pos y0, AW_pos xradius, AW_pos yradius, int start_degrees, int arc_degrees, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool arc (int gc, AW::FillStyle filled, const AW::Position &pos, const AW::Vector &radius, int start_degrees, int arc_degrees, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool polygon (int gc, AW::FillStyle filled, int npoints, const AW_pos *points, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool polygon (int gc, AW::FillStyle filled, int npos, const AW::Position *pos, AW_bitset filteri=AW_ALL_DEVICES_SCALED)
 
bool text_overlay (int gc, const SizedCstr &cstr, const AW::Position &pos, AW_pos alignment, AW_bitset filteri, TextOverlayCallback toc, AW_CL cduser=0)
 
virtual void clear (AW_bitset filteri)
 
virtual void clear_part (const AW::Rectangle &rect, AW_bitset filteri)
 
void clear_part (AW_pos x, AW_pos y, AW_pos width, AW_pos height, AW_bitset filteri)
 
virtual void move_region (AW_pos src_x, AW_pos src_y, AW_pos width, AW_pos height, AW_pos dest_x, AW_pos dest_y)
 
virtual void fast ()
 
virtual void slow ()
 
virtual void flush ()
 
- Public Member Functions inherited from AW_zoomable
 AW_zoomable ()
 
virtual ~AW_zoomable ()
 
void zoom (AW_pos scale)
 
AW_pos get_scale () const
 
AW_pos get_unscale () const
 
AW::Vector get_offset () const
 
void rotate (AW_pos angle)
 
void set_offset (const AW::Vector &off)
 
void shift (const AW::Vector &doff)
 
void reset ()
 
double transform_size (const double &size) const
 
double rtransform_size (const double &size) const
 
double rtransform_pixelsize (int pixelsize) const
 
AW::Vector transform (const AW::Vector &vec) const
 
AW::Vector rtransform (const AW::Vector &vec) const
 
AW::Position transform (const AW::Position &pos) const
 
AW::Position rtransform (const AW::Position &pos) const
 
AW::LineVector transform (const AW::LineVector &lvec) const
 
AW::LineVector rtransform (const AW::LineVector &lvec) const
 
AW::Rectangle transform (const AW::Rectangle &rect) const
 
AW::Rectangle rtransform (const AW::Rectangle &rect) const
 
void transform (AW_pos x, AW_pos y, AW_pos &xout, AW_pos &yout) const
 
void rtransform (AW_pos x, AW_pos y, AW_pos &xout, AW_pos &yout) const
 
- Public Member Functions inherited from AW_stylable
 AW_stylable (AW_common *common_)
 
virtual ~AW_stylable ()
 
AW_commonget_common () const
 
void new_gc (int gc)
 
void set_grey_level (int gc, AW_grey_level grey_level)
 
AW_grey_level get_grey_level (int gc)
 
void set_font (int gc, AW_font fontnr, int size, int *found_size)
 
void set_line_attributes (int gc, short width, AW_linestyle style)
 
void set_function (int gc, AW_function function)
 
void establish_default (int gc)
 
void set_foreground_color (int gc, AW_color_idx color)
 
int get_string_size (int gc, long textlen) const
 
int get_string_size (int gc, const SizedCstr &cstr) const
 
const AW_font_limitsget_font_limits (int gc, char c) const
 
int get_available_fontsizes (int gc, AW_font font_nr, int *available_sizes)
 
void reset_style ()
 
- Public Member Functions inherited from AW_clipable
 AW_clipable (const AW_screen_area &screen)
 
virtual ~AW_clipable ()
 
bool is_below_clip (double ypos) const
 
bool is_above_clip (double ypos) const
 
bool is_leftof_clip (double xpos) const
 
bool is_rightof_clip (double xpos) const
 
bool is_outside_clip (AW::Position pos) const
 
bool is_outside_clip (AW::Rectangle rect) const
 
bool clip (AW_pos x0, AW_pos y0, AW_pos x1, AW_pos y1, AW_pos &x0out, AW_pos &y0out, AW_pos &x1out, AW_pos &y1out)
 
bool clip (const AW::LineVector &line, AW::LineVector &clippedLine)
 
bool box_clip (AW_pos x0, AW_pos y0, AW_pos x1, AW_pos y1, AW_pos &x0out, AW_pos &y0out, AW_pos &x1out, AW_pos &y1out)
 
bool box_clip (const AW::Rectangle &rect, AW::Rectangle &clippedRect)
 
bool box_clip (int npos, const AW::Position *pos, int &nclippedPos, AW::Position *&clippedPos)
 
bool force_into_clipbox (const AW::Position &pos, AW::Position &forcedPos)
 
void set_top_clip_border (int top, bool allow_oversize=false)
 
void set_bottom_clip_border (int bottom, bool allow_oversize=false)
 
void set_bottom_clip_margin (int bottom, bool allow_oversize=false)
 
void set_left_clip_border (int left, bool allow_oversize=false)
 
void set_right_clip_border (int right, bool allow_oversize=false)
 
const AW_screen_areaget_cliprect () const
 
void set_clipall ()
 
bool completely_clipped () const
 
bool allow_top_font_overlap () const
 
bool allow_bottom_font_overlap () const
 
bool allow_left_font_overlap () const
 
bool allow_right_font_overlap () const
 
const AW_font_overlapget_font_overlap () const
 
void set_top_font_overlap (bool allow)
 
void set_bottom_font_overlap (bool allow)
 
void set_left_font_overlap (bool allow)
 
void set_right_font_overlap (bool allow)
 
void set_vertical_font_overlap (bool allow)
 
void set_horizontal_font_overlap (bool allow)
 
void set_font_overlap (bool allow)
 
void set_font_overlap (const AW_font_overlap &fo)
 
void reduce_top_clip_border (int top)
 
void reduce_bottom_clip_border (int bottom)
 
void reduce_left_clip_border (int left)
 
void reduce_right_clip_border (int right)
 
int reduceClipBorders (int top, int bottom, int left, int right)
 

Protected Types

enum  Fill_Style { FS_EMPTY, FS_GREY, FS_SOLID }
 

Protected Member Functions

bool generic_box (int gc, const AW::Rectangle &rect, AW_bitset filteri)
 
bool generic_circle (int gc, const AW::Position &center, const AW::Vector &radius, AW_bitset filteri)
 
bool generic_polygon (int gc, int npos, const AW::Position *pos, AW_bitset filteri)
 
bool generic_invisible (const AW::Position &pos, AW_bitset filteri)
 
- Protected Member Functions inherited from AW_clipable
int compoutcode (AW_pos xx, AW_pos yy) const
 
void set_cliprect (const AW_screen_area &rect)
 

Static Protected Member Functions

static const AW_screen_areaget_common_screen (const AW_common *common_)
 

Protected Attributes

AW_clip_scale_stackclip_scale_stack
 
const AW_click_cdclick_cd
 
AW_bitset filter
 

Friends

class AW_click_cd
 

Detailed Description

Definition at line 356 of file aw_device.hxx.

Member Enumeration Documentation

enum AW_device::Fill_Style
protected
Enumerator
FS_EMPTY 
FS_GREY 
FS_SOLID 

Definition at line 368 of file aw_device.hxx.

Constructor & Destructor Documentation

AW_device::AW_device ( class AW_common common_)
inline

Definition at line 373 of file aw_device.hxx.

virtual AW_device::~AW_device ( )
inlinevirtual

Definition at line 380 of file aw_device.hxx.

Member Function Documentation

const AW_screen_area & AW_device::get_common_screen ( const AW_common common_)
staticprotected

Definition at line 298 of file AW_device.cxx.

References AW_common::get_screen().

const AW_click_cd* AW_device::get_click_cd ( ) const
inline

Definition at line 382 of file aw_device.hxx.

References click_cd.

Referenced by AWT_graphic_tree::draw_branch_line(), and valid_cb_params().

AW_bitset AW_device::get_filter ( ) const
inline

Definition at line 383 of file aw_device.hxx.

References filter.

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

void AW_device::reset ( )
const AW_screen_area & AW_device::get_area_size ( ) const
AW::Rectangle AW_device::get_rtransformed_cliprect ( ) const
inline
void AW_device::set_filter ( AW_bitset  filteri)
void AW_device::push_clip_scale ( )
void AW_device::pop_clip_scale ( )
virtual AW_DEVICE_TYPE AW_device::type ( )
pure virtual
bool AW_device::ready_to_draw ( int  gc)

Definition at line 327 of file AW_device.cxx.

References AW_common::gc_mapable(), and AW_stylable::get_common().

bool AW_device::generic_box ( int  gc,
const AW::Rectangle rect,
AW_bitset  filteri 
)
protected
bool AW_device::generic_circle ( int  gc,
const AW::Position center,
const AW::Vector radius,
AW_bitset  filteri 
)
inlineprotected

Definition at line 421 of file aw_device.hxx.

References generic_box().

bool AW_device::generic_polygon ( int  gc,
int  npos,
const AW::Position pos,
AW_bitset  filteri 
)
protected

Definition at line 251 of file AW_device.cxx.

References filter, and line().

bool AW_device::generic_invisible ( const AW::Position pos,
AW_bitset  filteri 
)
protected

Definition at line 294 of file AW_device.cxx.

References filter, AW_clipable::is_outside_clip(), and AW_zoomable::transform().

bool AW_device::line ( int  gc,
const AW::LineVector Line,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline
bool AW_device::line ( int  gc,
const AW::Position pos1,
const AW::Position pos2,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline

Definition at line 433 of file aw_device.hxx.

bool AW_device::line ( int  gc,
AW_pos  x0,
AW_pos  y0,
AW_pos  x1,
AW_pos  y1,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline

Definition at line 436 of file aw_device.hxx.

bool AW_device::text ( int  gc,
const SizedCstr cstr,
const AW::Position pos,
AW_pos  alignment = 0.0,
AW_bitset  filteri = AW_ALL_DEVICES_UNSCALED 
)
inline
bool AW_device::text ( int  gc,
const char str,
const AW::Position pos,
AW_pos  alignment = 0.0,
AW_bitset  filteri = AW_ALL_DEVICES_UNSCALED 
)
inline

Definition at line 448 of file aw_device.hxx.

bool AW_device::text ( int  gc,
const char str,
AW_pos  x,
AW_pos  y,
AW_pos  alignment = 0.0,
AW_bitset  filteri = AW_ALL_DEVICES_UNSCALED 
)
inline

Definition at line 457 of file aw_device.hxx.

bool AW_device::invisible ( const AW::Position pos,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline

Definition at line 467 of file aw_device.hxx.

bool AW_device::box ( int  gc,
AW::FillStyle  filled,
const AW::Rectangle rect,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline
bool AW_device::box ( int  gc,
AW::FillStyle  filled,
const AW::Position pos,
const AW::Vector size,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline

Definition at line 474 of file aw_device.hxx.

bool AW_device::box ( int  gc,
AW::FillStyle  filled,
AW_pos  x0,
AW_pos  y0,
AW_pos  width,
AW_pos  height,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline

Definition at line 477 of file aw_device.hxx.

bool AW_device::circle ( int  gc,
AW::FillStyle  filled,
const AW::Position center,
const AW::Vector radius,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline
bool AW_device::circle ( int  gc,
AW::FillStyle  filled,
AW_pos  x0,
AW_pos  y0,
AW_pos  xradius,
AW_pos  yradius,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline

Definition at line 484 of file aw_device.hxx.

bool AW_device::circle ( int  gc,
AW::FillStyle  filled,
const AW::Rectangle rect,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline
bool AW_device::arc ( int  gc,
AW::FillStyle  filled,
AW_pos  x0,
AW_pos  y0,
AW_pos  xradius,
AW_pos  yradius,
int  start_degrees,
int  arc_degrees,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline

Definition at line 493 of file aw_device.hxx.

bool AW_device::arc ( int  gc,
AW::FillStyle  filled,
const AW::Position pos,
const AW::Vector radius,
int  start_degrees,
int  arc_degrees,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline

Definition at line 496 of file aw_device.hxx.

bool AW_device::polygon ( int  gc,
AW::FillStyle  filled,
int  npoints,
const AW_pos points,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline

Definition at line 500 of file aw_device.hxx.

References result, AW::Position::setx(), and AW::Position::sety().

Referenced by AWT_graphic_tree::diamond().

bool AW_device::polygon ( int  gc,
AW::FillStyle  filled,
int  npos,
const AW::Position pos,
AW_bitset  filteri = AW_ALL_DEVICES_SCALED 
)
inline

Definition at line 510 of file aw_device.hxx.

bool AW_device::text_overlay ( int  gc,
const SizedCstr cstr,
const AW::Position pos,
AW_pos  alignment,
AW_bitset  filteri,
TextOverlayCallback  toc,
AW_CL  cduser = 0 
)
void AW_device::clear ( AW_bitset  filteri)
virtual
void AW_device::clear_part ( const AW::Rectangle rect,
AW_bitset  filteri 
)
virtual
void AW_device::clear_part ( AW_pos  x,
AW_pos  y,
AW_pos  width,
AW_pos  height,
AW_bitset  filteri 
)
inline

Definition at line 520 of file aw_device.hxx.

References clear_part().

void AW_device::move_region ( AW_pos  src_x,
AW_pos  src_y,
AW_pos  width,
AW_pos  height,
AW_pos  dest_x,
AW_pos  dest_y 
)
virtual
void AW_device::fast ( )
virtual

Definition at line 325 of file AW_device.cxx.

void AW_device::slow ( )
virtual

Definition at line 326 of file AW_device.cxx.

void AW_device::flush ( )
virtual

Reimplemented in FINAL_TYPE< SEQTYPE >.

Definition at line 268 of file AW_device.cxx.

Referenced by ED4_CursorShape::draw().

Friends And Related Function Documentation

friend class AW_click_cd
friend

Definition at line 364 of file aw_device.hxx.

Member Data Documentation

AW_clip_scale_stack* AW_device::clip_scale_stack
protected

Definition at line 361 of file aw_device.hxx.

Referenced by pop_clip_scale(), push_clip_scale(), and reset().

const AW_click_cd* AW_device::click_cd
protected
AW_bitset AW_device::filter
protected

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