Commit 138bab29 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

added new function gimp_draw_tool_draw_dashed_line().

2003-09-02  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpdrawtool.[ch]: added new function
	gimp_draw_tool_draw_dashed_line().
parent 4590273e
2003-09-02 Sven Neumann <sven@gimp.org>
* app/tools/gimpdrawtool.[ch]: added new function
gimp_draw_tool_draw_dashed_line().
2003-09-02 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpdockable.c (gimp_dockable_init): default to
......@@ -344,6 +344,25 @@ gimp_draw_tool_draw_line (GimpDrawTool *draw_tool,
RINT (tx2), RINT (ty2));
}
void
gimp_draw_tool_draw_dashed_line (GimpDrawTool *draw_tool,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gboolean use_offsets)
{
GdkGCValues values;
values.line_style = GDK_LINE_ON_OFF_DASH;
gdk_gc_set_values (draw_tool->gc, &values, GDK_GC_LINE_STYLE);
gimp_draw_tool_draw_line (draw_tool, x1, y1, x2, y2, use_offsets);
values.line_style = GDK_LINE_SOLID;
gdk_gc_set_values (draw_tool->gc, &values, GDK_GC_LINE_STYLE);
}
void
gimp_draw_tool_draw_rectangle (GimpDrawTool *draw_tool,
gboolean filled,
......
......@@ -102,6 +102,12 @@ void gimp_draw_tool_draw_line (GimpDrawTool *draw_tool,
gdouble x2,
gdouble y2,
gboolean use_offsets);
void gimp_draw_tool_draw_dashed_line (GimpDrawTool *draw_tool,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gboolean use_offsets);
void gimp_draw_tool_draw_rectangle (GimpDrawTool *draw_tool,
gboolean filled,
gdouble x,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment