ARB
Public Member Functions | Protected Member Functions | List of all members
AW_clipable Class Reference

#include <aw_device.hxx>

Inheritance diagram for AW_clipable:
Inheritance graph
[legend]

Public Member Functions

 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 Member Functions

int compoutcode (AW_pos xx, AW_pos yy) const
 
void set_cliprect (const AW_screen_area &rect)
 

Detailed Description

Definition at line 175 of file aw_device.hxx.

Constructor & Destructor Documentation

AW_clipable::AW_clipable ( const AW_screen_area screen)
inline

Definition at line 202 of file aw_device.hxx.

References AW_screen_area::clear(), and set_font_overlap().

virtual AW_clipable::~AW_clipable ( )
inlinevirtual

Definition at line 208 of file aw_device.hxx.

Member Function Documentation

int AW_clipable::compoutcode ( AW_pos  xx,
AW_pos  yy 
) const
inlineprotected
void AW_clipable::set_cliprect ( const AW_screen_area rect)
inlineprotected

Definition at line 198 of file aw_device.hxx.

Referenced by AW_device::pop_clip_scale(), and AW_device::reset().

bool AW_clipable::is_below_clip ( double  ypos) const
inline

Definition at line 210 of file aw_device.hxx.

References AW_screen_area::b.

Referenced by is_outside_clip().

bool AW_clipable::is_above_clip ( double  ypos) const
inline

Definition at line 211 of file aw_device.hxx.

References AW_screen_area::t.

Referenced by is_outside_clip().

bool AW_clipable::is_leftof_clip ( double  xpos) const
inline

Definition at line 212 of file aw_device.hxx.

References AW_screen_area::l.

Referenced by is_outside_clip().

bool AW_clipable::is_rightof_clip ( double  xpos) const
inline

Definition at line 213 of file aw_device.hxx.

References AW_screen_area::r.

Referenced by is_outside_clip().

bool AW_clipable::is_outside_clip ( AW::Position  pos) const
inline
bool AW_clipable::is_outside_clip ( AW::Rectangle  rect) const
inline
bool AW_clipable::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 
)

Definition at line 149 of file AW_clipable.cxx.

References y.

bool AW_clipable::clip ( const AW::LineVector line,
AW::LineVector clippedLine 
)
bool AW_clipable::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 
)

Definition at line 25 of file AW_clipable.cxx.

References aw_assert, and clip_in_range().

bool AW_clipable::box_clip ( const AW::Rectangle rect,
AW::Rectangle clippedRect 
)
bool AW_clipable::box_clip ( int  npos,
const AW::Position pos,
int nclippedPos,
AW::Position *&  clippedPos 
)
bool AW_clipable::force_into_clipbox ( const AW::Position pos,
AW::Position forcedPos 
)
void AW_clipable::set_top_clip_border ( int  top,
bool  allow_oversize = false 
)
void AW_clipable::set_bottom_clip_border ( int  bottom,
bool  allow_oversize = false 
)
void AW_clipable::set_bottom_clip_margin ( int  bottom,
bool  allow_oversize = false 
)

Definition at line 300 of file AW_clipable.cxx.

void AW_clipable::set_left_clip_border ( int  left,
bool  allow_oversize = false 
)
void AW_clipable::set_right_clip_border ( int  right,
bool  allow_oversize = false 
)
const AW_screen_area& AW_clipable::get_cliprect ( ) const
inline
void AW_clipable::set_clipall ( )
inline

Definition at line 239 of file aw_device.hxx.

bool AW_clipable::completely_clipped ( ) const
inline
bool AW_clipable::allow_top_font_overlap ( ) const
inline

Definition at line 247 of file aw_device.hxx.

References AW_font_overlap::top.

Referenced by AW_device::text_overlay().

bool AW_clipable::allow_bottom_font_overlap ( ) const
inline

Definition at line 248 of file aw_device.hxx.

References AW_font_overlap::bottom.

Referenced by AW_device::text_overlay().

bool AW_clipable::allow_left_font_overlap ( ) const
inline

Definition at line 249 of file aw_device.hxx.

References AW_font_overlap::left.

Referenced by AW_device::text_overlay().

bool AW_clipable::allow_right_font_overlap ( ) const
inline

Definition at line 250 of file aw_device.hxx.

References AW_font_overlap::right.

Referenced by AW_device::text_overlay().

const AW_font_overlap& AW_clipable::get_font_overlap ( ) const
inline

Definition at line 251 of file aw_device.hxx.

Referenced by AW_device::push_clip_scale().

void AW_clipable::set_top_font_overlap ( bool  allow)
inline

Definition at line 253 of file aw_device.hxx.

References AW_font_overlap::top.

Referenced by move_and_update_rectangle().

void AW_clipable::set_bottom_font_overlap ( bool  allow)
inline

Definition at line 254 of file aw_device.hxx.

References AW_font_overlap::bottom.

Referenced by move_and_update_rectangle().

void AW_clipable::set_left_font_overlap ( bool  allow)
inline

Definition at line 255 of file aw_device.hxx.

References AW_font_overlap::left.

Referenced by move_and_update_rectangle().

void AW_clipable::set_right_font_overlap ( bool  allow)
inline

Definition at line 256 of file aw_device.hxx.

References AW_font_overlap::right.

Referenced by move_and_update_rectangle().

void AW_clipable::set_vertical_font_overlap ( bool  allow)
inline

Definition at line 258 of file aw_device.hxx.

References AW_font_overlap::bottom, and AW_font_overlap::top.

Referenced by ED4_text_terminal::draw(), and set_font_overlap().

void AW_clipable::set_horizontal_font_overlap ( bool  allow)
inline

Definition at line 259 of file aw_device.hxx.

References AW_font_overlap::left, and AW_font_overlap::right.

Referenced by set_font_overlap().

void AW_clipable::set_font_overlap ( bool  allow)
inline
void AW_clipable::set_font_overlap ( const AW_font_overlap fo)
inline

Definition at line 261 of file aw_device.hxx.

void AW_clipable::reduce_top_clip_border ( int  top)

Definition at line 287 of file AW_clipable.cxx.

void AW_clipable::reduce_bottom_clip_border ( int  bottom)

Definition at line 290 of file AW_clipable.cxx.

void AW_clipable::reduce_left_clip_border ( int  left)

Definition at line 293 of file AW_clipable.cxx.

void AW_clipable::reduce_right_clip_border ( int  right)

Definition at line 296 of file AW_clipable.cxx.

int AW_clipable::reduceClipBorders ( int  top,
int  bottom,
int  left,
int  right 
)

Definition at line 256 of file AW_clipable.cxx.

Referenced by ED4_base::adjust_clipping_rectangle().


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