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

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

?? gdkwindow-x11.c

?? linux下電話本所依賴的一些圖形庫
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* GDK - The GIMP Drawing Kit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. *//* * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS * file for a list of people on the GTK+ Team.  See the ChangeLog * files for a list of changes.  These files are distributed with * GTK+ at ftp://ftp.gtk.org/pub/gtk/.  */#include <config.h>#include <X11/Xlib.h>#include <X11/Xutil.h>#include <X11/Xatom.h>#include <netinet/in.h>#include <unistd.h>#include "gdk.h"#include "gdkwindow.h"#include "gdkasync.h"#include "gdkinputprivate.h"#include "gdkdisplay-x11.h"#include "gdkprivate-x11.h"#include "gdkregion.h"#include "gdkinternals.h"#include "MwmUtil.h"#include "gdkwindow-x11.h"#include "gdkalias.h"#include <stdlib.h>#include <stdio.h>#include <string.h>#ifdef HAVE_SHAPE_EXT#include <X11/extensions/shape.h>#endifconst int _gdk_event_mask_table[21] ={  ExposureMask,  PointerMotionMask,  PointerMotionHintMask,  ButtonMotionMask,  Button1MotionMask,  Button2MotionMask,  Button3MotionMask,  ButtonPressMask,  ButtonReleaseMask,  KeyPressMask,  KeyReleaseMask,  EnterWindowMask,  LeaveWindowMask,  FocusChangeMask,  StructureNotifyMask,  PropertyChangeMask,  VisibilityChangeMask,  0,				/* PROXIMITY_IN */  0,				/* PROXIMTY_OUT */  SubstructureNotifyMask,  ButtonPressMask      /* SCROLL; on X mouse wheel events is treated as mouse button 4/5 */};const int _gdk_nenvent_masks = sizeof (_gdk_event_mask_table) / sizeof (int);/* Forward declarations */static void     gdk_window_set_static_win_gravity (GdkWindow  *window,						   gboolean    on);static gboolean gdk_window_have_shape_ext         (GdkDisplay *display);static gboolean gdk_window_icon_name_set          (GdkWindow  *window);static void     gdk_window_add_colormap_windows   (GdkWindow  *window);static void     set_wm_name                       (GdkDisplay  *display,						   Window       xwindow,						   const gchar *name);static GdkColormap* gdk_window_impl_x11_get_colormap (GdkDrawable *drawable);static void         gdk_window_impl_x11_set_colormap (GdkDrawable *drawable,						      GdkColormap *cmap);static void         gdk_window_impl_x11_get_size    (GdkDrawable *drawable,						     gint *width,						     gint *height);static GdkRegion*  gdk_window_impl_x11_get_visible_region (GdkDrawable *drawable);static void gdk_window_impl_x11_init       (GdkWindowImplX11      *window);static void gdk_window_impl_x11_class_init (GdkWindowImplX11Class *klass);static void gdk_window_impl_x11_finalize   (GObject            *object);static gpointer parent_class = NULL;#define WINDOW_IS_TOPLEVEL(window)		   \  (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD && \   GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN)/* Return whether time1 is considered later than time2 as far as xserver * time is concerned.  Accounts for wraparound. */#define XSERVER_TIME_IS_LATER(time1, time2)                        \  ( (( time1 > time2 ) && ( time1 - time2 < ((guint32)-1)/2 )) ||  \    (( time1 < time2 ) && ( time2 - time1 > ((guint32)-1)/2 ))     \  )GTypegdk_window_impl_x11_get_type (void){  static GType object_type = 0;  if (!object_type)    {      static const GTypeInfo object_info =      {        sizeof (GdkWindowImplX11Class),        (GBaseInitFunc) NULL,        (GBaseFinalizeFunc) NULL,        (GClassInitFunc) gdk_window_impl_x11_class_init,        NULL,           /* class_finalize */        NULL,           /* class_data */        sizeof (GdkWindowImplX11),        0,              /* n_preallocs */        (GInstanceInitFunc) gdk_window_impl_x11_init,      };            object_type = g_type_register_static (GDK_TYPE_DRAWABLE_IMPL_X11,                                            "GdkWindowImplX11",                                            &object_info, 0);    }    return object_type;}GType_gdk_window_impl_get_type (void){  return gdk_window_impl_x11_get_type ();}static voidgdk_window_impl_x11_init (GdkWindowImplX11 *impl){    impl->width = 1;  impl->height = 1;  impl->toplevel_window_type = -1;}GdkToplevelX11 *_gdk_x11_window_get_toplevel (GdkWindow *window){  GdkWindowObject *private;  GdkWindowImplX11 *impl;    g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);  if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_CHILD)    return NULL;  private = (GdkWindowObject *)window;  impl = GDK_WINDOW_IMPL_X11 (private->impl);  if (!impl->toplevel)    impl->toplevel = g_new0 (GdkToplevelX11, 1);  return impl->toplevel;}static voidgdk_window_impl_x11_class_init (GdkWindowImplX11Class *klass){  GObjectClass *object_class = G_OBJECT_CLASS (klass);  GdkDrawableClass *drawable_class = GDK_DRAWABLE_CLASS (klass);    parent_class = g_type_class_peek_parent (klass);  object_class->finalize = gdk_window_impl_x11_finalize;  drawable_class->set_colormap = gdk_window_impl_x11_set_colormap;  drawable_class->get_colormap = gdk_window_impl_x11_get_colormap;  drawable_class->get_size = gdk_window_impl_x11_get_size;  /* Visible and clip regions are the same */  drawable_class->get_clip_region = gdk_window_impl_x11_get_visible_region;  drawable_class->get_visible_region = gdk_window_impl_x11_get_visible_region;}static voidgdk_window_impl_x11_finalize (GObject *object){  GdkWindowObject *wrapper;  GdkDrawableImplX11 *draw_impl;  GdkWindowImplX11 *window_impl;    g_return_if_fail (GDK_IS_WINDOW_IMPL_X11 (object));  draw_impl = GDK_DRAWABLE_IMPL_X11 (object);  window_impl = GDK_WINDOW_IMPL_X11 (object);    wrapper = (GdkWindowObject*) draw_impl->wrapper;  _gdk_xgrab_check_destroy (GDK_WINDOW (wrapper));  if (!GDK_WINDOW_DESTROYED (wrapper))    {      GdkDisplay *display = GDK_WINDOW_DISPLAY (wrapper);            _gdk_xid_table_remove (display, draw_impl->xid);      if (window_impl->toplevel && window_impl->toplevel->focus_window)	_gdk_xid_table_remove (display, window_impl->toplevel->focus_window);    }  if (window_impl->toplevel)    g_free (window_impl->toplevel);  G_OBJECT_CLASS (parent_class)->finalize (object);}static voidtmp_unset_bg (GdkWindow *window){  GdkWindowImplX11 *impl;  GdkWindowObject *obj;  obj = (GdkWindowObject *) window;  impl = GDK_WINDOW_IMPL_X11 (obj->impl);  /* For windows without EXPOSURE_MASK, we can't do this   * unsetting because such windows depend on the drawing   * that the X server is going to do   */  if (!(obj->event_mask & GDK_EXPOSURE_MASK))    return;      impl->position_info.no_bg = TRUE;  if (obj->bg_pixmap != GDK_NO_BG)    XSetWindowBackgroundPixmap (GDK_DRAWABLE_XDISPLAY (window),				GDK_DRAWABLE_XID (window), None);}static voidtmp_reset_bg (GdkWindow *window){  GdkWindowImplX11 *impl;  GdkWindowObject *obj;  obj = (GdkWindowObject *) window;  impl = GDK_WINDOW_IMPL_X11 (obj->impl);  if (!(obj->event_mask & GDK_EXPOSURE_MASK))    return;      impl->position_info.no_bg = FALSE;  if (obj->bg_pixmap == GDK_NO_BG)    return;    if (obj->bg_pixmap)    {      Pixmap xpixmap;      if (obj->bg_pixmap == GDK_PARENT_RELATIVE_BG)	xpixmap = ParentRelative;      else 	xpixmap = GDK_DRAWABLE_XID (obj->bg_pixmap);      XSetWindowBackgroundPixmap (GDK_DRAWABLE_XDISPLAY (window),				  GDK_DRAWABLE_XID (window), xpixmap);    }  else    {      XSetWindowBackground (GDK_DRAWABLE_XDISPLAY (window),			    GDK_DRAWABLE_XID (window),			    obj->bg_color.pixel);    }}void_gdk_x11_window_tmp_unset_bg (GdkWindow *window,			      gboolean   recurse){  GdkWindowObject *private;  g_return_if_fail (GDK_IS_WINDOW (window));    private = (GdkWindowObject *)window;  if (private->input_only || private->destroyed ||      (private->window_type != GDK_WINDOW_ROOT &&       !GDK_WINDOW_IS_MAPPED (window)))    {      return;    }  if (private->window_type != GDK_WINDOW_ROOT &&      private->window_type != GDK_WINDOW_FOREIGN)    {      tmp_unset_bg (window);    }  if (recurse)    {      GList *l;      for (l = private->children; l != NULL; l = l->next)	_gdk_x11_window_tmp_unset_bg (l->data, TRUE);    }}void_gdk_x11_window_tmp_reset_bg (GdkWindow *window,			      gboolean   recurse){  GdkWindowObject *private;  g_return_if_fail (GDK_IS_WINDOW (window));  private = (GdkWindowObject *)window;  if (private->input_only || private->destroyed ||      (private->window_type != GDK_WINDOW_ROOT &&       !GDK_WINDOW_IS_MAPPED (window)))    {      return;    }  if (private->window_type != GDK_WINDOW_ROOT &&      private->window_type != GDK_WINDOW_FOREIGN)    {      tmp_reset_bg (window);    }  if (recurse)    {      GList *l;      for (l = private->children; l != NULL; l = l->next)	_gdk_x11_window_tmp_reset_bg (l->data, TRUE);    }}static GdkColormap*gdk_window_impl_x11_get_colormap (GdkDrawable *drawable){  GdkDrawableImplX11 *drawable_impl;  GdkWindowImplX11 *window_impl;    g_return_val_if_fail (GDK_IS_WINDOW_IMPL_X11 (drawable), NULL);  drawable_impl = GDK_DRAWABLE_IMPL_X11 (drawable);  window_impl = GDK_WINDOW_IMPL_X11 (drawable);  if (!((GdkWindowObject *) drawable_impl->wrapper)->input_only &&       drawable_impl->colormap == NULL)    {      XWindowAttributes window_attributes;      GdkVisual *visual;      XGetWindowAttributes (GDK_SCREEN_XDISPLAY (drawable_impl->screen),                            drawable_impl->xid,                            &window_attributes);      visual = gdk_x11_screen_lookup_visual (drawable_impl->screen,					     window_attributes.visual->visualid);      drawable_impl->colormap = gdk_x11_colormap_foreign_new (visual,							      window_attributes.colormap);    }    return drawable_impl->colormap;}static voidgdk_window_impl_x11_set_colormap (GdkDrawable *drawable,                                  GdkColormap *cmap){  GdkWindowImplX11 *impl;  GdkDrawableImplX11 *draw_impl;    g_return_if_fail (GDK_IS_WINDOW_IMPL_X11 (drawable));  impl = GDK_WINDOW_IMPL_X11 (drawable);  draw_impl = GDK_DRAWABLE_IMPL_X11 (drawable);  if (cmap && GDK_WINDOW_DESTROYED (draw_impl->wrapper))    return;  /* chain up */  GDK_DRAWABLE_CLASS (parent_class)->set_colormap (drawable, cmap);  if (cmap)    {      XSetWindowColormap (GDK_SCREEN_XDISPLAY (draw_impl->screen),                          draw_impl->xid,                          GDK_COLORMAP_XCOLORMAP (cmap));      if (((GdkWindowObject*)draw_impl->wrapper)->window_type !=          GDK_WINDOW_TOPLEVEL)        gdk_window_add_colormap_windows (GDK_WINDOW (draw_impl->wrapper));    }}static voidgdk_window_impl_x11_get_size (GdkDrawable *drawable,                              gint        *width,                              gint        *height){  g_return_if_fail (GDK_IS_WINDOW_IMPL_X11 (drawable));  if (width)    *width = GDK_WINDOW_IMPL_X11 (drawable)->width;  if (height)    *height = GDK_WINDOW_IMPL_X11 (drawable)->height;}static GdkRegion*gdk_window_impl_x11_get_visible_region (GdkDrawable *drawable){  GdkWindowImplX11 *impl = GDK_WINDOW_IMPL_X11 (drawable);  GdkRectangle result_rect;  result_rect.x = 0;  result_rect.y = 0;  result_rect.width = impl->width;  result_rect.height = impl->height;  gdk_rectangle_intersect (&result_rect, &impl->position_info.clip_rect, &result_rect);  return gdk_region_rectangle (&result_rect);}void_gdk_windowing_window_init (GdkScreen * screen){  GdkWindowObject *private;  GdkWindowImplX11 *impl;  GdkDrawableImplX11 *draw_impl;  GdkScreenX11 *screen_x11;  screen_x11 = GDK_SCREEN_X11 (screen);  g_assert (screen_x11->root_window == NULL);  gdk_screen_set_default_colormap (screen,				   gdk_screen_get_system_colormap (screen));  screen_x11->root_window = g_object_new (GDK_TYPE_WINDOW, NULL);  private = (GdkWindowObject *)screen_x11->root_window;  impl = GDK_WINDOW_IMPL_X11 (private->impl);  draw_impl = GDK_DRAWABLE_IMPL_X11 (private->impl);    draw_impl->screen = screen;  draw_impl->xid = screen_x11->xroot_window;  draw_impl->wrapper = GDK_DRAWABLE (private);  draw_impl->colormap = gdk_screen_get_system_colormap (screen);  g_object_ref (draw_impl->colormap);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内精品不卡在线| aaa欧美色吧激情视频| 国产欧美日韩精品一区| 一本色道a无线码一区v| 男女激情视频一区| 亚洲精选一二三| 日韩三级高清在线| 在线免费视频一区二区| 国产一区在线不卡| 天天操天天干天天综合网| 国产区在线观看成人精品| 欧美日韩国产区一| 91视频一区二区三区| 韩国成人福利片在线播放| 日韩影视精彩在线| 亚洲欧美日韩在线不卡| 久久精品免费在线观看| 宅男在线国产精品| 欧美女孩性生活视频| 99久久久国产精品免费蜜臀| 国产原创一区二区三区| 日韩激情视频在线观看| 亚洲综合一二三区| 自拍偷拍欧美激情| 国产精品久久久久天堂| 国产亚洲精品福利| 久久久精品免费观看| 精品国产不卡一区二区三区| 在线观看91精品国产麻豆| 欧美性xxxxxx少妇| 欧洲一区二区av| 色久综合一二码| www.色综合.com| 成人一二三区视频| 不卡在线视频中文字幕| 成人毛片在线观看| 成人黄色软件下载| www.日本不卡| 99免费精品在线| 色综合视频一区二区三区高清| 成人一区二区三区视频在线观看| 国产成人免费视频精品含羞草妖精| 久久国产精品99精品国产| 麻豆精品一区二区三区| 久久激情五月婷婷| 激情综合网最新| 成人亚洲一区二区一| 波多野结衣在线一区| 91蜜桃婷婷狠狠久久综合9色| 99久久精品免费| 91久久精品网| 欧美日韩国产在线播放网站| 在线不卡中文字幕| 欧美精品一区二区在线播放 | 91麻豆国产福利精品| 99久久精品免费观看| 91久久国产综合久久| 欧美日韩精品一区二区三区| 91精品国产高清一区二区三区 | 精品福利在线导航| 国产日本一区二区| 一区二区三区四区亚洲| 午夜亚洲福利老司机| 极品尤物av久久免费看| 成人av网站免费| 91福利在线看| 精品少妇一区二区三区免费观看 | 欧美高清hd18日本| 欧美www视频| 中文字幕制服丝袜一区二区三区| 亚洲美女屁股眼交| 美女一区二区久久| 9人人澡人人爽人人精品| 欧美色爱综合网| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲欧美偷拍三级| 久久成人精品无人区| 99免费精品视频| 日韩欧美激情一区| 17c精品麻豆一区二区免费| 亚洲成人激情自拍| 韩国女主播成人在线观看| 91美女在线观看| 欧美刺激脚交jootjob| 中文字幕一区不卡| 美国十次综合导航| 99国产精品久久| 精品成人一区二区三区四区| 亚洲日本在线看| 精品一区二区成人精品| 欧美性三三影院| 国产精品日日摸夜夜摸av| 日本亚洲天堂网| 91同城在线观看| 久久夜色精品国产欧美乱极品| 亚洲激情自拍偷拍| 国产成人福利片| 91精品国产色综合久久ai换脸| 国产精品福利影院| 久久99国产精品久久99果冻传媒| 91麻豆高清视频| 中文字幕的久久| 精品亚洲成a人| 在线播放日韩导航| 亚洲女爱视频在线| 国产成人午夜精品影院观看视频| 欧美日韩一区精品| 亚洲乱码国产乱码精品精98午夜 | 91在线精品一区二区| 精品国产99国产精品| 视频一区视频二区中文| 日本高清不卡在线观看| 国产精品美女久久久久久久网站| 麻豆成人免费电影| 欧美精三区欧美精三区| 亚洲一区精品在线| 一本色道久久综合狠狠躁的推荐 | 国产成人午夜99999| 欧美一级国产精品| 午夜精品久久久久久久99水蜜桃 | 国产成人av电影免费在线观看| 欧美精品一二三四| 亚洲午夜在线电影| 在线观看www91| 夜夜嗨av一区二区三区四季av| 成人av综合一区| 中文字幕成人网| 成人av在线影院| 国产欧美日韩另类一区| 国产一区二区三区美女| 欧美精品一区二区三区在线| 美女脱光内衣内裤视频久久影院| 欧美日本视频在线| 亚洲成av人在线观看| 欧美日韩免费观看一区三区| 一区二区三区在线不卡| 欧美色精品在线视频| 午夜不卡av在线| 7777精品伊人久久久大香线蕉| 亚洲影视资源网| 欧美视频一区二区三区| 午夜视频一区二区| 欧美一区二区免费视频| 国产中文字幕一区| 欧美国产禁国产网站cc| av激情亚洲男人天堂| 亚洲视频一区二区免费在线观看| 91首页免费视频| 亚洲高清免费在线| 日韩一级大片在线观看| 久久国产生活片100| 精品成人在线观看| av色综合久久天堂av综合| 一区二区三区不卡在线观看| 欧美日韩一区小说| 久久99精品久久久| 国产精品乱码人人做人人爱| 一本大道av一区二区在线播放| 国产精品超碰97尤物18| 欧洲一区在线电影| 日韩专区在线视频| 国产亚洲一区二区三区在线观看| 豆国产96在线|亚洲| 一区二区三区资源| 欧美一级xxx| 国产成人在线影院| 一区二区三区.www| 日韩久久久精品| 成人99免费视频| 午夜欧美大尺度福利影院在线看| 日韩三级在线免费观看| 国产精品一区三区| 亚洲一区在线看| 日韩精品一区二区三区视频| 成人永久免费视频| 亚洲成国产人片在线观看| 精品国产一区二区三区久久久蜜月| 国产99久久久国产精品潘金网站| 亚洲天堂精品视频| 欧美一区二区三区日韩视频| 成人久久18免费网站麻豆| 亚洲 欧美综合在线网络| 2021国产精品久久精品| 91美女在线观看| 国产美女精品人人做人人爽 | 婷婷亚洲久悠悠色悠在线播放 | 亚洲精品写真福利| 久久中文字幕电影| 欧美午夜电影一区| 大桥未久av一区二区三区中文| 亚洲18色成人| 最新国产精品久久精品| 欧美成人免费网站| 欧美日韩精品一区二区三区四区| 岛国av在线一区| 狠狠色伊人亚洲综合成人| 亚洲国产精品一区二区www| 国产日产欧美一区二区视频| 欧美一区二区女人| 欧美三级视频在线播放|