Download Absoft Pro Fortran User Guide
Transcript
The Absoft Window Environment 127 Canvas Derived Types The AWE_Canvas type is used to specify the canvas for creation and all subsequent calls. TYPE AWE_Canvas INTEGER, PRIVATE :: id CHARACTER(LEN=128) :: title = "" INTEGER :: width = 500 INTEGER :: height = 500 INTEGER :: backgroundColor = AWE_white END TYPE AWE_Canvas is the internal canvas identifier. AWE will automatically assign a unique value when the canvas is created. id title is the canvas window title. Width and height are the dimensions of the canvas. The defaults are 500 x 500. backgroundColor is the color of the drawing background. An AWE_CanvasPen defines the style of the pen used with various other drawing commands. TYPE AWE_CanvasPen REAL :: penWidth INTEGER :: penStyle INTEGER :: capStyle INTEGER :: joinStyle INTEGER :: penColor END TYPE AWE_CanvasPen = = = = = 0.0 CanvasPenStyle_SolidLine CanvasPenCapStyle_SquareCap CanvasPenJoinStyle_BevelJoin AWE_black penWidth is the width of the pen. penStyle is the style of the pen. The following styles are available: CanvasPenStyle_NoPen CanvasPenStyle_DashLine CanvasPenStyle_DashDotLine CanvasPenStyle_SolidLine CanvasPenStyle_DotLine CanvasPenStyle_DashDotDotLine capStyle defines the shape of the end cap of line segment drawn with the pen. The following styles are available: CanvasPenCapStyle_SquareCap CanvasPenCapStyle_RoundCap CanvasPenCapStyle_FlatCap defines the shape of joint between two line segments drawn with the pen. The following styles are available: joinStyle CanvasPenJoinStyle_BevelJoin CanvasPenJoinStyle_RoundJoin CanvasPenJoinStyle_MiterJoin = 1 Fortran User Guide