1 /* 2 * ppui/Seperator.h 3 * 4 * Copyright 2009 Peter Barth 5 * 6 * This file is part of Milkytracker. 7 * 8 * Milkytracker is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation, either version 3 of the License, or 11 * (at your option) any later version. 12 * 13 * Milkytracker is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with Milkytracker. If not, see <http://www.gnu.org/licenses/>. 20 * 21 */ 22 23 /* 24 * Seperator.h 25 * MilkyTracker 26 * 27 * Created by Peter Barth on 16.03.05. 28 * 29 */ 30 #ifndef SEPERATOR__H 31 #define SEPERATOR__H 32 33 #include "BasicTypes.h" 34 #include "Control.h" 35 36 class PPSeperator : public PPControl 37 { 38 private: 39 bool horizontal; 40 41 const PPColor* color; 42 43 public: 44 PPSeperator(pp_int32 id, PPScreen* parentScreen, 45 const PPPoint& location, pp_uint32 size, 46 const PPColor& theColor, bool horizontal = true); 47 setColor(const PPColor & color)48 void setColor(const PPColor& color) { this->color = &color; } 49 50 virtual void paint(PPGraphicsAbstract* graphics); 51 }; 52 53 #endif 54