XDrawImageString(3X11) | XLIB FUNCTIONS | XDrawImageString(3X11) |
̾Á°¶
XDrawImageString, XDrawImageString16 - ¥¤¥á¡¼¥¸¥Æ¥¥¹¥È¤ÎÉÁ²è
½ñ¼°¶
XDrawImageString(display, d, gc, x,
y, string, length)
Display *display;
Drawable d;
GC gc;
int x, y;
char *string;
int length;
XDrawImageString16(display, d, gc, x,
y, string, length)
Display *display;
Drawable d;
GC gc;
int x, y;
XChar2b *string;
int length;
°ú¤¿ô¶
ÀâÌÀ¶
´Ø¿ô XDrawImageString16 ¤Ï XDrawImageString ¤ÈƱÍͤδؿô¤Ç¤¢¤ë¤¬¡¢2¥Ð¥¤¥È¤Ä¤Þ¤ê16¥Ó¥Ã¥È¤Îʸ»ú¤ò»È¤¦ÅÀ¤¬°Û¤Ê¤ë¡£ ¤¤¤º¤ì¤Î´Ø¿ô¤âÉÁ²èÂоݤΠGC ¤ÎÁ°·Ê¿§¤ÈÇØ·Ê¿§¤Î¥Ô¥¯¥»¥ë¤ÎξÊý¤ò»È¤¦¡£
´Ø¿ô¤ÎÆ°ºî¤È¤·¤Æ¤Ï¡¢¤Þ¤ºÉÁ²èÂоݤÎĹÊý·ÁÎΰè¤ò GC ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ëÇØ·Ê ¿§¤Î¥Ô¥¯¥»¥ë¤ÇÅɤê¤Ä¤Ö¤·¡¢¼¡¤ËÁ°·Ê¿§¤Ç¥Æ¥¥¹¥È¤òÉÁ¤¯¡£ Åɤê¤Ä¤Ö¤µ¤ì¤ëĹÊý·Á¤Îº¸¾å¤ÎÅÀ¤ÎºÂɸ¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ë¡£
[x, y - font-ascent]
Éý¤Ï
overall-width
¤È¤Ê¤ê¡¢¹â¤µ¤Ï
font-ascent + font-descent
¤È¤Ê¤ë¡£ ¤³¤Î overall-width, font-ascent, and font-descent ¤Ï GC ¤Èʸ»úÎó¤ËÂФ· ¤Æ XQueryTextExtents ¤¬ÊÖ¤¹ÃͤǤ¢¤ë¡£ ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢GC ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë function ¤È fill-style ¤ò̵»ë¤¹¤ë¡£ ¼ÂºÝ¤Ë»È¤ï¤ì¤ë function ¤Ï GXcopy ¤Ç¤¢¤ê¡¢¼ÂºÝ¤Ë»È¤ï¤ì¤ë fill-style ¤Ï FillSolid ¤Ç¤¢¤ë¡£
2¥Ð¥¤¥È¹ÔÎó·Á¼°¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤ÇÄêµÁ¤µ¤ì¡¢ XDrawImageString ¤Ç»È¤ï¤ì¤ë¥Õ¥©¥ó¥È¤ËÂФ·¤Æ¤Ï¡¢³Æ¥Ð¥¤¥È¤Ï byte2 ¤È¤·¤Æ°·¤ï¤ì¡¢byte1 ¤Ï 0 ¤È¤·¤Æ°·¤ï¤ì¤ë¡£
¤¤¤º¤ì¤Î´Ø¿ô¤â°Ê²¼¤Î GC ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò»ÈÍѤ¹¤ë: plane-mask, foreground, background, font, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask¡£
XDrawImageString ¤È XDrawImageString16 ¤Ï¥¨¥é¡¼ BadDrawable, BadGC, BadMatch ¤òµ¯¤³¤¹¤³¤È¤¬¤¢¤ë¡£
ÊÖ¤êÃͶ
- BadDrawable
- °ú¤¿ô Drawable ¤ÎÃͤ¬¡¢ÄêµÁ¤µ¤ì¤Æ¤¤¤ë Window ¤ä Pixmap ¤ò»Ø¤·¤Æ¤¤¤Ê¤¤¡£
- BadGC
- °ú¤¿ô GContext ¤ÎÃͤ¬¡¢ÄêµÁ¤µ¤ì¤Æ¤¤¤ë GContext ¤ò»Ø¤·¤Æ¤¤¤Ê¤¤¡£
- BadMatch
- InputOnly ¤Î¥¦¥£¥ó¥É¥¦¤¬¥É¥í¥¦¥¢¥Ö¥ë¤È¤·¤Æ»ÈÍѤµ¤ì¤¿¡£
- BadMatch
- °ú¤¿ô¤ä°ú¤¿ô¤ÎÁȤÏÀµ¤·¤¤·¿¡¦ÈϰϤò»ý¤Ã¤Æ¤¤¤ë¤¬¡¢¤½¤Î¥ê¥¯¥¨¥¹¥È¤¬Í׵᤹¤ë ¾¤Î¾ò·ï¤ËŬ¹ç¤Ç¤¤Ê¤«¤Ã¤¿¡£
´ØÏ¢¹àÌܶ
XDrawString(3X11), XDrawText(3X11), XLoadFont(3X11),
XTextExtents(3X11)
Xlib - C Language X Interface
Release 6.5 | X Version 11 |