• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List

colors.hh

00001 // Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE)
00002 //
00003 // This file is part of Olena.
00004 //
00005 // Olena is free software: you can redistribute it and/or modify it under
00006 // the terms of the GNU General Public License as published by the Free
00007 // Software Foundation, version 2 of the License.
00008 //
00009 // Olena is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012 // General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU General Public License
00015 // along with Olena.  If not, see <http://www.gnu.org/licenses/>.
00016 //
00017 // As a special exception, you may use this file as part of a free
00018 // software project without restriction.  Specifically, if other files
00019 // instantiate templates or use macros or inline functions from this
00020 // file, or you compile this file and link it with other files to produce
00021 // an executable, this file does not by itself cause the resulting
00022 // executable to be covered by the GNU General Public License.  This
00023 // exception does not however invalidate any other reasons why the
00024 // executable file might be covered by the GNU General Public License.
00025 
00026 #ifndef MLN_LITERAL_COLORS_HH
00027 # define MLN_LITERAL_COLORS_HH
00028 
00032 
00033 # include <mln/core/concept/literal.hh>
00034 
00035 namespace mln
00036 {
00037 
00038   namespace literal
00039   {
00040 
00042     struct red_t : public Literal<red_t>
00043     {
00044     };
00045 
00047     struct green_t : public Literal<green_t>
00048     {
00049     };
00050 
00052     struct blue_t : public Literal<blue_t>
00053     {
00054     };
00055 
00057     struct brown_t : public Literal<brown_t>
00058     {
00059     };
00060 
00062     struct lime_t : public Literal<lime_t>
00063     {
00064     };
00065 
00067     struct orange_t : public Literal<orange_t>
00068     {
00069     };
00070 
00072     struct pink_t : public Literal<pink_t>
00073     {
00074     };
00075 
00077     struct purple_t : public Literal<purple_t>
00078     {
00079     };
00080 
00082     struct teal_t : public Literal<teal_t>
00083     {
00084     };
00085 
00087     struct violet_t : public Literal<violet_t>
00088     {
00089     };
00090 
00092     struct cyan_t : public Literal<cyan_t>
00093     {
00094     };
00095 
00097     struct magenta_t : public Literal<magenta_t>
00098     {
00099     };
00100 
00102     struct yellow_t : public Literal<yellow_t>
00103     {
00104     };
00105 
00107     struct olive_t : public Literal<olive_t>
00108     {
00109     };
00110 
00112     extern const red_t& red;
00113 
00115     extern const green_t& green;
00116 
00118     extern const blue_t& blue;
00119 
00121     extern const brown_t& brown;
00122 
00124     extern const lime_t& lime;
00125 
00127     extern const orange_t& orange;
00128 
00130     extern const pink_t& pink;
00131 
00133     extern const purple_t& purple;
00134 
00136     extern const teal_t& teal;
00137 
00139     extern const violet_t& violet;
00140 
00142     extern const cyan_t& cyan;
00143 
00145     extern const magenta_t& magenta;
00146 
00148     extern const yellow_t& yellow;
00149 
00151     extern const olive_t& olive;
00152 
00153 # ifndef MLN_INCLUDE_ONLY
00154 
00155     const red_t& red = red_t();
00156 
00157     const green_t& green = green_t();
00158 
00159     const blue_t& blue = blue_t();
00160 
00161     const brown_t& brown = brown_t();
00162 
00163     const lime_t& lime = lime_t();
00164 
00165     const orange_t& orange = orange_t();
00166 
00167     const pink_t& pink = pink_t();
00168 
00169     const purple_t& purple = purple_t();
00170 
00171     const teal_t& teal = teal_t();
00172 
00173     const violet_t& violet = violet_t();
00174 
00175     const cyan_t& cyan = cyan_t();
00176 
00177     const magenta_t& magenta = magenta_t();
00178 
00179     const yellow_t& yellow = yellow_t();
00180 
00181     const olive_t& olive = olive_t();
00182 
00183 # endif
00184 
00185   } // end of namespace mln::literal
00186 
00187 } // end of namespace mln
00188 
00189 // White and black are color too.
00190 # include <mln/literal/white.hh>
00191 # include <mln/literal/black.hh>
00192 
00193 #endif // ! MLN_LITERAL_COLORS_HH

Generated on Thu Sep 8 2011 18:31:39 for Milena (Olena) by  doxygen 1.7.1