@=~ ~p typesetter = texinfo ~p maximum_input_line_length = infinity ~O~~{ #include "drawings.h" ~} ~O~~{ #ifndef DRAWINGS_H #define DRAWINGS_H #include "VisAutoPatternCode.h" DECL_VECTORDRAWING(MainDrawing) DECL_VECTORDRAWING(QueryDefDrawing) DECL_VECTORDRAWING(TableInstanceLineElementDrawing) #endif ~} ~O~~{ #include "drawings.h" IMPL_VECTORDRAWING(MainDrawing) { figure(1,"text","-fill blue -anchor w -text Tables:"); point(0,0); container("Tables",0,10,100,20,VisAlignLeft, VisAlignTop); figure(1,"text","-fill blue -anchor w -text Queries:"); point(0,40); container("Queries",0,50,100,60,VisAlignLeft, VisAlignTop); stretchX(0,100); stretchY(10,20); stretchY(50,60); } IMPL_VECTORDRAWING(QueryDefDrawing) { container("Name",0,0,20,10,VisAlignLeft, VisAlignTop); container("Body",0,20,20,30,VisAlignLeft, VisAlignTop); stretchX(0,20); stretchY(0,10); stretchY(20,30); } IMPL_VECTORDRAWING(TableInstanceLineElementDrawing) { container("Print",0,0,5,10,VisAlignCenter, VisAlignTop); container("Condition",10,0,15,10,VisAlignScale, VisAlignScale); stretchX(0,5); stretchX(10,15,1); stretchY(0,10); } ~}