summaryrefslogtreecommitdiff
path: root/src/preproc/pic/common.h
diff options
context:
space:
mode:
authorwl <wl>2007-04-10 08:13:41 +0000
committerwl <wl>2007-04-10 08:13:41 +0000
commit8d471b152225636925b9dcdd4c75079eb0564752 (patch)
treed44b03dfe43d73f9d42192d60a2d14fe5e8f7724 /src/preproc/pic/common.h
parent4117db05aa876759df8ff64be60535869f7ea6e7 (diff)
downloadgroff-8d471b152225636925b9dcdd4c75079eb0564752.tar.gz
In pic, make rounded boxes work with colors. Reported by Urs Eggli
<Urs.Eggli@zuerich.ch>. * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h (output): Add color parameter to `rounded_box' member function. * src/preproc/pic/common.cpp (common_output::rounded_box): Use it. * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill' to `out->rounded_box'.
Diffstat (limited to 'src/preproc/pic/common.h')
-rw-r--r--src/preproc/pic/common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/preproc/pic/common.h b/src/preproc/pic/common.h
index 50238344..6979fa2f 100644
--- a/src/preproc/pic/common.h
+++ b/src/preproc/pic/common.h
@@ -1,5 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 1993, 2003
+/* Copyright (C) 1989, 1990, 1991, 1992, 1993, 2003, 2007
Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
@@ -53,7 +53,8 @@ protected:
const line_type &);
void solid_rounded_box(const position &, const distance &, double,
const line_type &);
- void filled_rounded_box(const position &, const distance &, double, double);
+ void filled_rounded_box(const position &, const distance &, double,
+ double);
public:
void start_picture(double sc, const position &ll, const position &ur) = 0;
void finish_picture() = 0;
@@ -68,7 +69,7 @@ public:
void ellipse(const position &, const distance &,
const line_type &, double) = 0;
void rounded_box(const position &, const distance &, double,
- const line_type &, double);
+ const line_type &, double, char *);
void set_color(char *, char *) = 0;
void reset_color() = 0;
char *get_last_filled() = 0;