XSetLineAttributes(3X11) | XLIB FUNCTIONS | XSetLineAttributes(3X11) |
̾??¶
XSetLineAttributes, XSetDashes - GC ?ʰ״ؿ?
????¶
XSetLineAttributes(display, gc, line_width,
line_style, cap_style, join_style)
Display *display;
GC gc;
unsigned int line_width;
int line_style;
int cap_style;
int join_style;
XSetDashes(display, gc, dash_offset,
dash_list, n)
Display *display;
GC gc;
int dash_offset;
char dash_list[];
int n;
??????¶
- cap_style
- ???ꤷ?? GC ?????ꤹ?????Υ?????????ü???Υ????????????ꤹ?롣 CapNotLast, CapButt, CapRound, CapProjecting ?Τ????줫?????ꤹ?롣
- dash_list
- ???ꤷ?? GC ?????ꤹ???????Υ??????????Ф??????å???(?????ι??????? ?Ǥ???û????)?Υꥹ?Ȥ????ꤹ?롣
- dash_offset
- ???ꤷ?? GC ?????ꤹ???????Υ????????Υѥ??????????????ꤹ?롣
- display
- X ?????Фؤ???³?????ꤹ?롣
- gc
- GC ?????ꤹ?롣
- join_style
- ???ꤷ?? GC ?????ꤹ????????³?????????????ꤹ?롣 JoinMiter, JoinRound, JoinBevel ?Τ????줫?????ꤹ?롣
- line_style
- ???ꤷ?? GC ?????ꤹ?????Υ????????????ꤹ?롣 LineSolid, LineOnOffDash, LineDoubleDash ?Τ????줫?????ꤹ?롣
- line_width
- ???ꤷ?? GC ?????ꤹ?????????????ꤹ?롣
- n
- dash_list ?????ǿ??????ꤹ?롣
????¶
?ؿ? XSetLineAttributes ?ϻ??ꤷ?? GC ???????????Υ????ݡ??ͥ??Ȥ????ꤹ?롣
XSetLineAttributes ?ϥ??顼 BadAlloc, BadGC, BadValue ???????Ȥ????롣
?ؿ? XSetDashes ?ϻ??ꤷ?? GC ???????Υ????????? dash-offset °???? dash-list °???? ?Ȥ??롣 ???ꤷ?? dash_list ?ˤϺ???1?Ĥ????Ǥ??ʤ????Фʤ??ʤ???̵???????ˤ? ???顼 BadValue ?Ȥʤ롣 dash_list ?κǽ??????Ǥ??????ߤ?????(2???ܡ?4??????)?϶??????ܤΥ??å??? ?Ǥ??ꡢ?Ĥ꤬???????ܤΥ??å????Ǥ??롣 ???Ƥ????Ǥ? 0 ?Ǥ??äƤϤʤ餺???????Ǥʤ??????ϥ??顼 BadValue ?Ȥʤ롣 ???????ܤ?Ĺ???Υꥹ?Ȥ????ꤹ?뤳?Ȥϡ???ʬ???Ȥ??Ҥ?????Ʊ???ꥹ?Ȥ? ???ꤷ?ƶ??????ܤ?Ĺ???Υꥹ?Ȥ????뤳?Ȥ??????Ǥ??롣
dash-offset ?ϥѥ??????ΰ????????????롣 ??????ñ?ȤΥ????ե??å????ꥯ?????Ȥǡ?dash-list ???Τ????ĤΥԥ????? ?ǥѥ????????ºݤ˻Ϥ??뤫?????ꤹ?롣 ?????? join-style ?ȷҤ????ޤǵ?????³??????????????????³?????????? ?ϳƥ??????֤ǰ????? dash-offset ?˺????ꤵ???롣
???å?????Ĺ????ñ?̤ϡ??̾??κ?ɸ?Ϥ?Ʊ???Ǥ??롣 ????Ū?ˤϥ??å?????Ĺ???????θ??ۤ˱??ä?¬???٤??????????????Ф????? ?ᤵ???Ƥ????ΤϿ?ʿ?????ȿ?ľ?????ξ?????????Ū?ˤʤäƤ??뤳?Ȥ????? ?? ?롣 ????Ū?ˤǤ??ʤ??????Τ????ˡ?????Ĺ???˱??ä?Ĺ????¬????ˡ???Ƥ? ???? x ???Ȥʤ??Ƥ?-45?٤???+45?١?135?٤???225?٤Ǥ????????Ф??Ƥϡ?x ?? ??Ĺ???Ǥ??????????????롣 ?????ʳ??ξ????ˤϡ?Ĺ???? y ???Ǥ??롣
XSetDashes ?ϥ??顼 BadAlloc, BadGC, BadValue ???????Ȥ????롣
?֤???¶
- BadAlloc
- ?ᤵ?줿??????䥵???Х??????γ??????Ƥ˥????Ф????Ԥ?????
- BadGC
- ?????? GContext ???ͤ????????????Ƥ??? GContext ???ؤ??Ƥ??ʤ???
- BadValue
- ???ꤵ?줿???ͤˡ??ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????????? ???????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ??????Ƥ??? ?Ϥ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼???????Ȥ? ???롣
??Ϣ????¶
XCreateGC(3X11), XQueryBestSize(3X11), XSetArcMode(3X11),
XSetClipOrigin(3X11), XSetFillStyle(3X11), XSetFont(3X11), XSetState(3X11),
XSetTile(3X11)
Xlib - C Language X Interface
Release 6.5 | X Version 11 |