IF/Prologの述語
MINERVA superseeded IF/Prolog. Please see http://www.ifcomputer.co.jp/MINERVA for details.

We discontinued to sell IF/Prolog Dec 31. 2003. For current customers, we continue to provide professional support for IF/Prolog until Dec 31, 2008.

以下の引数の役割名が使われています。

引数の役割名 値の範囲

Angle1 整数 Angle2 整数 ArcList 6個の整数から成るリストのリスト Ascent 整数 Baseline 整数 Bitmap アトム、bitmap0 .. bitmap9 Clip アトム、あるいはリスト、nullと,noneあるいは [X, Y, Width, Height]とのいずれか CoordMode アトム、coordModeOrigin あるいは coordModePrevious Dash_offset 整数 Dash_list 整数のリスト Descent 整数 Dest_x 整数 Dest_y 整数 Direction アトム、fontLeftToRight あるいは fontRightToLeft Exposures アトム、booleanの値 Filename アトム Height 整数、正 LayoutDirection アトム、string_direction_1_to_rあるいは string_direction_r_to_1 Length 整数 LineCount 整数 Ngc アトム、gc0 .. gc9 PointList 2個の整数から成るリストのリスト RectangleList 4個の整数から成るリストのリスト SegmentList 4個の整数から成るリストのリスト Shape アトム、convex, nonconvex, complex のいずれか Src_x 整数  Src_y 整数 String アトム Underline リスト、正しいXmString Value アトム、そのパラメ−タに対する正しい指定 Which アトム、正しいパラメ−タ指定 WidgetName アトム、ドロ−WidgetのProlog名 Width 整数、正 X 整数 X1 整数 X2 整数 XmString リスト、正しいXmString Y 整数 Y1 整数 Y2 整数

描画プリミティブ: xtDrawPoint(+WidgetName, +X, +Y); xtDrawPoints(+WidgetName, +PointList, +CoordMode); xtDrawLine(+WidgetName, +X1, +Y1, +X2, +Y2); xtDrawLines(+WidgetName, +PointList, +CoordMode); xtDrawSegments(+WidgetName, +SegmentList); xtDrawRectangle(+WidgetName, +X, +Y, +Width, +Height); xtDrawRectangles(+WidgetName, +RectangleList); xtDrawArc(+WidgetName, +X, +Y, +Width, +Height, +Angle1, +Angle2); xtDrawArcs(+WidgetName, +ArcList); xtDrawString(+WidgetName, +X, +Y, +String); xtDrawImageString(+WidgetName, +X, +Y, +String); xtDrawFillRectangle(+WidgetName, +X, +Y, +Width, +Height); xtDrawFillRectangles(+WidgetName, +Rectangles); xtDrawFillPolygon(+WidgetName, +PointList, +Shape, +CoordMode); xtDrawFillArc(+WidgetName, +X, +Y, +Width, +Height, +Angle1, +Angle2); xtDrawFillArcs(+WidgetName, +Arcs); xtDrawCopyArea(+WidgetName, +Src_x, +Src_y, +Width, +Height, +Dest_x, +Dest_y); xtDrawClearArea(+WidgetName, +X, +Y, +Width, +Height, +Exposures); xtDrawCopyBitmap(+WidgetName, +Bitmap, +Dest_x, +Dest_y);

GCの記憶と再呼び出し: xtDrawStoreGC(+WidgetName, +Ngc); xtDrawRecallGC(+WidgetName, +Ngc);

GCを変更するオペレ−ション: xtDrawSetParam(+WidgetName, +Which, +Value);

正しいパラメ−タ指定とパラメ−タの値は以下のようになります。

  Which Value

xtDrawFillStyle (fillSolid, fillTiled, fillStippled, fillOpaqueStippled) xtDrawFillRule (evenOddRule, windingRule) xtDrawSetArcMode (arcPieSlice, arcChord) xtDrawResourceFont (font0 .. font9) xtDrawResourceForeground (color0 .. color9) xtDrawResourceBackground (color0 .. color9) xtDrawTileForeground (color0 .. color9) xtDrawTileBackground (color0 .. color9) xtDrawLineWidth (整数) xtDrawLineStyle (lineSolid, lineOnOffDash, lineDoubleDash) xtDrawJoinStyle (joinMiter, joinRound, joinBevel) xtDrawCapStyle (capNotLast, capButt, capRound, capProjecting) xtDrawResourceStipple (bitmap0 .. bitmap9) xtDrawResourceTile (bitmap0 .. bitmap9)

xtDrawSetTSOrigin(+WidgetName, +X, +Y); xtDrawSetDashes(+WidgetName, +Dash_offset, +Dash_list);

Miscellaneous: xtDrawClear(+WidgetName); xtDrawRepaint(+WidgetName); xtDrawFlush(+WidgetName);

プリミティブの削除: xtDrawDeleteLine(+WidgetName, +X1, +Y1, +X2, +Y2);

ポインタの位置の問い合わせ: xtDrawGetXY(+WidgetName, ?X, ?Y); xtDrawQueryPointer(+WidgetName, ?X, ?Y);

ラバ−モ−ド: xtDrawSetRubberGC(+WidgetName); xtDrawUnsetRubberGC(+WidgetName);

テキスト・エクステントの問い合わせ: xtDrawFontExtents(+WidgetName, ?Direction, ?Ascent, ?Descent); xtDrawStringExtents(+WidgetName, +String, +Width, ?Ascent, ?Descent);

ビットマップ・エクステントの問い合わせ: xtDrawBitmapExtents(+WidgetName, +Bitmap, ?Width, ?Height);

ウインドウの中身のダンプ/アンダンプ xtDrawWriteWindowDump(+WidgetName, +Filename) xtDrawReadWindowDump(+WidgetName, +Src_x, +Src_y, +Width, +Height, +Dest_x, +Dest_y, +Filename) xtDrawQueryDumpFile(+Filename, ?Width, ?Height)


Up read on...