-
Notifications
You must be signed in to change notification settings - Fork 2
/
BkMaker.h
69 lines (57 loc) · 1.27 KB
/
BkMaker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef BKMAKER_H
#define BKMAKER_H
#include "CColorRef.h"
#include "CA210.h"
enum NitsDirect{ND_NoDefine = 0, ND_Pos, ND_Neg};
class BkMaker
{
//smart ptr
int* ptr_i;
int* cnt;
public:
const BOOL IsPtrToNull() const;
const int GetPtrCnt() const;
public:
BkMaker();
BkMaker(const BkMaker& bkN);
~BkMaker();
BkMaker& operator=(const BkMaker& sp);
//背景色
private:
ColorRef m_BkColor;
public:
const ColorRef _GetBkColor() const;
void _SetBkColor(const ColorRef&);
//Crosstalk的介面
protected:
ColorRef m_rectColor;
CRect m_centerRect;
public:
virtual void CT_SetRect(const CRect& _rect, const ColorRef& clr){ };
//Nits的介面
protected:
CWnd* m_pdlgcWnd;
Ca210* m_pCa210;
public:
virtual void NT_SetWnd(CWnd* cWnd){ };
virtual void NT_SetCa(Ca210* pCa){ };
protected:
NitsDirect m_NitsDirect;
int m_NitsLv; //參數
public:
//void TranScripter::forNits(Cartridge2& crtg)
virtual void NT_SetNitsLv(const int&){ };
virtual void NT_colorReviseByNits(ColorRef&){ };
//共用介面
public:
virtual void Draw(CPaintDC& dc);
};
inline const BOOL BkMaker::IsPtrToNull() const
{
return (cnt == 0) ? TRUE : FALSE ;
}
inline const int BkMaker::GetPtrCnt() const
{
return *cnt;
}
#endif