displaygdiobjects.h
来自「The application wizard has created this 」· C头文件 代码 · 共 51 行
H
51 行
#ifndef _DISPLAY_GDI_OBJECTS_H
#define _DISPLAY_GDI_OBJECTS_H
#include "SoccerDoctor.h"
class CDisplayGDIObjects {
public:
CDisplayGDIObjects(void);
~CDisplayGDIObjects(void);
// Brushes
CBrush* getBlackBrush() const { return (CBrush*)&_brushBlack; }
CBrush* getRedBrush() const { return (CBrush*)&_brushRed; }
CBrush* getWhiteBrush() const { return (CBrush*)&_brushWhite; }
CBrush* getPinkBrush() const { return (CBrush*)&_brushPink; }
CBrush* getYellowBrush() const { return (CBrush*)&_brushYellow; }
CBrush* getBlueBrush() const { return (CBrush*)&_brushBlue; }
CBrush* getPurpleBrush() const { return (CBrush*)&_brushPurple; }
// Pens
CPen* getBlackPen() const { return (CPen*)&_penBlack; }
CPen* getWhitePen() const { return (CPen*)&_penWhite; }
CPen* getRedPen() const { return (CPen*)&_penRed; }
CPen* getPinkPen() const { return (CPen*)&_penPink; }
// Fonts
CFont* getHeadingFont() const { return (CFont*)&_headingFont; }
CFont* getScoreFont() const { return (CFont*)&_scoreFont; }
CFont* getPlayerFont() const { return (CFont*)&_playerFont; }
CFont* getTimeFont() const { return (CFont*)&_timeFont; }
void ChangeFontSize(int nUnitSize);
private:
// create and delete GDI objects
void CreateGDIObjects();
void DeleteGDIObjects();
CBrush _brushBlack;
CBrush _brushRed;
CBrush _brushWhite;
CBrush _brushPink;
CBrush _brushYellow;
CBrush _brushBlue;
CBrush _brushPurple;
CPen _penBlack;
CPen _penRed;
CPen _penWhite;
CPen _penPink;
CFont _headingFont;
CFont _scoreFont;
CFont _playerFont;
CFont _timeFont;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?