Back to index

unity  6.0.0
AbstractSeparator.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2011 Canonical Ltd
00003  *
00004  * This program is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 3 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00015  *
00016  * Authored by: Jay Taoko <jaytaoko@inalogic.com>
00017  *
00018  */
00019 
00020 #ifndef UNITYSHELL_ABSTRACTSEPARATOR_H
00021 #define UNITYSHELL_ABSTRACTSEPARATOR_H
00022 
00023 #include <Nux/Nux.h>
00024 #include <Nux/View.h>
00025 
00026 namespace unity
00027 {
00028   
00029 class AbstractSeparator: public nux::View
00030 {
00031 public:
00032   AbstractSeparator(NUX_FILE_LINE_PROTO);
00033   AbstractSeparator(nux::Color const& color, float alpha0, float alpha1, int vorder, NUX_FILE_LINE_PROTO);
00034   ~AbstractSeparator();
00035   
00036   void SetColor(nux::Color const& color);
00037   void SetAlpha(float alpha0, float alpha1);
00038   void SetBorderSize(int border);
00039 
00040 protected:
00041   nux::Color color_;
00042   float alpha0_;
00043   float alpha1_;
00044   int border_size_;
00045 };
00046 
00047 } // namespace unity
00048 
00049 #endif // UNITYSHELL_ABSTRACTSEPARATOR_H