Scroll to navigation

XDrawString(3X11) XLIB FUNCTIONS XDrawString(3X11)

̾Á°

XDrawString, XDrawString16 - ¥Æ¥­¥¹¥Èʸ»úÎó¤òÉÁ²è¤¹¤ë

½ñ¼°

XDrawString(display, d, gc, x, y, string, length)
Display *display;
Drawable d;
GC gc;
int x, y;
char *string;
int length;

XDrawString16(display, d, gc, x, y, string, length)
Display *display;
Drawable d;
GC gc;
int x, y;
XChar2b *string;
int length;

°ú¤­¿ô

¥É¥í¥¦¥¢¥Ö¥ë¤ò»ØÄꤹ¤ë¡£
X ¥µ¡¼¥Ð¤Ø¤ÎÀܳ¤ò»ØÄꤹ¤ë¡£
GC ¤ò»ØÄꤹ¤ë¡£
°ú¤­¿ô stirng Æâ¤Îʸ»ú¿ô¤ò»ØÄꤹ¤ë¡£
ʸ»úÎó¤ò»ØÄꤹ¤ë¡£

x, y ºÂɸ¤ò»ØÄꤹ¤ë¡£ ¤³¤ì¤Ï»ØÄꤷ¤¿¥É¥í¥¦¥¢¥Ö¥ë¤Î¸¶ÅÀ¤«¤é¤ÎÁêÂкÂɸ¤Ç¤¢¤ê¡¢ ºÇ½é¤Îʸ»ú¤Î¸¶ÅÀ¤òÄêµÁ¤¹¤ë¡£

ÀâÌÀ

GC Æâ¤Î¥Õ¥©¥ó¥È¤ÇÄêµÁ¤µ¤ì¤ë³Æʸ»ú¤Ï¤Î¥¤¥á¡¼¥¸¤Ï¡¢¥É¥í¥¦¥¢¥Ö¥ë¤Î Åɤê¤Ä¤Ö¤·Áàºî¤Ø¤ÎÄɲäΥޥ¹¥¯¤È¤·¤Æ°·¤ï¤ì¤ë¡£ ¥É¥í¥¦¥¢¥Ö¥ë¤Î½ñ¤­´¹¤¨¤é¤ì¤ëÉôʬ¤Ï¡¢¥Õ¥©¥ó¥È¤Îʸ»ú¤Î¥Ó¥Ã¥È¤¬ 1 ¤ËÀßÄê ¤µ¤ì¤Æ¤¤¤ë¤È¤³¤í¤À¤±¤Ç¤¢¤ë¡£ 2¥Ð¥¤¥È¤Î¹ÔÎó·Á¼°¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤ÇÄêµÁ¤µ¤ì¡¢ XDrawString16 ¤Ç»È¤ï¤ì¤ë¥Õ¥©¥ó¥È¤ËÂФ·¤Æ¤Ï¡¢³Æ¡¹¤Î¥Ð¥¤¥È¤Ï byte2 ¤È¤·¤Æ°·¤ï¤ì¡¢byte1 ¤Ï 0 ¤È¤ß¤Ê¤µ¤ì¤ë¡£

¤É¤Á¤é¤Î´Ø¿ô¤â°Ê²¼¤Î GC ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò»ÈÍѤ¹¤ë: function, plane-mask, fill-style, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask¡£ ¤Þ¤¿¡¢¤É¤Á¤é¤Î´Ø¿ô¤â¤³¤ì¤é¤Î GC ¤Î¥â¡¼¥É¤Ë°Í¸¤¹¤ë¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò »ÈÍѤ¹¤ë: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin¡£

XDrawString ¤È ¤Ï¥¨¥é¡¼ BadDrawable, BadGC, BadMatch ¤òµ¯¤³¤¹¤³¤È¤¬¤¢¤ë¡£

ÊÖ¤êÃÍ

°ú¤­¿ô Drawable ¤ÎÃͤ¬¡¢ÄêµÁ¤µ¤ì¤Æ¤¤¤ë Window ¤ä Pixmap ¤ò»Ø¤·¤Æ¤¤¤Ê¤¤¡£
°ú¤­¿ô GContext ¤ÎÃͤ¬¡¢ÄêµÁ¤µ¤ì¤Æ¤¤¤ë GContext ¤ò»Ø¤·¤Æ¤¤¤Ê¤¤¡£
InputOnly ¤Î¥¦¥£¥ó¥É¥¦¤¬¥É¥í¥¦¥¢¥Ö¥ë¤È¤·¤Æ»ØÄꤵ¤ì¤¿¡£
°ú¤­¿ô¤ä°ú¤­¿ô¤ÎÁȤη¿¤ÈÈϰϤÏÀµ¤·¤¤¤¬¡¢¤½¤Î¥ê¥¯¥¨¥¹¥È¤¬Í׵᤹¤ë ¾¤Î¾ò·ï¤ËŬ¹ç¤Ç¤­¤Ê¤«¤Ã¤¿¡£

´ØÏ¢¹àÌÜ

XDrawImageString(3X11), XDrawText(3X11), XLoadFont(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11