mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ put enumerartion macros into mapnik namespace
( clang++ emmits errors otherwise)
This commit is contained in:
parent
5461739e64
commit
b6089295e7
@ -41,14 +41,10 @@ static const char * line_join_strings[] = {
|
||||
""
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
IMPLEMENT_ENUM( mapnik::line_cap_e, line_cap_strings );
|
||||
IMPLEMENT_ENUM( mapnik::line_join_e, line_join_strings );
|
||||
IMPLEMENT_ENUM( line_cap_e, line_cap_strings );
|
||||
IMPLEMENT_ENUM( line_join_e, line_join_strings );
|
||||
|
||||
|
||||
namespace mapnik
|
||||
{
|
||||
stroke::stroke()
|
||||
: c_(0,0,0),
|
||||
width_(1.0),
|
||||
|
||||
@ -27,6 +27,9 @@
|
||||
// boost
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
namespace mapnik
|
||||
{
|
||||
|
||||
static const char * label_placement_strings[] = {
|
||||
"point",
|
||||
"line",
|
||||
@ -35,7 +38,7 @@ static const char * label_placement_strings[] = {
|
||||
};
|
||||
|
||||
|
||||
IMPLEMENT_ENUM( mapnik::label_placement_e, label_placement_strings );
|
||||
IMPLEMENT_ENUM( label_placement_e, label_placement_strings );
|
||||
|
||||
static const char * vertical_alignment_strings[] = {
|
||||
"top",
|
||||
@ -45,7 +48,7 @@ static const char * vertical_alignment_strings[] = {
|
||||
};
|
||||
|
||||
|
||||
IMPLEMENT_ENUM( mapnik::vertical_alignment_e, vertical_alignment_strings );
|
||||
IMPLEMENT_ENUM( vertical_alignment_e, vertical_alignment_strings );
|
||||
|
||||
static const char * horizontal_alignment_strings[] = {
|
||||
"left",
|
||||
@ -55,7 +58,7 @@ static const char * horizontal_alignment_strings[] = {
|
||||
};
|
||||
|
||||
|
||||
IMPLEMENT_ENUM( mapnik::horizontal_alignment_e, horizontal_alignment_strings );
|
||||
IMPLEMENT_ENUM(horizontal_alignment_e, horizontal_alignment_strings );
|
||||
|
||||
static const char * justify_alignment_strings[] = {
|
||||
"left",
|
||||
@ -65,7 +68,7 @@ static const char * justify_alignment_strings[] = {
|
||||
};
|
||||
|
||||
|
||||
IMPLEMENT_ENUM( mapnik::justify_alignment_e, justify_alignment_strings );
|
||||
IMPLEMENT_ENUM( justify_alignment_e, justify_alignment_strings );
|
||||
|
||||
static const char * text_convert_strings[] = {
|
||||
"none",
|
||||
@ -75,11 +78,10 @@ static const char * text_convert_strings[] = {
|
||||
};
|
||||
|
||||
|
||||
IMPLEMENT_ENUM( mapnik::text_convert_e, text_convert_strings );
|
||||
IMPLEMENT_ENUM( text_convert_e, text_convert_strings );
|
||||
|
||||
|
||||
|
||||
namespace mapnik
|
||||
{
|
||||
text_symbolizer::text_symbolizer(expression_ptr name, std::string const& face_name, unsigned size, color const& fill)
|
||||
: name_(name),
|
||||
face_name_(face_name),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user