X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdesktop-style.h;h=40461da723cea5b8909f0855db1538fad0f0a4bb;hb=eb4f7092b0b8482c042370d8c6520d4b05997afe;hp=3f201aa285ce03d4cda9ff9c64295065fe1047d8;hpb=6e369d7e74c36e07f5fb1e27d37923fbed7dd89c;p=inkscape.git diff --git a/src/desktop-style.h b/src/desktop-style.h index 3f201aa28..40461da72 100644 --- a/src/desktop-style.h +++ b/src/desktop-style.h @@ -25,6 +25,7 @@ namespace XML { struct Node; } } +namespace Glib { class ustring; } enum { // what kind of a style the query is returning QUERY_STYLE_NOTHING, // nothing was queried - e.g. no selection @@ -43,6 +44,7 @@ enum { // which property was queried (add when you need more) QUERY_STYLE_PROPERTY_STROKEJOIN, // stroke join QUERY_STYLE_PROPERTY_STROKECAP, // stroke cap QUERY_STYLE_PROPERTY_STROKESTYLE, // markers, dasharray, miterlimit, stroke-width, stroke-cap, stroke-join + QUERY_STYLE_PROPERTY_FONT_SPECIFICATION, //-inkscape-font-specification QUERY_STYLE_PROPERTY_FONTFAMILY, // font-family QUERY_STYLE_PROPERTY_FONTSTYLE, // font style QUERY_STYLE_PROPERTY_FONTNUMBERS, // size, spacings @@ -56,11 +58,11 @@ void sp_desktop_set_color(SPDesktop *desktop, ColorRGBA const &color, bool is_re void sp_desktop_set_style(SPDesktop *desktop, SPCSSAttr *css, bool change = true, bool write_current = true); SPCSSAttr *sp_desktop_get_style(SPDesktop *desktop, bool with_text); guint32 sp_desktop_get_color (SPDesktop *desktop, bool is_fill); -double sp_desktop_get_master_opacity_tool(SPDesktop *desktop, char const *tool); -double sp_desktop_get_opacity_tool(SPDesktop *desktop, char const *tool, bool is_fill); -guint32 sp_desktop_get_color_tool(SPDesktop *desktop, char const *tool, bool is_fill); +double sp_desktop_get_master_opacity_tool(SPDesktop *desktop, Glib::ustring const &tool, bool* has_opacity = NULL); +double sp_desktop_get_opacity_tool(SPDesktop *desktop, Glib::ustring const &tool, bool is_fill); +guint32 sp_desktop_get_color_tool(SPDesktop *desktop, Glib::ustring const &tool, bool is_fill, bool* has_color = NULL); double sp_desktop_get_font_size_tool (SPDesktop *desktop); -void sp_desktop_apply_style_tool(SPDesktop *desktop, Inkscape::XML::Node *repr, char const *tool, bool with_text); +void sp_desktop_apply_style_tool(SPDesktop *desktop, Inkscape::XML::Node *repr, Glib::ustring const &tool, bool with_text); gdouble stroke_average_width (GSList const *objects);