'\" e .\" 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 Wed Sep 30 21:54:05 JST 1998 .\" by FUJIWARA Teruyoshi .\" Corrected by NAKANO Takeo .\" Updated Sun Sep 23 19:56:49 JST 2001 for XFree86 4.1.0 .\" by FUJIWARA Teruyoshi .\" .\" WORD: aspect ratio アスペクト比 .\" .\" $XFree86: xc/doc/man/X11/XDrArc.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 '\" e .TH XDrawArc 3X11 "Release 6.5" "X Version 11" "XLIB FUNCTIONS" .SH 名前 .\"0 XDrawArc, XDrawArcs, XArc \- draw arcs and arc structure XDrawArc, XDrawArcs, XArc \- 円弧/楕円弧の描画、弧を表す構造体 .SH 書式 XDrawArc\^(\^\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 XDrawArcs\^(\^\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時の位置を結んだ線を基準として弧の開始角を指定する。 単位は弧度(degree)*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 \fInarcs\fP 1i .\"0 Specifies the number of arcs in the array. 配列中の弧の数を指定する。 .ds Wh , which are the major and minor axes of the arc .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 bounding rectangle .IP \fIx\fP 1i .br .ns .IP \fIy\fP 1i .\"0 Specify the x and y coordinates\*(Xy. x, y 座標を指定する。 これはドロウアブルの原点からの相対座標であり、円弧を囲む長方形の左上隅 の座標である。 .SH 説明 .EQ delim %% .EN .\"0 .ZN XDrawArc .\"0 draws a single circular or elliptical arc, and .\"0 .ZN XDrawArcs .\"0 draws multiple circular or elliptical arcs. 関数 .ZN XDrawArc は単独の円あるいは楕円の弧を描画し、 .ZN XDrawArcs は複数の円あるいは楕円の弧を描画する。 は .\"0 Each arc is specified by a rectangle and two angles. それぞれの弧は長方形と2つの角度で指定される。 .\"0 The center of the circle or ellipse is the center of the .\"0 rectangle, and the major and minor axes are specified by the width and height. 円、あるいは楕円の弧の中心は長方形の中心であり、長軸と短軸は長方形の幅 と高さで指定する。 .\"0 Positive angles indicate counterclockwise motion, .\"0 and negative angles indicate clockwise motion. 正の角度は反時計周りの向きを示し、負の角度は時計周りの向きを示す。 .\"0 If the magnitude of angle2 is greater than 360 degrees, .\"0 .ZN XDrawArc .\"0 or .\"0 .ZN XDrawArcs .\"0 truncates it to 360 degrees. angle2 の大きさが360度以上の場合、 .ZN XDrawArc や .ZN XDrawArcs はこの角度を360度に縮める。 .LP .\"0 For an arc specified as %[ ~x, ~y, ~width , ~height, ~angle1, ~angle2 ]%, .\"0 the origin of the major and minor axes is at .\"0 % [ x +^ {width over 2} , ~y +^ {height over 2} ]%, .\"0 and the infinitely thin path describing the entire circle or ellipse .\"0 intersects the horizontal axis at % [ x, ~y +^ {height over 2} ]% and .\"0 % [ x +^ width , ~y +^ { height over 2 }] % .\"0 and intersects the vertical axis at % [ x +^ { width over 2 } , ~y ]% and .\"0 % [ x +^ { width over 2 }, ~y +^ height ]%. %[ ~x, ~y, ~width , ~height, ~angle1, ~angle2 ]% で指定される弧の場合、 長軸と短軸の原点は % [ x +^ {width over 2} , ~y +^ {height over 2} ]% である。また、円や楕円の無限に細い軌跡は横軸とは % [ x, ~y +^ {height over 2} ]% と % [ x +^ width , ~y +^ { height over 2 }] % で交わり、縦軸とは % [ x +^ { width over 2 } , ~y ]% % [ x +^ { width over 2 }, ~y +^ height ]% で交わる。 .\"0 These coordinates can be fractional .\"0 and so are not truncated to discrete coordinates. これらの座標は小数であり、離散的な座標には丸められない。 .\"0 The path should be defined by the ideal mathematical path. 軌跡は数学的に厳密に定義すべきである。 .\"0 For a wide line with line-width lw, .\"0 the bounding outlines for filling are given .\"0 by the two infinitely thin paths consisting of all points whose perpendicular .\"0 distance from the path of the circle/ellipse is equal to lw/2 .\"0 (which may be a fractional value). 幅 lw を持つ線の場合、塗りつぶしの輪郭線は、円/楕円の軌跡からの距離が lw/2(これは小数になり得る) に等しい点からなる2つの無限に細い軌跡によっ て与えられる。 .\"0 The cap-style and join-style are applied the same as for a line .\"0 corresponding to the tangent of the circle/ellipse at the endpoint. 弧の端点については、その円/楕円の接線に対する cap_style や join_style と同じものが用いられる。 .LP .\"0 For an arc specified as % [ ~x, ~y, ~width, ~height, ~angle1, ~angle2 ]%, .\"0 the angles must be specified .\"0 in the effectively skewed coordinate system of the ellipse (for a .\"0 circle, the angles and coordinate systems are identical). The % [ ~x, ~y, ~width, ~height, ~angle1, ~angle2 ]% で指定される弧の場合、 この角度は実際には歪んでいる楕円の座標系で定義しなければならない(円の 場合には、角度と座標系は一致している)。 .\"0 relationship between these angles and angles expressed in the normal .\"0 coordinate system of the screen (as measured with a protractor) is as .\"0 follows: これらの角度とスクリーンの通常の座標系で表現される角度(分度器で測るよ うな角度)の関係は次式で表される。 .LP .Ds % roman "skewed-angle" ~ = ~ atan left ( tan ( roman "normal-angle" ) * width over height right ) +^ adjust% .De .LP .\"0 The skewed-angle and normal-angle are expressed in radians (rather .\"0 than in degrees scaled by 64) in the range % [ 0 , ~2 pi ]% and where atan .\"0 returns a value in the range % [ - pi over 2 , ~pi over 2 ] % .\"0 and adjust is: skewed-angle と normal-angle は範囲が % [ 0 , ~2 pi ]% のラジアン(64 で割った弧度ではない)で表される。この角度のアークタンジェントは範囲 % [ - pi over 2 , ~pi over 2 ] % を返す。また、adjust は以下の値を取 る。 .LP .Ds .TA 1i 2i .ta 1i 2i .\"0 %0% for normal-angle in the range % [ 0 , ~pi over 2 ]% .\"0 %pi% for normal-angle in the range % [ pi over 2 , ~{3 pi} over 2 ]% .\"0 %2 pi% for normal-angle in the range % [ {3 pi} over 2 , ~2 pi ]% %0% 通常の角度が % [ 0 , ~pi over 2 ]% の範囲にある場合 %pi% 通常の角度が % [ pi over 2 , ~{3 pi} over 2 ]% の範囲にある場合 %2 pi% 通常の角度が % [ {3 pi} over 2 , ~2 pi ]% の範囲にある場合 .De .LP .\"0 For any given arc, .\"0 .ZN XDrawArc .\"0 and .\"0 .ZN XDrawArcs .\"0 do not draw a pixel more than once. 与えられた弧について、 .ZN XDrawArc と .ZN XDrawArcs は、1つのピクセルを1度しか描画しない。 .\"0 If two arcs join correctly and if the line-width is greater than zero .\"0 and the arcs intersect, .\"0 .ZN XDrawArc .\"0 and .\"0 .ZN XDrawArcs .\"0 do not draw a pixel more than once. 正しく接続している2つの弧の幅が 0 より大きく、弧が交わっている場合に は、 .ZN XDrawArc と .ZN XDrawArcs は、1つのピクセルを1度しか描画しない。 .\"0 Otherwise, .\"0 the intersecting pixels of intersecting arcs are drawn multiple times. そうでない場合、交わっている弧のピクセルは複数回描画される。 .\"0 Specifying an arc with one endpoint and a clockwise extent draws the same pixels .\"0 as specifying the other endpoint and an equivalent counterclockwise extent, .\"0 except as it affects joins. ある端点から時計周りに指定した弧と他方の端点から反時計周りに同じ角度を 指定した弧は、接続に違いが出る以外は同じピクセルを描画する。 .LP .\"0 If the last point in one arc coincides with the first point in the following .\"0 arc, the two arcs will join correctly. ある弧の終点と次の弧の最初の点が一致した場合、2つの弧は正しく接続され る。 .\"0 If the first point in the first arc coincides with the last point in the last .\"0 arc, the two arcs will join correctly. 最初の弧の最初の点と最後の弧の最後の点が一致する場合、2つの弧は正しく 接続される。 .\"0 By specifying one axis to be zero, a horizontal or vertical line can be .\"0 drawn. 1つの軸に 0 を指定すれば、水平な線か垂直な線を描くことができる。 .\"0 Angles are computed based solely on the coordinate system and ignore the .\"0 aspect ratio. 角度は単に座標系に基づいて計算され、アスペクト比は無視される。 .LP .\"0 Both functions use these GC components: .\"0 function, plane-mask, line-width, line-style, cap-style, join-style, .\"0 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 tile-stipple-y-origin, dash-offset, and dash-list. どちらの関数も以下の GC コンポーネントを使用する。 function, plane-mask, line-width, line-style, cap-style, join-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. They also use these GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dash-list. .LP .\"0 .ZN XDrawArc .\"0 and .\"0 .ZN XDrawArcs .\"0 can generate .\"0 .ZN BadDrawable , .\"0 .ZN BadGC , .\"0 and .\"0 .ZN BadMatch .\"0 errors. .ZN XDrawArc と .ZN XDrawArcs はエラー .ZN BadDrawable , .ZN BadGC , .ZN BadMatch を起こすことがある。 .SH 構造体 .\"0 The .\"0 .ZN XArc .\"0 structure contains: .ZN XArc 構造体の内容を示す。 .LP .Ds 0 .TA .5i 3i .ta .5i 3i typedef struct { short x, y; unsigned short width, height; short angle1, angle2; } XArc; .De .LP .\"0 All x and y members are signed integers. x, y メンバは符号付きの整数である。 .\"0 The width and height members are 16-bit unsigned integers. width, height メンバは16ビットの符号なし整数である。 .\"0 You should be careful not to generate coordinates and sizes .\"0 out of the 16-bit ranges, because the protocol only has 16-bit fields .\"0 for these values. プロトコルはこれらの値について16ビットのフィールドしか持っていないので、 座標やサイズが16ビットの範囲を越えないように注意しなければならない。 .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 のウィンドウがドロウアブルとして指定された。 .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. 引き数や引き数の組は正しい型・範囲を持っているが、そのリクエストが要求する 他の条件に適合できなかった。 .SH 関連項目 XDrawLine(3X11), XDrawPoint(3X11), XDrawRectangle(3X11) .br \fI\*(xL\fP