/**
* @file
* Style information for rendering.
* Only used by classes DrawingShape and DrawingText
*//*
* Authors:
* Krzysztof KosiĆski <tweenk.pl@gmail.com>
*
* Copyright (C) 2010 Authors
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <cairo.h>
#include "color.h"
}
struct NRStyle {
NRStyle();
~NRStyle();
bool prepareFill(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern);
bool prepareStroke(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern);
bool prepareTextDecorationFill(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern);
bool prepareTextDecorationStroke(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern);
void update();
enum PaintType {
};
struct Paint {
float opacity;
void clear();
};
float stroke_width;
float miter_limit;
unsigned int n_dash;
double *dash;
float dash_offset;
enum PaintOrderType {
};
int text_decoration_line;
float text_decoration_stroke_width;
// These are the same as in style.h
float phase_length;
bool tspan_line_start;
bool tspan_line_end;
float tspan_width;
float ascender;
float descender;
float underline_thickness;
float underline_position;
float line_through_thickness;
float line_through_position;
float font_size;
int text_direction;
};
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :