paletteg.h

来自「很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.」· C头文件 代码 · 共 50 行

H
50
字号
/////////////////////////////////////////////////////////////////////////////// Name:        wx/generic/paletteg.h// Purpose:// Author:      Robert Roebling// Created:     01/02/97// RCS-ID:      $Id: paletteg.h,v 1.17 2006/10/30 19:25:54 VZ Exp $// Copyright:   (c) 1998 Robert Roebling and Julian Smart// Licence:     wxWindows licence/////////////////////////////////////////////////////////////////////////////#ifndef __WX_PALETTEG_H__#define __WX_PALETTEG_H__#include "wx/defs.h"#include "wx/object.h"#include "wx/gdiobj.h"#include "wx/gdicmn.h"//-----------------------------------------------------------------------------// classes//-----------------------------------------------------------------------------class WXDLLIMPEXP_CORE wxPalette;//-----------------------------------------------------------------------------// wxPalette//-----------------------------------------------------------------------------class WXDLLIMPEXP_CORE wxPalette: public wxPaletteBase{public:    wxPalette();    wxPalette( int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue );    virtual ~wxPalette();    virtual bool Ok() const { return IsOk(); }    virtual bool IsOk() const;    bool Create( int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);    int GetPixel( unsigned char red, unsigned char green, unsigned char blue ) const;    bool GetRGB( int pixel, unsigned char *red, unsigned char *green, unsigned char *blue ) const;    virtual int GetColoursCount() const;private:    DECLARE_DYNAMIC_CLASS(wxPalette)};#endif // __WX_PALETTEG_H__

⌨️ 快捷键说明

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