@=~ ~p typesetter = texinfo ~p maximum_input_line_length = infinity ~O~~{ #include "drawings.h" ~} ~O~~{ #ifndef UML_DRAWINGS_H #define UML_DRAWINGS_H #include "VisAutoPatternCode.h" DECL_VECTORDRAWING(ANDStateDrawing) #endif ~} ~O~~{ #include "drawings.h" IMPL_VECTORDRAWING(ANDStateDrawing) { int cornerradius = 20; int offset = 5; int width = 60; int height = 60; int upbox_h = cornerradius - offset + 3; int stretch1 = cornerradius + 1; int numb; figure(2,"roundedrectangle","-width 2 -outline black -fill white"); point(0,0); point(width,height); figure(2,"line","-width 2 -fill black"); point(0,cornerradius + 3); point(60,cornerradius + 3); container("title",offset,offset,width - offset, cornerradius + 3, VisAlignScale, VisAlignScale); container("state",offset,cornerradius + 5,width - offset,height - offset, VisAlignScale, VisAlignScale); stretchX(cornerradius, width - cornerradius); stretchY(cornerradius, cornerradius+1); stretchY(cornerradius + 5, height - cornerradius); } ~}