1 /* dndtext.h
2  * This file belongs to Worker, a filemanager for UNIX/X11.
3  * Copyright (C) 2001-2007 Ralf Hoffmann.
4  * You can contact me at: ralf@boomerangsworld.de
5  *   or http://www.boomerangsworld.de/worker
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20  */
21 
22 #ifndef DNDTEXT_H
23 #define DNDTEXT_H
24 
25 #include "aguixdefs.h"
26 #include "dndelement.h"
27 
28 class AGUIXFont;
29 
30 class DNDText:public DNDElement
31 {
32 public:
33   DNDText( AGUIX *, const char*, int, int, AGUIXFont* );
34   virtual ~DNDText();
35   DNDText( const DNDText &other );
36   DNDText &operator=( const DNDText &other );
37 
38   virtual void redraw();
39   virtual void create();
40 protected:
41   virtual void close();
42   AGUIXFont *font;
43   char *text;
44   int fg,bg;
45 };
46 
47 #endif
48