Public Member Functions | |
cairo_context (Cairo::RefPtr< Cairo::Context > const &context) | |
~cairo_context (void) | |
void | set_color (Color const &color, double opacity=1.0) |
void | set_color (int r, int g, int b, double opacity=1.0) |
void | set_line_join (line_join_e join) |
void | set_line_cap (line_cap_e cap) |
void | set_miter_limit (double limit) |
void | set_line_width (double width) |
void | set_dash (dash_array const &dashes) |
void | move_to (double x, double y) |
void | line_to (double x, double y) |
template<typename T > | |
void | add_path (T path) |
void | rectangle (double x, double y, double w, double h) |
void | stroke (void) |
void | fill (void) |
void | paint (void) |
void | set_pattern (cairo_pattern const &pattern) |
void | add_image (double x, double y, ImageData32 &data) |
void | set_font_face (cairo_face_manager &manager, face_ptr face) |
void | set_font_matrix (Cairo::Matrix const &matrix) |
void | show_glyph (unsigned long index, double x, double y) |
void | glyph_path (unsigned long index, double x, double y) |
void | add_text (text_symbolizer const &sym, text_path &path, cairo_face_manager &manager, face_set_ptr const &faces) |
mapnik::cairo_context::cairo_context | ( | Cairo::RefPtr< Cairo::Context > const & | context | ) | [inline] |
mapnik::cairo_context::~cairo_context | ( | void | ) | [inline] |
void mapnik::cairo_context::add_image | ( | double | x, | |
double | y, | |||
ImageData32 & | data | |||
) | [inline] |
References mapnik::cairo_pattern::pattern(), and mapnik::cairo_pattern::set_origin().
Referenced by mapnik::cairo_renderer< T >::process().
void mapnik::cairo_context::add_path | ( | T | path | ) | [inline] |
References line_to(), move_to(), mapnik::SEG_END, mapnik::SEG_LINETO, and mapnik::SEG_MOVETO.
Referenced by mapnik::cairo_renderer< T >::process().
void mapnik::cairo_context::add_text | ( | text_symbolizer const & | sym, | |
text_path & | path, | |||
cairo_face_manager & | manager, | |||
face_set_ptr const & | faces | |||
) | [inline] |
References mapnik::cairo_face_manager::get_face(), mapnik::text_symbolizer::get_fill(), mapnik::text_symbolizer::get_halo_fill(), mapnik::text_symbolizer::get_halo_radius(), mapnik::text_symbolizer::get_text_size(), glyph_path(), mapnik::text_path::num_nodes(), mapnik::text_path::rewind(), mapnik::ROUND_JOIN, set_color(), set_font_face(), set_font_matrix(), set_line_join(), set_line_width(), show_glyph(), mapnik::text_path::starting_x, mapnik::text_path::starting_y, stroke(), and mapnik::text_path::vertex().
Referenced by mapnik::cairo_renderer< T >::process().
void mapnik::cairo_context::fill | ( | void | ) | [inline] |
Referenced by mapnik::cairo_renderer< T >::process().
void mapnik::cairo_context::glyph_path | ( | unsigned long | index, | |
double | x, | |||
double | y | |||
) | [inline] |
Referenced by add_text().
void mapnik::cairo_context::line_to | ( | double | x, | |
double | y | |||
) | [inline] |
Referenced by add_path().
void mapnik::cairo_context::move_to | ( | double | x, | |
double | y | |||
) | [inline] |
Referenced by add_path().
void mapnik::cairo_context::paint | ( | void | ) | [inline] |
Referenced by mapnik::cairo_renderer< T >::start_map_processing().
void mapnik::cairo_context::rectangle | ( | double | x, | |
double | y, | |||
double | w, | |||
double | h | |||
) | [inline] |
void mapnik::cairo_context::set_color | ( | int | r, | |
int | g, | |||
int | b, | |||
double | opacity = 1.0 | |||
) | [inline] |
void mapnik::cairo_context::set_color | ( | Color const & | color, | |
double | opacity = 1.0 | |||
) | [inline] |
References mapnik::Color::blue(), mapnik::Color::green(), and mapnik::Color::red().
Referenced by add_text(), mapnik::cairo_renderer< T >::process(), and mapnik::cairo_renderer< T >::start_map_processing().
void mapnik::cairo_context::set_dash | ( | dash_array const & | dashes | ) | [inline] |
Referenced by mapnik::cairo_renderer< T >::process().
void mapnik::cairo_context::set_font_face | ( | cairo_face_manager & | manager, | |
face_ptr | face | |||
) | [inline] |
void mapnik::cairo_context::set_font_matrix | ( | Cairo::Matrix const & | matrix | ) | [inline] |
Referenced by add_text().
void mapnik::cairo_context::set_line_cap | ( | line_cap_e | cap | ) | [inline] |
References mapnik::BUTT_CAP, and mapnik::SQUARE_CAP.
Referenced by mapnik::cairo_renderer< T >::process().
void mapnik::cairo_context::set_line_join | ( | line_join_e | join | ) | [inline] |
References mapnik::MITER_JOIN, mapnik::MITER_REVERT_JOIN, and mapnik::ROUND_JOIN.
Referenced by add_text(), and mapnik::cairo_renderer< T >::process().
void mapnik::cairo_context::set_line_width | ( | double | width | ) | [inline] |
Referenced by add_text(), and mapnik::cairo_renderer< T >::process().
void mapnik::cairo_context::set_miter_limit | ( | double | limit | ) | [inline] |
Referenced by mapnik::cairo_renderer< T >::process().
void mapnik::cairo_context::set_pattern | ( | cairo_pattern const & | pattern | ) | [inline] |
void mapnik::cairo_context::show_glyph | ( | unsigned long | index, | |
double | x, | |||
double | y | |||
) | [inline] |
Referenced by add_text().
void mapnik::cairo_context::stroke | ( | void | ) | [inline] |
Referenced by add_text(), and mapnik::cairo_renderer< T >::process().