.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium .\" .\" Permission is hereby granted, free of charge, to any person obtaining .\" a copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, .\" distribute, sublicense, and/or sell copies of the Software, and to .\" permit persons to whom the Software is furnished to do so, subject to .\" the following conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR .\" OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of the X Consortium shall .\" not be used in advertising or otherwise to promote the sale, use or .\" other dealings in this Software without prior written authorization .\" from the X Consortium. .\" .\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by .\" Digital Equipment Corporation .\" .\" Portions Copyright \(co 1990, 1991 by .\" Tektronix, Inc. .\" .\" Permission to use, copy, modify and distribute this documentation for .\" any purpose and without fee is hereby granted, provided that the above .\" copyright notice appears in all copies and that both that copyright notice .\" and this permission notice appear in all copies, and that the names of .\" Digital and Tektronix not be used in in advertising or publicity pertaining .\" to this documentation without specific, written prior permission. .\" Digital and Tektronix makes no representations about the suitability .\" of this documentation for any purpose. .\" It is provided ``as is'' without express or implied warranty. .\" .\" Copyright (c) 1998, 2001 The X Japanese Documentation Project. .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, dis- .\" tribute, sublicense, and/or sell copies of the Software, and to permit .\" persons to whom the Software is furnished to do so, subject to the fol- .\" lowing conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- .\" ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT .\" SHALL THE X JAPANESE DOCUMENTATION PROJECT BE LIABLE FOR ANY CLAIM, .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of The X Japanese .\" Documentation Project shall not be used in advertising or otherwise to .\" promote the sale, use or other dealings in this Software without prior .\" written authorization from The X Japanese Documentation Project. .\" .\" X Window System is a trademark of The Open Group. .\" .\" Translated Thu Oct 8 02:31:35 JST 1998 .\" by FUJIWARA Teruyoshi .\" Updated Thu Sep 27 02:46:46 JST 2001 for XFree86 4.1.0 .\" by FUJIWARA Teruyoshi .\" .\" $XFree86: xc/doc/man/X11/XFillRect.man,v 1.3 2001/02/09 03:47:45 tsi Exp $ .\" .ds xT X Toolkit Intrinsics \- C Language Interface .ds xW Athena X Widgets \- C Language X Toolkit Interface .ds xL Xlib \- C Language X Interface .ds xC Inter-Client Communication Conventions Manual .na .de Ds .nf .\\$1D \\$2 \\$1 .ft 1 .\".ps \\n(PS .\".if \\n(VS>=40 .vs \\n(VSu .\".if \\n(VS<=39 .vs \\n(VSp .. .de De .ce 0 .if \\n(BD .DF .nr BD 0 .in \\n(OIu .if \\n(TM .ls 2 .sp \\n(DDu .fi .. .de FD .LP .KS .TA .5i 3i .ta .5i 3i .nf .. .de FN .fi .KE .LP .. .de IN \" send an index entry to the stderr .. .de C{ .KS .nf .D .\" .\" choose appropriate monospace font .\" the imagen conditional, 480, .\" may be changed to L if LB is too .\" heavy for your eyes... .\" .ie "\\*(.T"480" .ft L .el .ie "\\*(.T"300" .ft L .el .ie "\\*(.T"202" .ft PO .el .ie "\\*(.T"aps" .ft CW .el .ft R .ps \\n(PS .ie \\n(VS>40 .vs \\n(VSu .el .vs \\n(VSp .. .de C} .DE .R .. .de Pn .ie t \\$1\fB\^\\$2\^\fR\\$3 .el \\$1\fI\^\\$2\^\fP\\$3 .. .de ZN .ie t \fB\^\\$1\^\fR\\$2 .el \fI\^\\$1\^\fP\\$2 .. .de hN .ie t <\fB\\$1\fR>\\$2 .el <\fI\\$1\fP>\\$2 .. .de NT .ne 7 .ds NO Note .if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2 .if \\n(.$ .if !'\\$1'C' .ds NO \\$1 .ie n .sp .el .sp 10p .TB .ce \\*(NO .ie n .sp .el .sp 5p .if '\\$1'C' .ce 99 .if '\\$2'C' .ce 99 .in +5n .ll -5n .R .. . \" Note End -- doug kraft 3/85 .de NE .ce 0 .in -5n .ll +5n .ie n .sp .el .sp 10p .. .ny0 .TH XFillRectangle 3X11 "Release 6.5" "X Version 11" "XLIB FUNCTIONS" .SH 名前 .\"0 XFillRectangle, XFillRectangles, XFillPolygon, XFillArc, XFillArcs \- fill rectangles, polygons, or arcs XFillRectangle, XFillRectangles, XFillPolygon, XFillArc, XFillArcs \- 長方形、多角形、円弧を塗りつぶす .SH 書式 XFillRectangle\^(\^\fIdisplay\fP, \fId\fP\^, \fIgc\fP\^, \fIx\fP\^, \fIy\fP\^, \fIwidth\fP\^, \fIheight\fP\^) .br Display *\fIdisplay\fP\^; .br Drawable \fId\fP\^; .br GC \fIgc\fP\^; .br int \fIx\fP\^, \fIy\fP\^; .br unsigned int \fIwidth\fP\^, \fIheight\fP\^; .LP XFillRectangles\^(\^\fIdisplay\fP, \fId\fP\^, \fIgc\fP\^, \fIrectangles\fP\^, \fInrectangles\fP\^) .br Display *\fIdisplay\fP\^; .br Drawable \fId\fP\^; .br GC \fIgc\fP\^; .br XRectangle *\fIrectangles\fP\^; .br int \fInrectangles\fP\^; .LP XFillPolygon\^(\^\fIdisplay\fP, \fId\fP\^, \fIgc\fP\^, \fIpoints\fP\^, \fInpoints\fP\^, \fIshape\fP\^, \fImode\fP\^) .br Display *\fIdisplay\fP\^; .br Drawable \fId\fP\^; .br GC \fIgc\fP\^; .br XPoint *\fIpoints\fP\^; .br int \fInpoints\fP\^; .br int \fIshape\fP\^; .br int \fImode\fP\^; .LP XFillArc\^(\^\fIdisplay\fP, \fId\fP\^, \fIgc\fP\^, \fIx\fP\^, \fIy\fP\^, \fIwidth\fP\^, \fIheight\fP\^, \fIangle1\fP\^, \fIangle2\fP\^) .br Display *\fIdisplay\fP\^; .br Drawable \fId\fP\^; .br GC \fIgc\fP\^; .br int \fIx\fP\^, \fIy\fP\^; .br unsigned int \fIwidth\fP\^, \fIheight\fP\^; .br int \fIangle1\fP\^, \fIangle2\fP\^; .LP XFillArcs\^(\^\fIdisplay\fP, \fId\fP\^, \fIgc\fP\^, \fIarcs\fP\^, \fInarcs\fP\^) .br Display *\fIdisplay\fP\^; .br Drawable \fId\fP\^; .br GC \fIgc\fP\^; .br XArc *\fIarcs\fP\^; .br int \fInarcs\fP\^; .SH 引き数 .IP \fIangle1\fP 1i .\"0 Specifies the start of the arc relative to the three-o'clock position .\"0 from the center, in units of degrees * 64. 開始角を指定する。 基準は円の中央から3時の方向であり、単位は弧度 * 64である。 .IP \fIangle2\fP 1i .\"0 Specifies the path and extent of the arc relative to the start of the .\"0 arc, in units of degrees * 64. 開始角に対して弧の軌跡と領域を指定する。 単位は弧度*64である。 .IP \fIarcs\fP 1i .\"0 Specifies an array of arcs. 円弧の配列を指定する。 .IP \fId\fP 1i .\"0 Specifies the drawable. ドロウアブルを指定する。 .IP \fIdisplay\fP 1i .\"0 Specifies the connection to the X server. X サーバへの接続を指定する。 .IP \fIgc\fP 1i .\"0 Specifies the GC. GC を指定する。 .IP \fImode\fP 1i .\"0 Specifies the coordinate mode. 座標モードを指定する。 .\"0 You can pass .\"0 .ZN CoordModeOrigin .\"0 or .\"0 .ZN CoordModePrevious . .ZN CoordModeOrigin あるいは .ZN CoordModePrevious を渡すことができる。 .IP \fInarcs\fP 1i .\"0 Specifies the number of arcs in the array. 配列中の円弧の数を指定する。 .IP \fInpoints\fP 1i .\"0 Specifies the number of points in the array. 配列中の点の数を指定する。 .IP \fInrectangles\fP 1i .\"0 Specifies the number of rectangles in the array. 配列中の長方形の数を指定する。 .IP \fIpoints\fP 1i .\"0 Specifies an array of points. 点の配列を指定する。 .IP \fIrectangles\fP 1i .\"0 Specifies an array of rectangles. 長方形の配列を指定する。 .IP \fIshape\fP 1i .\"0 Specifies a shape that helps the server to improve performance. サーバの効率向上の補助をするための形状を指定する。 .\"0 You can pass .\"0 .ZN Complex , .\"0 .ZN Convex , .\"0 or .\"0 .ZN Nonconvex . .ZN Complex , .ZN Convex , .ZN Nonconvex のいずれかを渡すことができる。 .\"0 .ds Wh , which are the dimensions of the rectangle to be filled .\"0 or the major and minor axes of the arc .ds Wh これは塗りつぶされる長方形の大きさか、円弧の長軸と短軸である。 .IP \fIwidth\fP 1i .br .ns .IP \fIheight\fP 1i .\"0 Specify the width and height\*(Wh. 幅と高さを指定する。 .\"0 .ds Xy , which are relative to the origin of the drawable .\"0 and specify the upper-left corner of the rectangle .ds Xy これはドロウアブルの原点に対して、長方形の左上隅を指定する。 .IP \fIx\fP 1i .br .ns .IP \fIy\fP 1i .\"0 Specify the x and y coordinates\*(Xy. x, y 座標を指定する。 .SH 説明 .\"0 The .\"0 .ZN XFillRectangle .\"0 and .\"0 .ZN XFillRectangles .\"0 functions fill the specified rectangle or rectangles .\"0 as if a four-point .\"0 .ZN FillPolygon .\"0 protocol request were specified for each rectangle: 関数 .ZN XFillRectangle および .ZN XFillRectangles は、4点 .LP .Ds [x,y] [x+width,y] [x+width,y+height] [x,y+height] .De .LP についての .ZN FillPolygon プロトコルリクエストが指定されたかのように、指定した長方形(単数あるい は複数)を塗りつぶす。 .LP .\"0 Each function uses the x and y coordinates, .\"0 width and height dimensions, and GC you specify. どちらの関数も、指定された x, y 座標・幅と高さ・GC を使う。 .LP .\"0 .ZN XFillRectangles .\"0 fills the rectangles in the order listed in the array. .ZN XFillRectangles は配列内で列挙されている順に長方形を塗りつぶす。 .\"0 For any given rectangle, .\"0 .ZN XFillRectangle .\"0 and .\"0 .ZN XFillRectangles .\"0 do not draw a pixel more than once. どんな長方形を与えても、 .ZN XFillRectangle および .ZN XFillRectangles は1つのピクセルを1回しか描画しない。 .\"0 If rectangles intersect, the intersecting pixels are .\"0 drawn multiple times. 長方形が重なっている場合、重なっている部分は複数回描画される。 .LP .\"0 Both functions use these GC components: .\"0 function, plane-mask, fill-style, subwindow-mode, .\"0 clip-x-origin, clip-y-origin, and clip-mask. どちらの関数も以下の GC コンポーネントを使用する: function, plane-mask, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask。 .\"0 They also use these GC mode-dependent components: .\"0 foreground, background, tile, stipple, tile-stipple-x-origin, .\"0 and tile-stipple-y-origin. これらはまた、以下の GC モード依存のコンポーネントを使用する: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin。 .LP .\"0 .ZN XFillRectangle .\"0 and .\"0 .ZN XFillRectangles .\"0 can generate .\"0 .ZN BadDrawable , .\"0 .ZN BadGC , .\"0 and .\"0 .ZN BadMatch .\"0 errors. .ZN XFillRectangle および .ZN XFillRectangles はエラー .ZN BadDrawable , .ZN BadGC , .ZN BadMatch を起こすことがある。 .LP .\"0 .ZN XFillPolygon .\"0 fills the region closed by the specified path. .ZN XFillPolygon は指定されたパスで閉じた領域を塗りつぶす。 .\"0 The path is closed .\"0 automatically if the last point in the list does not coincide with the .\"0 first point. リストの最後の点が最初の点と一致しない場合には、パスは自動的に閉じられる。 .\"0 .ZN XFillPolygon .\"0 does not draw a pixel of the region more than once. .ZN XFillPolygon は、ある1つのピクセル領域について1回しか描画しない。 .\"0 .ZN CoordModeOrigin .\"0 treats all coordinates as relative to the origin, .\"0 and .\"0 .ZN CoordModePrevious .\"0 treats all coordinates after the first as relative to the previous point. .ZN CoordModeOrigin では全ての座標を原点からの相対位置で表し、 .ZN CoordModePrevious では全ての座標を前の点からの相対位置で表す。 .LP .\"0 Depending on the specified shape, the following occurs: 指定した shape によっては、以下のことが起こる: .IP \(bu 5 .\"0 If shape is .\"0 .ZN Complex , .\"0 the path may self-intersect. もし shape が .ZN Complex ならば、パスは自己干渉するかもしれない。 .\"0 Note that contiguous coincident points in the path are not treated .\"0 as self-intersection. パス上で隣接する点が一致しても、これは自己干渉として扱わない。 .IP \(bu 5 .\"0 If shape is .\"0 .ZN Convex , .\"0 for every pair of points inside the polygon, .\"0 the line segment connecting them does not intersect the path. shape が .ZN Convex (凸包)の場合には、多角形の内側の任意の点の組について、これらを繋ぐ線分 はパスと干渉しない。 .\"0 If known by the client, .\"0 specifying .\"0 .ZN Convex .\"0 can improve performance. 凸包になることをクライアントが知っている場合、 .ZN Convex を指定することで効率を高めることができる。 .\"0 If you specify .\"0 .ZN Convex .\"0 for a path that is not convex, .\"0 the graphics results are undefined. 凸包でないパスに対して .ZN Convex を指定した場合、表示結果は未定義である。 .IP \(bu 5 .\"0 If shape is .\"0 .ZN Nonconvex , .\"0 the path does not self-intersect, but the shape is not .\"0 wholly convex. shape が .ZN Nonconvex の場合、パスは自己干渉しないが、かならずしも凸包ではない。 .\"0 If known by the client, .\"0 specifying .\"0 .ZN Nonconvex .\"0 instead of .\"0 .ZN Complex .\"0 may improve performance. これをクライアントが知っている場合、 .ZN Complex でなく .ZN Nonconvex を指定することで描画効率を上げることができる。 If you specify .\"0 .ZN Nonconvex .\"0 for a self-intersecting path, the graphics results are undefined. パスが自己干渉している場合に .ZN Nonconvex を指定した場合の表示結果は未定義である。 .LP .\"0 The fill-rule of the GC controls the filling behavior of .\"0 self-intersecting polygons. GC 制御の fill-rule は、自己干渉する多角形の塗りつぶしの挙動を制御する。 .LP .\"0 This function uses these GC components: .\"0 function, plane-mask, fill-style, fill-rule, subwindow-mode, clip-x-origin, .\"0 clip-y-origin, and clip-mask. この関数は以下の GC コンポーネントを使用する: function, plane-mask, fill-style, fill-rule, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask。 .\"0 It also uses these GC mode-dependent components: .\"0 foreground, background, tile, stipple, tile-stipple-x-origin, .\"0 and tile-stipple-y-origin. また、以下の GC モード依存コンポーネントを使用する: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin。 .LP .\"0 .ZN XFillPolygon .\"0 can generate .\"0 .ZN BadDrawable , .\"0 .ZN BadGC , .\"0 .ZN BadMatch , .\"0 and .\"0 .ZN BadValue .\"0 errors. .ZN XFillPolygon はエラー .ZN BadDrawable , .ZN BadGC , .ZN BadMatch , .ZN BadValue を起こすことがある。 .LP .\"0 For each arc, .\"0 .ZN XFillArc .\"0 or .\"0 .ZN XFillArcs .\"0 fills the region closed by the infinitely thin path .\"0 described by the specified arc and, depending on the .\"0 arc-mode specified in the GC, one or two line segments. それぞれの円弧に対して、 .ZN XFillArc や .ZN XFillArcs は指定した円弧が記述する無限に細いパスおよび、GC 内で指定した arc-mode によって決まる1つあるいは2つの線分によって閉じられた領域を塗りつぶす。 .\"0 For .\"0 .ZN ArcChord , .\"0 the single line segment joining the endpoints of the arc is used. .ZN ArcChord の場合には、円弧の端点を繋ぐ1つの線分が使用される。 .\"0 For .\"0 .ZN ArcPieSlice , .\"0 the two line segments joining the endpoints of the arc with the center .\"0 point are used. .ZN ArcPieSlice の場合には、円弧の端点と中心点を結ぶ2つの線分が使用される。 .\"0 .ZN XFillArcs .\"0 fills the arcs in the order listed in the array. .ZN XFillArcs は配列内に列挙されている順に円弧を塗りつぶす。 .\"0 For any given arc, .\"0 .ZN XFillArc .\"0 and .\"0 .ZN XFillArcs .\"0 do not draw a pixel more than once. 与えられた円弧に対し、 .ZN XFillArc と .ZN XFillArcs は1つの点をそれぞれ1度しか描画しない。 .\"0 If regions intersect, .\"0 the intersecting pixels are drawn multiple times. 塗りつぶし領域が重なっている場合、重なっているピクセルは複数回描画され る。 .LP .\"0 Both functions use these GC components: .\"0 function, plane-mask, fill-style, arc-mode, subwindow-mode, clip-x-origin, .\"0 clip-y-origin, and clip-mask. どちらの関数も以下の GC コンポーネントを使用する: function, plane-mask, fill-style, arc-mode, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask。 .\"0 They also use these GC mode-dependent components: .\"0 foreground, background, tile, stipple, tile-stipple-x-origin, .\"0 and tile-stipple-y-origin. また、これらの関数は以下の GC モード依存コンポーネントを使用する: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin。 .LP .\"0 .ZN XFillArc .\"0 and .\"0 .ZN XFillArcs .\"0 can generate .\"0 .ZN BadDrawable , .\"0 .ZN BadGC , .\"0 and .\"0 .ZN BadMatch .\"0 errors. .ZN XFillArc および .ZN XFillArcs はエラー .ZN BadDrawable , .ZN BadGC , .ZN BadMatch を起こすことがある。 .SH 返り値 .TP 1i .ZN BadDrawable .\"0 A value for a Drawable argument does not name a defined Window or Pixmap. 引き数 Drawable の値が、定義されている Window あるいは Pixmap を指してい ない。 .TP 1i .ZN BadGC .\"0 A value for a GContext argument does not name a defined GContext. 引き数 GContext の値が、定義されている GContext を指していない。 .TP 1i .ZN BadMatch .\"0 An .\"0 .ZN InputOnly .\"0 window is used as a Drawable. .ZN InputOnly ウィンドウが Drawable として使用された。 .TP 1i .ZN BadMatch .\"0 Some argument or pair of arguments has the correct type and range but fails .\"0 to match in some other way required by the request. 引き数や引き数の組の型・範囲は正しいが、そのリクエストが要求す る他の条件に適合できなかったものがある。 .TP 1i .ZN BadValue .\"0 Some numeric value falls outside the range of values accepted by the request. .\"0 Unless a specific range is specified for an argument, the full range defined .\"0 by the argument's type is accepted. Any argument defined as a set of .\"0 alternatives can generate this error. 指定された数値に、リクエストの許容範囲を越えているものがある。引き数に対 して特定の範囲が指定されていなければ、引き数の型で定義されている全ての範 囲が許される。選択肢として定義されている引き数はこのエラーを起こすことが ある。 .SH 関連項目 XDrawArc(3X11), XDrawPoint(3X11), XDrawRectangle(3X11) .br \fI\*(xL\fP