Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Rect Class Reference

#include <Rect.h>

List of all members.

Public Member Functions

 Rect (Point s=0, Point e=0, QColor c="black", int w=1, bool f=true, QColor fi="white")
QStringList Info ()
void save (QTextStream *t)
void open (QTextStream *t, int version)
Point startPoint ()
Point endPoint ()
void setStartPoint (double x, double y)
void setEndPoint (double x, double y)
int Width ()
void setWidth (int w)
QColor Color ()
void setColor (QColor c)
void setColor (QString c)
QColor FillColor ()
void setFillColor (QColor c)
void setFillColor (QString c)
bool isFilled ()
void setFilled (bool f=true)
void draw (QPainter *p, int w, int h)
bool inside (int x, int y, int w, int h)

Protected Attributes

Point start
Point end
QColor color
int width
bool filled
QColor fill


Constructor & Destructor Documentation

Rect::Rect (  Point  s = 0,
Point  e = 0,
QColor  c = "black",
int  w = 1,
bool  f = true,
QColor  fi = "white"
) 
 


Member Function Documentation

QColor Rect::Color (   )  [inline]
 

void Rect::draw (  QPainter *  p,
int  w,
int  h
) 
 

Point Rect::endPoint (   )  [inline]
 

QColor Rect::FillColor (   )  [inline]
 

QStringList Rect::Info (   ) 
 

bool Rect::inside (  int  x,
int  y,
int  w,
int  h
) 
 

bool Rect::isFilled (   )  [inline]
 

void Rect::open (  QTextStream *  t,
int  version
) 
 

void Rect::save (  QTextStream *  t  ) 
 

void Rect::setColor (  QString  c  )  [inline]
 

void Rect::setColor (  QColor  c  )  [inline]
 

void Rect::setEndPoint (  double  x,
double  y
)  [inline]
 

void Rect::setFillColor (  QString  c  )  [inline]
 

void Rect::setFillColor (  QColor  c  )  [inline]
 

void Rect::setFilled (  bool  f = true  )  [inline]
 

void Rect::setStartPoint (  double  x,
double  y
)  [inline]
 

void Rect::setWidth (  int  w  )  [inline]
 

Point Rect::startPoint (   )  [inline]
 

int Rect::Width (   )  [inline]
 


Member Data Documentation

QColor Rect::color [protected]
 

Point Rect::end [protected]
 

QColor Rect::fill [protected]
 

bool Rect::filled [protected]
 

Point Rect::start [protected]
 

int Rect::width [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Aug 19 21:34:46 2005 for LabPlot by doxygen 1.3.6