X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdesktop-style.h;h=112fe1372a4ab94ed8bd50cf1dd935629dd5b911;hb=08ba57f80d0ea883ad6f55145241a9dec14054f8;hp=3ebf4f2385e49e4991e3d975aac4ecf6563f2a2a;hpb=6b15695578f07a3f72c4c9475c1a261a3021472a;p=inkscape.git diff --git a/src/desktop-style.h b/src/desktop-style.h index 3ebf4f238..112fe1372 100644 --- a/src/desktop-style.h +++ b/src/desktop-style.h @@ -6,8 +6,9 @@ * * Authors: * bulia byak + * verbalshadow * - * Copyright (C) 2004 authors + * Copyright (C) 2004, 2006 authors * * Released under GNU GPL, read the file 'COPYING' for more information */ @@ -45,7 +46,8 @@ enum { // which property was queried (add when you need more) QUERY_STYLE_PROPERTY_FONTFAMILY, // font-family QUERY_STYLE_PROPERTY_FONTSTYLE, // font style QUERY_STYLE_PROPERTY_FONTNUMBERS, // size, spacings - QUERY_STYLE_PROPERTY_MASTEROPACITY // opacity + QUERY_STYLE_PROPERTY_MASTEROPACITY, // opacity + QUERY_STYLE_PROPERTY_BLUR // blur }; void sp_desktop_apply_css_recursive(SPObject *o, SPCSSAttr *css, bool skip_lines); @@ -53,6 +55,9 @@ 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_font_size_tool (SPDesktop *desktop); void sp_desktop_apply_style_tool(SPDesktop *desktop, Inkscape::XML::Node *repr, char const *tool, bool with_text); @@ -68,6 +73,8 @@ int objects_query_miterlimit (GSList *objects, SPStyle *style_res); int objects_query_strokecap (GSList *objects, SPStyle *style_res); int objects_query_strokejoin (GSList *objects, SPStyle *style_res); +int objects_query_blur (GSList *objects, SPStyle *style_res); + int sp_desktop_query_style_from_list (GSList *list, SPStyle *style, int property); int sp_desktop_query_style(SPDesktop *desktop, SPStyle *style, int property); bool sp_desktop_query_style_all (SPDesktop *desktop, SPStyle *query);