Back to index

unity  6.0.0
CairoBaseWindow.h
Go to the documentation of this file.
00001 // -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
00002 /*
00003  * Copyright (C) 2012 Canonical Ltd
00004  *
00005  * This program is free software: you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 3 as
00007  * published by the Free Software Foundation.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00016  *
00017  * Authored by: Marco Trevisan <3v1n0@ubuntu.com>
00018  */
00019 
00020 #ifndef CAIRO_BASEWINDOW_H
00021 #define CAIRO_BASEWINDOW_H
00022 
00023 #include <Nux/Nux.h>
00024 #include <Nux/BaseWindow.h>
00025 
00026 namespace unity
00027 {
00028 class CairoBaseWindow : public nux::BaseWindow
00029 {
00030   NUX_DECLARE_OBJECT_TYPE(CairoBaseWindow, nux::BaseWindow);
00031 public:
00032   CairoBaseWindow();
00033   virtual ~CairoBaseWindow();
00034 
00035 protected:
00036   void Draw(nux::GraphicsEngine& gfxContext, bool forceDraw);
00037 
00038   nux::ObjectPtr<nux::BaseTexture> texture_bg_;
00039   nux::ObjectPtr<nux::BaseTexture> texture_mask_;
00040   nux::ObjectPtr<nux::BaseTexture> texture_outline_;
00041 
00042   bool _use_blurred_background;
00043   bool _compute_blur_bkg;
00044 
00045 private:
00046   nux::ObjectPtr<nux::IOpenGLBaseTexture> bg_blur_texture_;
00047 };
00048 }
00049 
00050 #endif // CAIRO_BASEWINDOW_H
00051