From 64a96164b0a793c8f6dd9f204018ebb54d0e025e Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 17 Jun 2005 16:20:42 +0000 Subject: initial color support initial color support --- src/PSEditText.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/PSEditText.cxx') diff --git a/src/PSEditText.cxx b/src/PSEditText.cxx index 001f3c1..0231807 100644 --- a/src/PSEditText.cxx +++ b/src/PSEditText.cxx @@ -1,5 +1,5 @@ // -// "$Id: PSEditText.cxx,v 1.2 2004/10/21 21:02:05 hofmann Exp $" +// "$Id: PSEditText.cxx,v 1.3 2005/06/17 18:20:42 hofmann Exp $" // // PSEditWidget routines. // @@ -30,13 +30,14 @@ #include "PSEditText.H" -PSEditText::PSEditText(int x1, int y1, const char *s1, int size1) { +PSEditText::PSEditText(int x1, int y1, const char *s1, + int size1, PSEditColor *c) { x = x1; y = y1; s = strdup(s1); tag = NULL; - c = 0; size = size1; + text_color.set(c->r, c->g, c->b); next = NULL; } @@ -133,10 +134,6 @@ int PSEditText::get_size() { return size; } -int PSEditText::get_color() { - return c; -} - PSEditText* PSEditText::get_next() { return next; } -- cgit v1.2.3