コード例 #1
0
ファイル: imap_circle.c プロジェクト: Minoos/gimp
static void
circle_draw_sashes(Object_t *obj, GdkWindow *window, GdkGC *gc)
{
   Circle_t *circle = ObjectToCircle(obj);
   draw_sash(window, gc, circle->x - circle->r, circle->y - circle->r);
   draw_sash(window, gc, circle->x + circle->r, circle->y - circle->r);
   draw_sash(window, gc, circle->x - circle->r, circle->y + circle->r);
   draw_sash(window, gc, circle->x + circle->r, circle->y + circle->r);
}
コード例 #2
0
ファイル: imap_circle.c プロジェクト: AdamGrzonkowski/gimp-1
static void
circle_draw_sashes(Object_t *obj, cairo_t *cr)
{
   Circle_t *circle = ObjectToCircle(obj);
   draw_sash(cr, circle->x - circle->r, circle->y - circle->r);
   draw_sash(cr, circle->x + circle->r, circle->y - circle->r);
   draw_sash(cr, circle->x - circle->r, circle->y + circle->r);
   draw_sash(cr, circle->x + circle->r, circle->y + circle->r);
}
コード例 #3
0
static void
rectangle_draw_sashes(Object_t *obj, cairo_t *cr)
{
   Rectangle_t *rectangle = ObjectToRectangle(obj);
   draw_sash(cr, rectangle->x, rectangle->y);
   draw_sash(cr, rectangle->x + rectangle->width / 2, rectangle->y);
   draw_sash(cr, rectangle->x + rectangle->width, rectangle->y);
   draw_sash(cr, rectangle->x, rectangle->y + rectangle->height / 2);
   draw_sash(cr, rectangle->x + rectangle->width,
             rectangle->y + rectangle->height / 2);
   draw_sash(cr, rectangle->x, rectangle->y + rectangle->height);
   draw_sash(cr, rectangle->x + rectangle->width / 2,
             rectangle->y + rectangle->height);
   draw_sash(cr, rectangle->x + rectangle->width,
             rectangle->y + rectangle->height);
}