My Project
Client
trunk
ParaEngineClient
Engine
Obsoleted
ParaGDI
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
}
ParaEngine::TextureEntity
Which DXT Compression to Use? Obviously, there are some trade-offs between the different formats whic...
Definition:
TextureEntity.h:29
ParaEngine::CGDIPen::GetColor
Color GetColor() const
Get the color of this pen.
Definition:
GDIPen.cpp:96
ParaEngine
different physics engine has different winding order.
Definition:
EventBinding.h:32
ParaEngine::CGDIPen::GetScaleType
int GetScaleType() const
Get the pen's scale type.
Definition:
GDIPen.h:50
ParaEngine::CGDIPen::GetEndCap
int GetEndCap() const
Get the line end cap type.
Definition:
GDIPen.h:44
ParaEngine::CGDIPen::GetBrush
CGDIBrush * GetBrush() const
Get the CGDIBrush object that is currently set for this CGDIPen object.
Definition:
GDIPen.cpp:101
ParaEngine::CGDIPen::IsTransparent
bool IsTransparent() const
if it is fully transparent.
Definition:
GDIPen.cpp:86
ParaEngine::CGDIPen::GetStartCap
int GetStartCap() const
Get the line start cap type.
Definition:
GDIPen.h:39
ParaEngine::CGDIPen::GetWidth
float GetWidth() const
Get the width of this pen, in pixels by default.
Definition:
GDIPen.h:33
ParaEngine::CGDIBrush
CGDIBrush is an abstract base class that defines a CGDIBrush object.
Definition:
GDIBrush.h:9
ParaEngine::CGDIPen
a pen object in the GDI class
Definition:
GDIPen.h:9
ParaEngine::Color
Definition:
ParaColor.h:275
Generated by
1.8.12