Mercurial > octave-libgccjit
diff src/graphics.cc @ 6829:6c85f7d37e61
[project @ 2007-08-24 20:23:21 by dbateman]
author | dbateman |
---|---|
date | Fri, 24 Aug 2007 20:26:24 +0000 |
parents | 5e61f0bc0c27 |
children | ea6ae3af82d1 |
line wrap: on
line diff
--- a/src/graphics.cc Fri Aug 24 16:59:48 2007 +0000 +++ b/src/graphics.cc Fri Aug 24 20:26:24 2007 +0000 @@ -1800,7 +1800,8 @@ units ("data"), position (Matrix (1, 3, 0.0)), rotation (0), - horizontalalignment ("left") + horizontalalignment ("left"), + color (Matrix (1, 3, 1.0)) { } void @@ -1827,6 +1828,8 @@ rotation = val; else if (name.compare ("horizontalalignment")) horizontalalignment = val; + else if (name.compare ("color")) + color = val; else { modified = false; @@ -1851,6 +1854,7 @@ m.assign ("position", position); m.assign ("rotation", rotation); m.assign ("horizontalalignment", horizontalalignment); + m.assign ("color", color); return m; } @@ -1878,6 +1882,8 @@ retval = rotation; else if (name.compare ("horizontalalignment")) retval = horizontalalignment; + else if (name.compare ("color")) + retval = color; else warning ("get: invalid property `%s'", name.c_str ()); @@ -1894,6 +1900,7 @@ m["position"] = Matrix (1, 3, 0.0); m["rotation"] = 0; m["horizontalalignment"] = "left"; + m["color"] = Matrix (1, 3, 1.0); return m; }