My Project
GDIPen.h
1 #pragma once
2 #include "GDIBrush.h"
3 namespace ParaEngine
4 {
5  struct TextureEntity;
9  class CGDIPen
10  {
11  public:
12  CGDIPen();
13  CGDIPen(const CGDIBrush &brush,float width=1.0);
14  CGDIPen(Color color, float width=1.0);
15  CGDIPen(TextureEntity *pTexture, float width=1.0);
19  CGDIBrush* GetBrush() const;
20  CGDIPen* Clone()const ;
24  Color GetColor()const;
25  void SetColor(const Color &color);
26 
28  bool IsTransparent() const;
29 
33  float GetWidth()const{return m_fWidth;};
34  void SetWidth(float width){m_fWidth=width;};
35 
39  int GetStartCap( )const{return m_eLineStartCap;}
40  void SetStartCap(int linecap){m_eLineStartCap=linecap;}
44  int GetEndCap( )const{return m_eLineEndCap;}
45  void SetEndCap(int linecap){m_eLineEndCap=linecap;}
46 
50  int GetScaleType()const {return m_eScale;}
51  void SetScaleType(int scaletype){m_eScale=scaletype;}
52 
53  ~CGDIPen();
54  static CGDIPen &GetDefaultPen();
55  CGDIPen &operator =(const CGDIPen &pen);
56  bool operator ==(const CGDIPen &pen);
57  protected:
58  Color m_color;
59  float m_fWidth;
60  CGDIBrush m_brush;
61  int m_eLineStartCap;
62  int m_eLineEndCap;
63  int m_eScale;
64  };
65 }
Which DXT Compression to Use? Obviously, there are some trade-offs between the different formats whic...
Definition: TextureEntity.h:29
Color GetColor() const
Get the color of this pen.
Definition: GDIPen.cpp:96
different physics engine has different winding order.
Definition: EventBinding.h:32
int GetScaleType() const
Get the pen's scale type.
Definition: GDIPen.h:50
int GetEndCap() const
Get the line end cap type.
Definition: GDIPen.h:44
CGDIBrush * GetBrush() const
Get the CGDIBrush object that is currently set for this CGDIPen object.
Definition: GDIPen.cpp:101
bool IsTransparent() const
if it is fully transparent.
Definition: GDIPen.cpp:86
int GetStartCap() const
Get the line start cap type.
Definition: GDIPen.h:39
float GetWidth() const
Get the width of this pen, in pixels by default.
Definition: GDIPen.h:33
CGDIBrush is an abstract base class that defines a CGDIBrush object.
Definition: GDIBrush.h:9
a pen object in the GDI class
Definition: GDIPen.h:9
Definition: ParaColor.h:275