diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-06-17 16:20:42 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-06-17 16:20:42 +0000 |
commit | 64a96164b0a793c8f6dd9f204018ebb54d0e025e (patch) | |
tree | d22221207ffa74d1659df4103a505b534d0c2f15 /src/PSEditText.cxx | |
parent | 23a117d4bed517b0cba4539355706f5221fe9a65 (diff) |
initial color support
initial color support
Diffstat (limited to 'src/PSEditText.cxx')
-rw-r--r-- | src/PSEditText.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
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; } |