Back to index

unity  6.0.0
LineSeparator.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_HSEPARATOR_H
00021 #define UNITYSHELL_HSEPARATOR_H
00022 
00023 #include "AbstractSeparator.h"
00024 
00025 namespace unity
00026 {
00027 
00028 class HSeparator: public AbstractSeparator
00029 {
00030 public:
00031   HSeparator();
00032   HSeparator(nux::Color const& color, float alpha0, float alpha1, int border);
00033 
00034   ~HSeparator();
00035 
00036 protected:
00037   virtual bool AcceptKeyNavFocus() { return false; }
00038   virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw);
00039   virtual void DrawContent(nux::GraphicsEngine& GfxContext, bool force_draw) {};
00040 
00041 };
00042 
00043 } // namespace unity
00044 
00045 #endif // UNITYSHELL_HSEPARATOR_H