]> Shamusworld >> Repos - architektonas/blobdiff - src/base/pen.h
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / base / pen.h
index 526dadec7afbf1640eff2d7acb8c0f5142ef6b5e..a49c3e71c535972d58a99435959cc9e0cb5025d2 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __PEN_H__
 #define __PEN_H__
 
-#include "rs.h"
+#include "enums.h"
 #include "color.h"
 #include "flags.h"
 
  * @author James Hammons
  * @author Andrew Mustun
  */
-class RS_Pen: public RS_Flags
+class Pen: public Flags
 {
        public:
-               RS_Pen();
-               RS_Pen(const RS_Color & c, RS2::LineWidth w, RS2::LineType t);
-               RS_Pen(unsigned int f);
-               virtual ~RS_Pen();
+               Pen();
+               Pen(const Color & c, RS2::LineWidth w, RS2::LineType t);
+               Pen(unsigned int f);
+               virtual ~Pen();
 
                RS2::LineType getLineType() const;
                void setLineType(RS2::LineType t);
@@ -26,19 +26,19 @@ class RS_Pen: public RS_Flags
                void setWidth(RS2::LineWidth w);
                double getScreenWidth() const;
                void setScreenWidth(double w);
-               const RS_Color & getColor() const;
-               void setColor(const RS_Color & c);
+               const Color & getColor() const;
+               void setColor(const Color & c);
                bool isValid();
-               bool operator==(const RS_Pen & p) const;
-               bool operator!=(const RS_Pen & p) const;
+               bool operator==(const Pen & p) const;
+               bool operator!=(const Pen & p) const;
 
-               friend std::ostream & operator<<(std::ostream & os, const RS_Pen & p);
+               friend std::ostream & operator<<(std::ostream & os, const Pen & p);
 
        protected:
                RS2::LineType lineType;
                RS2::LineWidth width;
                double screenWidth;
-               RS_Color color;
+               Color color;
 };
 
 #endif