1 /** 2 * Yudit Unicode Editor Source File 3 * 4 * GNU Copyright (C) 1997-2006 Gaspar Sinai <gaspar@yudit.org> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License, version 2, 8 * dated June 1991. See file COPYYING for details. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 19 20 #ifndef SBorder_h 21 #define SBorder_h 22 23 #include "swidget/SPanel.h" 24 25 class SBorder : public SComponent 26 { 27 public: 28 enum SStyle { ETCHED, IN, OUT, SOLID}; 29 SBorder (SStyle style=ETCHED); 30 virtual ~SBorder (); 31 32 void setStyle (SStyle style); 33 const SDimension& getBorderSize() const; 34 35 virtual void redraw (SCanvas *canvas, int x, int y, 36 unsigned int width, unsigned int height); 37 38 virtual void resize (const SDimension& size); 39 virtual void move (const SLocation& loc); 40 protected: 41 SDimension borderSize; 42 SStyle style; 43 }; 44 45 #endif /* SBorder_h */ 46