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); }
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); }
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); }