/*
 gFooBar Header
 Copyright (c)2011 Mark Watkins <jedimark@users.sourceforge.net>
 License: GPL
*/

#ifndef GFOOBAR_H
#define GFOOBAR_H

#include "gGraphView.h"

class gShadowArea:public Layer
{
    public:
        gShadowArea(QColor shadow_color=QColor(40,40,40,40),QColor line_color=QColor("blue"));
        virtual ~gShadowArea();
        virtual void paint(gGraph & w,int left, int top, int width, int height);
    protected:
        QColor m_shadow_color;
        QColor m_line_color;
        GLShortBuffer *quads;
        GLShortBuffer *lines;
};

class gFooBar:public Layer
{
    public:
        gFooBar(int offset=10,QColor handle_color=QColor("orange"),QColor line_color=QColor("dark grey"));
        virtual ~gFooBar();
        virtual void paint(gGraph & w,int left, int top, int width, int height);
        static const int Margin=15;
    protected:
        int m_offset;
        QColor m_handle_color;
        QColor m_line_color;
};

#endif // GFOOBAR_H