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

📄 vbrush.h

📁 源码PonyProg2000-2.07a.tar.gz
💻 H
字号:
//===============================================================// vbrush.h: brush class header for filling - Windows//// Copyright (C) 1995,1996  Bruce E. Wampler//// This file is part of the V C++ GUI Framework, and is covered// under the terms of the GNU Library General Public License,// Version 2. This library has NO WARRANTY. See the source file// vapp.cxx for more complete information about license terms.//===============================================================#ifndef VBRUSH_H#define VBRUSH_H#include <v/v_defs.h>		// Basic defs#include <v/vcolor.h>// Use Windows for brush styles, map to something reasonable for X    class V_EXPORT vBrush      {      public:		//---------------------------------------- public	vBrush(unsigned int r = 0, unsigned int g = 0, unsigned int b = 0,	      int style = vSolid, int fillMode = vAlternate);	vBrush(const vBrush& p);	vBrush& operator =(const vBrush& p);	int operator ==(const vBrush& b2) VCONST	  { return (brushColor == b2.brushColor && brushFillMode == b2.brushFillMode &&		brushStyle == b2.brushStyle); }	int operator !=(const vBrush& b2) VCONST	  { return (brushColor != b2.brushColor || brushFillMode != b2.brushFillMode ||		brushStyle != b2.brushStyle); }	~vBrush();	void SetStyle(int style);	int GetStyle() VCONST { return brushStyle; }	void SetColor(vColor c);	void SetColor(unsigned int r, unsigned int g, unsigned int b);	vColor GetColor() VCONST { return brushColor; }	void SetFillMode(int fillMode);	int GetFillMode() VCONST { return brushFillMode; }	HBRUSH GetHBRUSH() VCONST;      protected:	//--------------------------------------- protected      private:		//--------------------------------------- private	int brushFillMode;	int brushStyle;	VMUTABLE HBRUSH _hbrush;	VMUTABLE int _created;        vColor brushColor;      };#endif

⌨️ 快捷键说明

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