⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mgcolor.h

📁 monqueror一个很具有参考价值的源玛
💻 H
字号:
#ifndef		_MGCOLOR_H_#define		_MGCOLOR_H_#define		COLOR_NAME_LEN	20class MGColor{public:	MGColor();#if( _CURRENT_PLATFORM == _PLATFORM_MINIGUI )	MGColor( gal_pixel, const char* name );#endif	MGColor( const char* p );	MGColor( int r, int g, int b );	~MGColor();		MGColor& operator=( const MGColor& c );	bool operator==( const MGColor& c ) const;	bool operator!=( const MGColor& c ) const;	bool isValid() const;	int red() const;	int green() const;	int blue() const;	MGString name() const;	void setRgb (int r, int g, int b );#if( _CURRENT_PLATFORM == _PLATFORM_MINIGUI )	inline void setPixel (gal_pixel pixel) {pixVal = pixel;};    inline gal_pixel getPixel () const {return pixVal;}	static gal_pixel Rgb2Pixel ( const HDC&, const MGColor& c, bool force = false );#endif	// dataprotected:	char m_name[COLOR_NAME_LEN];	friend class MGPainter;#if( _CURRENT_PLATFORM == _PLATFORM_MINIGUI )	RGB rgbVal;	gal_pixel pixVal;#endif};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -