亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gdkgc-x11.c

?? linux下電話本所依賴的一些圖形庫
?? C
?? 第 1 頁 / 共 3 頁
字號:
    if (x11_dst_gc->stipple)    g_object_unref (x11_dst_gc->stipple);  x11_dst_gc->stipple = x11_src_gc->stipple;  if (x11_dst_gc->stipple)    g_object_ref (x11_dst_gc->stipple);    if (x11_dst_gc->tile)    g_object_unref (x11_dst_gc->tile);  x11_dst_gc->tile = x11_src_gc->tile;  if (x11_dst_gc->tile)    g_object_ref (x11_dst_gc->tile);  clear_fg_picture (dst_gc);}/** * gdk_gc_get_screen: * @gc: a #GdkGC. * * Gets the #GdkScreen for which @gc was created * * Returns: the #GdkScreen for @gc. * * Since: 2.2 */GdkScreen *  gdk_gc_get_screen (GdkGC *gc){  g_return_val_if_fail (GDK_IS_GC_X11 (gc), NULL);    return GDK_GC_X11 (gc)->screen;}/** * gdk_x11_gc_get_xdisplay: * @gc: a #GdkGC. *  * Returns the display of a #GdkGC. *  * Return value: an Xlib <type>Display*</type>. **/Display *gdk_x11_gc_get_xdisplay (GdkGC *gc){  g_return_val_if_fail (GDK_IS_GC_X11 (gc), NULL);  return GDK_SCREEN_XDISPLAY (gdk_gc_get_screen (gc));}/** * gdk_x11_gc_get_xgc: * @gc: a #GdkGC. *  * Returns the X GC of a #GdkGC. *  * Return value: an Xlib <type>GC</type>. **/GCgdk_x11_gc_get_xgc (GdkGC *gc){  GdkGCX11 *gc_x11;    g_return_val_if_fail (GDK_IS_GC_X11 (gc), NULL);  gc_x11 = GDK_GC_X11 (gc);  if (gc_x11->dirty_mask)    _gdk_x11_gc_flush (gc);  return gc_x11->xgc;}/* Various bits of the below are roughly cribbed from XFree86 * lib/Xft/xftdraw.c, Copyright 2000, Keith Packard */static XRenderPictFormat *foreground_format (GdkGC *gc){  XRenderPictFormat pf;  pf.type = PictTypeDirect;  pf.depth = 32;  pf.direct.redMask = 0xff;  pf.direct.greenMask = 0xff;  pf.direct.blueMask = 0xff;  pf.direct.alphaMask = 0xff;  return XRenderFindFormat (GDK_GC_XDISPLAY (gc),			    (PictFormatType |			     PictFormatDepth |			     PictFormatRedMask |			     PictFormatGreenMask |			     PictFormatBlueMask |			     PictFormatAlphaMask),			    &pf,			    0);}static Picturemake_fg_tile_picture (GdkGC *gc){  GdkGCX11 *x11_gc = GDK_GC_X11 (gc);  GdkVisual *visual = gdk_drawable_get_visual (x11_gc->tile);  XRenderPictFormat *format = NULL;  if (visual)    {      format = XRenderFindVisualFormat (GDK_GC_XDISPLAY (gc),					GDK_VISUAL_XVISUAL (visual));    }  else if (x11_gc->depth == 1)    {      format = XRenderFindStandardFormat (GDK_GC_XDISPLAY (gc),					  PictStandardA1);    }  if (format)    {      XRenderPictureAttributes pa;      pa.repeat = True;      return XRenderCreatePicture (GDK_GC_XDISPLAY (gc), 				   GDK_PIXMAP_XID (x11_gc->tile),				   format,				   CPRepeat, &pa);    }  return None;}static Picturemake_stipple_picture (GdkGC *gc){  GdkGCX11 *x11_gc = GDK_GC_X11 (gc);  XRenderPictFormat *format = NULL;  XRenderPictureAttributes pa;    format = XRenderFindStandardFormat (GDK_GC_XDISPLAY (gc),				      PictStandardA1);  pa.repeat = True;  return XRenderCreatePicture (GDK_GC_XDISPLAY (gc), 			       GDK_PIXMAP_XID (x11_gc->stipple),			       format,			       CPRepeat, &pa);}static Picturemake_color_picture (GdkGC        *gc,		    XRenderColor *color){  GdkGCX11 *x11_gc = GDK_GC_X11 (gc);  XRenderPictureAttributes pa;  XRenderPictFormat *pix_format = foreground_format (gc);  Pixmap pix;  Picture picture;    if (!pix_format)    return None;    pix = XCreatePixmap (GDK_GC_XDISPLAY (gc),		       GDK_SCREEN_XROOTWIN (x11_gc->screen),		       1, 1, pix_format->depth);  pa.repeat = True;  picture = XRenderCreatePicture (GDK_GC_XDISPLAY (gc),				  pix,				  pix_format,				  CPRepeat, &pa);  XFreePixmap (GDK_GC_XDISPLAY (gc), pix);    XRenderFillRectangle (GDK_GC_XDISPLAY (gc), PictOpSrc, 			picture, color,			0, 0, 1, 1);  return picture;}static voidget_bg_color (GdkGC        *gc,	      XRenderColor *render_color){  GdkGCX11 *x11_gc = GDK_GC_X11 (gc);  GdkColormap *cmap;    cmap = gdk_gc_get_colormap (gc);  if (cmap)    {      GdkColor color;            gdk_colormap_query_color (cmap, x11_gc->bg_pixel, &color);            render_color->alpha = 0xffff;      render_color->red = color.red;      render_color->green = color.green;      render_color->blue = color.blue;    }  else				/* Not worth warning, just use black */    {      render_color->alpha = 0xffff;      render_color->red = 0;      render_color->green = 0;      render_color->blue = 0;    }}/** * _gdk_x11_gc_get_fg_picture: * @gc: a #GdkGC *  * Gets a Xrender Picture object suitable for being the source * drawable for drawing with the foreground the graphics context. *  * Return value: a Picture, owned by the GC; this cannot be *   used over subsequent modification of the GC. **/Picture_gdk_x11_gc_get_fg_picture (GdkGC *gc){  GdkGCX11 *x11_gc;  gboolean new = FALSE;  XftColor xftcolor;  GdkFill fill;  int width, height;    g_return_val_if_fail (GDK_IS_GC_X11 (gc), None);  if (!_gdk_x11_have_render (GDK_GC_DISPLAY (gc)))    return None;  x11_gc = GDK_GC_X11 (gc);  fill = GDK_SOLID;  width = 1;  height = 1;    switch (x11_gc->fill)    {    case GDK_SOLID:      break;    case GDK_TILED:      if (x11_gc->tile)	{	  if (!x11_gc->fg_picture)	    x11_gc->fg_picture = make_fg_tile_picture (gc);	  if (x11_gc->fg_picture != None)	    return x11_gc->fg_picture;	}      break;    case GDK_STIPPLED:    case GDK_OPAQUE_STIPPLED:      if (x11_gc->stipple)	{	  gdk_drawable_get_size (x11_gc->stipple, &width, &height);	  fill = x11_gc->fill;	}      break;    }    if (x11_gc->fg_picture == None)    {      XRenderPictureAttributes pa;      XRenderPictFormat *pix_format = foreground_format (gc);      Pixmap pix;      if (!pix_format)	return None;      pix = XCreatePixmap (GDK_GC_XDISPLAY (gc), 			   GDK_SCREEN_XROOTWIN (x11_gc->screen),			   width, height, pix_format->depth);      pa.repeat = True;      x11_gc->fg_picture = XRenderCreatePicture (GDK_GC_XDISPLAY (gc), 						 pix,						 pix_format,						 CPRepeat, &pa);      XFreePixmap (GDK_GC_XDISPLAY (gc), pix);            new = TRUE;    }  _gdk_gc_x11_get_fg_xft_color (gc, &xftcolor);    if (x11_gc->fg_picture_color.alpha != 0xffff ||      x11_gc->fg_picture_color.red != xftcolor.color.red ||      x11_gc->fg_picture_color.green != xftcolor.color.green ||      x11_gc->fg_picture_color.blue != xftcolor.color.blue)    {      x11_gc->fg_picture_color.alpha = 0xffff;      x11_gc->fg_picture_color.red = xftcolor.color.red;      x11_gc->fg_picture_color.green = xftcolor.color.green;      x11_gc->fg_picture_color.blue = xftcolor.color.blue;      new = TRUE;    }  switch (fill)    {    case GDK_SOLID:      XRenderFillRectangle (GDK_GC_XDISPLAY (gc), PictOpSrc, 			    x11_gc->fg_picture, &x11_gc->fg_picture_color,			    0, 0, width, height);      break;    case GDK_STIPPLED:      {	Picture stipple_picture = make_stipple_picture (gc);		XRenderFillRectangle (GDK_GC_XDISPLAY (gc), PictOpSrc, 			      x11_gc->fg_picture, &x11_gc->fg_picture_color,			      0, 0, width, height);	XRenderComposite (GDK_GC_XDISPLAY (gc),			  PictOpInReverse,			  stipple_picture, None, x11_gc->fg_picture,			  0, 0, 0, 0, 0, 0, width, height);		XRenderFreePicture (GDK_GC_XDISPLAY (x11_gc), stipple_picture);      }      break;    case GDK_OPAQUE_STIPPLED:      {	XRenderColor bg_color;	Picture stipple_picture = make_stipple_picture (gc);	Picture fg_picture = make_color_picture (gc, &x11_gc->fg_picture_color);	get_bg_color (gc, &bg_color);		XRenderFillRectangle (GDK_GC_XDISPLAY (gc), PictOpSrc, 			      x11_gc->fg_picture, &bg_color,			      0, 0, width, height);	XRenderComposite (GDK_GC_XDISPLAY (gc),			  PictOpOver,			  fg_picture, stipple_picture, x11_gc->fg_picture,			  0, 0, 0, 0, 0, 0, width, height);	XRenderFreePicture (GDK_GC_XDISPLAY (x11_gc), stipple_picture);	XRenderFreePicture (GDK_GC_XDISPLAY (x11_gc), fg_picture);      }      break;    case GDK_TILED:      g_assert_not_reached ();	/* handled above */      break;    }  return x11_gc->fg_picture;}/** * _gdk_gc_x11_get_fg_xft_color: * @gc: a #GdkGC * @xftcolor: location to store the color *  * Gets the foreground color of the GC as a XftColor. **/void_gdk_gc_x11_get_fg_xft_color (GdkGC    *gc,			      XftColor *xftcolor){  GdkGCX11 *x11_gc;  GdkColormap *cmap;  GdkColor color;    g_return_if_fail (GDK_IS_GC_X11 (gc));  x11_gc = GDK_GC_X11 (gc);  cmap = gdk_gc_get_colormap (gc);  xftcolor->pixel = x11_gc->fg_pixel;  if (cmap)    {      gdk_colormap_query_color (cmap, xftcolor->pixel, &color);      xftcolor->color.alpha = 0xffff;      xftcolor->color.red = color.red;      xftcolor->color.green = color.green;      xftcolor->color.blue = color.blue;    }  else if (x11_gc->depth == 1)    {      /* Drawing with Xft on a bitmap is a bit bizzare; it       * takes alpha >= 0x8000 to mean 'set to 1' and       * alpha < 0x8000 to mean 'set to 0'.       */      if (xftcolor->pixel)        {	  xftcolor->color.red = 0xffff;	  xftcolor->color.green = 0xffff;	  xftcolor->color.blue = 0xffff;	  xftcolor->color.alpha = 0xffff;	}      else        {	  xftcolor->color.red = 0;	  xftcolor->color.green = 0;	  xftcolor->color.blue = 0;	  xftcolor->color.alpha = 0;	}    }  else    {      g_warning ("Using Xft rendering requires the GC argument to have a\n"		 "specified colormap. If the GC was created for a drawable\n"		 "with a colormap, the colormap will be set on the GC\n"		 "automatically. Otherwise, a colormap must be set on it with"		 "gdk_gc_set_colormap");    }}void_gdk_windowing_gc_get_foreground (GdkGC    *gc,				  GdkColor *color){  GdkGCX11 *x11_gc;  GdkColormap *cmap;    g_return_if_fail (GDK_IS_GC_X11 (gc));  x11_gc = GDK_GC_X11 (gc);  color->pixel = x11_gc->fg_pixel;  cmap = gdk_gc_get_colormap (gc);  if (cmap)    gdk_colormap_query_color (cmap, x11_gc->fg_pixel, color);  else    g_warning ("No colormap in _gdk_windowing_gc_get_foreground");}#define __GDK_GC_X11_C__#include "gdkaliasdef.c"

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人1区2区| 精品久久人人做人人爰| 久久综合五月天婷婷伊人| 久久爱另类一区二区小说| 精品国产成人在线影院| 成人av资源下载| 亚洲图片激情小说| 欧美视频日韩视频在线观看| 亚洲乱码国产乱码精品精小说| 欧美做爰猛烈大尺度电影无法无天| 人人狠狠综合久久亚洲| 国产精品无人区| 欧美色图第一页| 成人精品视频一区| 日韩av一区二| 樱桃视频在线观看一区| 亚洲第一久久影院| 久久国产精品72免费观看| 国产精品一区二区三区网站| 亚洲激情校园春色| 日韩在线观看一区二区| 一区视频在线播放| 久久精品欧美日韩| 欧美一二区视频| 91最新地址在线播放| 国产一区二区免费在线| 首页国产欧美久久| 韩国三级电影一区二区| 调教+趴+乳夹+国产+精品| 最新久久zyz资源站| 丝袜亚洲另类欧美综合| 激情五月婷婷综合| 在线亚洲高清视频| 欧美成人一级视频| 亚洲美女偷拍久久| 亚洲色图一区二区| 美女网站色91| 99久久久无码国产精品| 欧美日韩在线播| 在线免费观看日本一区| 91.com在线观看| 欧美变态tickling挠脚心| 青青草国产成人av片免费| 欧美一区二区网站| 国产精品久久久久一区二区三区共 | 国产视频一区二区三区在线观看| 日本伊人色综合网| 日韩欧美在线观看一区二区三区| 日本亚洲三级在线| 久久久www成人免费毛片麻豆| 亚洲激情六月丁香| 欧美日本免费一区二区三区| 日本一区二区久久| 天堂va蜜桃一区二区三区漫画版| 欧美日韩大陆一区二区| 老司机精品视频在线| 久久日一线二线三线suv| 国产精品亚洲一区二区三区妖精| 国产精品久久一级| 欧美日韩国产一二三| 国产综合久久久久久久久久久久| 中文字幕亚洲成人| 3d成人动漫网站| 国产成人av电影在线| 欧美精品一区在线观看| 99精品偷自拍| 久久99热99| 一区二区三区产品免费精品久久75| 国产一区二区三区黄视频 | 宅男噜噜噜66一区二区66| 久久国产尿小便嘘嘘尿| 亚洲欧美怡红院| 欧美一区二区三区精品| av色综合久久天堂av综合| 久久久久久免费毛片精品| 欧洲中文字幕精品| 国产成+人+日韩+欧美+亚洲| 一区二区欧美精品| 日本一区二区三区四区在线视频| 国产经典欧美精品| 国产欧美日本一区视频| 欧美日韩精品一区视频| 国产成人av电影在线观看| 五月综合激情网| 日韩伦理免费电影| 国产三级精品三级在线专区| 欧美猛男男办公室激情| 一本色道久久综合狠狠躁的推荐| 国产精品入口麻豆九色| 日韩美女在线视频| 国产+成+人+亚洲欧洲自线| 日韩黄色一级片| 一区二区视频在线| 国产欧美日韩精品在线| 精品久久人人做人人爰| 91精品国产麻豆国产自产在线| 97se亚洲国产综合在线| 国产精品一区三区| 日韩二区三区四区| 亚洲1区2区3区视频| 亚洲一区二区在线播放相泽| 911精品产国品一二三产区| 91天堂素人约啪| 午夜视频久久久久久| 亚洲欧美另类小说| 国产精品沙发午睡系列990531| 精品成人在线观看| 日韩三级av在线播放| 8v天堂国产在线一区二区| 欧美日韩一区二区在线观看视频 | 欧美国产激情二区三区| 国产午夜一区二区三区| 久久老女人爱爱| 国产日韩欧美一区二区三区乱码| 精品欧美一区二区久久 | 成人午夜免费视频| 国产99精品国产| 国产成人av一区二区三区在线| 国产精品一色哟哟哟| 粉嫩高潮美女一区二区三区| 大尺度一区二区| 不卡一区二区三区四区| 99久久亚洲一区二区三区青草| 91在线无精精品入口| 91首页免费视频| 欧美性受xxxx黑人xyx性爽| 欧美优质美女网站| 欧美日韩激情一区| 欧美一级搡bbbb搡bbbb| 久久久久国产精品人| 中文字幕在线一区免费| 一区二区成人在线视频| 天天免费综合色| 激情小说欧美图片| 成人开心网精品视频| 色婷婷亚洲婷婷| 91精品国产品国语在线不卡| 久久精品免视看| 伊人一区二区三区| 免费欧美在线视频| 成人激情图片网| 欧美欧美欧美欧美| 久久久久亚洲蜜桃| 亚洲国产日韩一级| 中文字幕第一页久久| 夜夜精品浪潮av一区二区三区| 视频一区二区三区入口| 国产在线播放一区三区四| 99视频一区二区| 日韩一区二区在线播放| 亚洲国产电影在线观看| 亚洲a一区二区| 成人黄色大片在线观看| 91精品免费观看| 中文字幕第一页久久| 婷婷激情综合网| 成人深夜在线观看| 欧美日韩一级片网站| 国产亲近乱来精品视频| 亚洲国产视频在线| 成人国产一区二区三区精品| 欧美日韩国产片| 国产精品网站在线播放| 人禽交欧美网站| 欧洲色大大久久| 中文字幕欧美区| 久久国产剧场电影| 欧美日韩国产高清一区| 中文字幕国产一区| 狠狠v欧美v日韩v亚洲ⅴ| 欧美色图片你懂的| 中文字幕在线不卡一区| 国产在线观看一区二区| 欧美乱妇15p| 欧美α欧美αv大片| 亚洲第一福利视频在线| 99国产精品99久久久久久| 日韩一二三区不卡| 亚洲成人av资源| 色综合久久天天| 国产精品久久久久一区| 国产成人久久精品77777最新版本| 欧美久久久久久蜜桃| 亚洲蜜桃精久久久久久久| www.色综合.com| 欧美高清在线视频| 国产99久久久国产精品| 国产午夜精品美女毛片视频| 韩国成人福利片在线播放| 欧美日本在线播放| 亚洲国产日产av| 在线免费亚洲电影| 一区二区在线观看av| 91国产精品成人| 欧美成人精品1314www| 偷拍日韩校园综合在线| 欧美日韩国产一区二区三区地区| 亚洲一级二级在线| 欧美做爰猛烈大尺度电影无法无天| 亚洲美女偷拍久久|