[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/demo viewtest.py
From: |
Asko Soukka |
Subject: |
[Gzz-commits] gzz/gfx/demo viewtest.py |
Date: |
Thu, 21 Nov 2002 22:59:22 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Asko Soukka <address@hidden> 02/11/21 22:59:22
Modified files:
gfx/demo : viewtest.py
Log message:
Messed up with last commit's message. I fixed clients. There was too
intepretation of rendering TextVob: after coordsys' box's height
(TextCellContentView), or after font scale (LinebrokenCellContentView).
So, I used the second one... (see HBox and e.g. HBroken).
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/viewtest.py.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
Patches:
Index: gzz/gfx/demo/viewtest.py
diff -u gzz/gfx/demo/viewtest.py:1.3 gzz/gfx/demo/viewtest.py:1.4
--- gzz/gfx/demo/viewtest.py:1.3 Tue Nov 19 03:50:59 2002
+++ gzz/gfx/demo/viewtest.py Thu Nov 21 22:59:22 2002
@@ -31,7 +31,7 @@
class TestViewContext(ViewContext):
def __init__(self):
self.space = ModularSpace(*tools.spaceArgList())
- self.style = GraphicsAPI.getInstance().getTextStyle("SansSerif",
Font.PLAIN, 10)
+ self.style = GraphicsAPI.getInstance().getTextStyle("SansSerif",
Font.PLAIN, 14)
self.d = [self.space.getDim(d_1),
self.space.getDim(d_2),
@@ -77,7 +77,7 @@
putnoc(vs, background(self.bgcolor))
context = TestViewContext()
- contentBox = vs.orthoBoxCS(0, "content", 0, 100, 100, 1, 1,
+ contentBox = vs.orthoBoxCS(0, "content", 0, 0, 0, 1, 1,
self.size.width, self.size.height)
context.v.render(vs, contentBox, context)
@@ -95,7 +95,7 @@
def render(self, intoVS, intoCS, context):
c = context.getAccursed()
- box = intoVS.orthoBoxCS(intoCS, c, 0, 0, 0, 1, 1, 100, 100)
+ box = intoVS.orthoBoxCS(intoCS, "cell", 0, 100, 100, 5, 5, 100, 100)
cv = context.getCellView()
cv.place(c, intoVS, box, context)
print c.t()