Laxkit  0.0.7.1
fillstyle.h
1 //
2 //
3 // The Laxkit, a windowing toolkit
4 // Please consult http://laxkit.sourceforge.net about where to send any
5 // correspondence about this software.
6 //
7 // This library is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU Library General Public
9 // License as published by the Free Software Foundation; either
10 // version 2 of the License, or (at your option) any later version.
11 //
12 // This library 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 GNU
15 // Library General Public License for more details.
16 //
17 // You should have received a copy of the GNU Library General Public
18 // License along with this library; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 //
21 // Copyright (C) 2004-2010 by Tom Lechner
22 //
23 #ifndef _LAX_FILLSTYLE_H
24 #define _LAX_FILLSTYLE_H
25 
26 #include <X11/Xlib.h>
27 #include <cstdio>
28 #include <lax/anobject.h>
29 #include <lax/dump.h>
30 #include <lax/screencolor.h>
31 #include <lax/drawingdefs.h>
32 
33 #define FillNone 100
34 
35 namespace LaxInterfaces {
36 
38 {
39  public:
40  Laxkit::ScreenColor color;
41  int fillrule;
42  int fillstyle;
43  int function;
44  unsigned long mask;
45  FillStyle();
46  FillStyle(int r,int g,int b, int a,int fr,int fs,int f);
47  FillStyle(const FillStyle &f)
48  { color=f.color; fillrule=f.fillrule; fillstyle=f.fillstyle; }
49  FillStyle &operator=(FillStyle &f)
50  { color=f.color; fillrule=f.fillrule; fillstyle=f.fillstyle; return f; }
51  virtual ~FillStyle() {}
52  virtual void Color(int r,int g,int b,int a);
53  virtual void dump_in_atts(LaxFiles::Attribute *att,int flag,Laxkit::anObject *context);
54  virtual void dump_out(FILE *f,int indent,int what,Laxkit::anObject *context);
55 
56  virtual int hasFill();
57 };
58 
59 
60 } // namespace LaxInterfaces
61 
62 #endif
63 

Mon Feb 17 2014 11:52:56, Laxkit