/*
 ============================================================================
 xoblite -> an alternative shell based on Blackbox for Windows
 Copyright  2002-2005 Karl-Henrik Henriksson [qwilk]
 Copyright  2001-2004 The Blackbox for Windows Development Team
 http://xoblite.net/ - #bb4win on irc.freenode.net
 ============================================================================

  Blackbox for Windows is free software, released under the
  GNU General Public License (GPL version 2 or later), with an extension
  that allows linking of proprietary modules under a controlled interface.
  What this means is that plugins etc. are allowed to be released
  under any license the author wishes. Please note, however, that the
  original Blackbox gradient math code used in Blackbox for Windows
  is available under the BSD license.

  http://www.fsf.org/licenses/gpl.html
  http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface
  http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  GNU General Public License for more details.

  For additional license information, please read the included license.html

 ============================================================================
*/

#ifndef __PAINTER_H 
#define __PAINTER_H 

#include "MenuItem.h" 
#include "../Settings.h" 
#include "../BImage.h" 

//===========================================================================

class Painter  
{
public:
        Painter();
        virtual ~Painter();

        virtual void Paint(MenuItem* m, HDC hDC);
        virtual void SetFont(HFONT hFont, COLORREF color){m_hFont = hFont;m_FontColor = color;};
        virtual HFONT GetFont(){return m_hFont;};
        virtual COLORREF GetFontColor(){return m_FontColor;};

private:
        HFONT m_hFont;
        COLORREF m_FontColor;
};

//===========================================================================
/*
class SolidPainter : public Painter  
{
public:
        SolidPainter(COLORREF c);
        virtual ~SolidPainter();

        void Paint(MenuItem* pMenuItem, HDC hDC);

private:
        COLORREF m_Color;
        HBRUSH m_hBrush;
        HPEN m_hPen;
};
*/
//===========================================================================

class GradientPainter : public Painter  
{
public:
        GradientPainter(COLORREF nFrom, COLORREF nTo, int nType, bool bInterlaced, int, int, int);
        virtual ~GradientPainter();

        void Paint(MenuItem* pMenuItem, HDC hDC);

protected:
        COLORREF m_nFrom;
        COLORREF m_nTo;

        BImage *b;

        bool m_bInterlaced;
        int m_nType;
        int m_nBevelStyle;
        int m_nBevelPosition;
        int m_nBevelWidth;
};

//===========================================================================

#endif /* __PAINTER_H */ 





syntax highlighting by

w e b c p p
web c plus plus