mirror of https://github.com/GNOME/gimp.git
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().
This commit is contained in:
parent
4590273e45
commit
138bab295b
|
@ -1,3 +1,8 @@
|
|||
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,
|
||||
|
|
Loading…
Reference in New Issue