亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产一区二区0| 风间由美一区二区三区在线观看| 日本一区二区在线不卡| 91精品免费在线观看| 欧美影院一区二区三区| 一本色道久久综合亚洲aⅴ蜜桃| 国产河南妇女毛片精品久久久 | 欧美高清视频在线高清观看mv色露露十八| 国产在线精品免费av| 国产精品亚洲专一区二区三区| 国产精品综合一区二区三区| 国产成人亚洲综合色影视| 国产成人亚洲综合a∨婷婷| 成人少妇影院yyyy| 99免费精品在线| 欧美色电影在线| 日韩西西人体444www| 久久久久久毛片| 国产精品福利av| 亚洲精品国久久99热| 午夜欧美电影在线观看| 免费看日韩精品| 国产**成人网毛片九色| 91在线播放网址| 欧美精选午夜久久久乱码6080| 日韩女优av电影在线观看| 国产日韩影视精品| 一区二区三区在线影院| 日日骚欧美日韩| 国产成人午夜精品影院观看视频| 99精品在线观看视频| 欧美精品久久99久久在免费线 | 亚洲在线观看免费| 日本午夜一本久久久综合| 国产精品一卡二卡| 日本乱人伦一区| 精品国产一区二区三区av性色| 国产偷国产偷精品高清尤物 | 久久激情五月激情| 成人黄动漫网站免费app| 欧美日韩综合在线免费观看| 2023国产一二三区日本精品2022| 最新日韩在线视频| 日本三级亚洲精品| 91年精品国产| 久久久影院官网| 亚洲va在线va天堂| jlzzjlzz欧美大全| 精品少妇一区二区三区免费观看| ...中文天堂在线一区| 极品销魂美女一区二区三区| 在线欧美一区二区| 亚洲欧美在线高清| 国产成人av福利| 日韩欧美中文字幕一区| 亚洲综合激情网| 99视频精品免费视频| 久久精品一区二区三区不卡| 日本视频免费一区| 欧美日韩成人一区| 亚洲五月六月丁香激情| 99久久99久久免费精品蜜臀| 国产网站一区二区三区| 国产精品亚洲午夜一区二区三区| 美腿丝袜亚洲三区| 首页综合国产亚洲丝袜| 99久久久无码国产精品| 欧美xxxxxxxx| 中文字幕乱码一区二区免费| 国产精品对白交换视频| 久久久久久久免费视频了| 国产成人免费在线视频| 亚洲欧美偷拍另类a∨色屁股| 在线观看一区不卡| 黑人精品欧美一区二区蜜桃| 国产精品五月天| 欧美性受极品xxxx喷水| 免费成人深夜小野草| 国产日韩v精品一区二区| 色综合亚洲欧洲| 日韩av电影一区| 国产亚洲欧美激情| 日本韩国欧美三级| 免费成人av在线| 国产精品久99| 91精品国产欧美日韩| 国产精品18久久久久| 一区二区理论电影在线观看| 日韩一级免费一区| 免费在线看成人av| 亚洲网友自拍偷拍| 国产农村妇女精品| 欧美日韩精品一区视频| 粉嫩一区二区三区性色av| 亚洲一卡二卡三卡四卡无卡久久| 日韩一区二区三区在线观看| 99精品久久免费看蜜臀剧情介绍| 七七婷婷婷婷精品国产| 中文字幕一区二区三区四区不卡| 欧美久久久久久久久中文字幕| 国产精品一区一区三区| 亚洲高清免费观看 | 国产伦精品一区二区三区在线观看| 一区二区三区精品在线| 久久精品亚洲麻豆av一区二区 | 欧美大片在线观看一区二区| 国产成人在线免费观看| 免费日韩伦理电影| 亚洲成人在线观看视频| 中文字幕日韩一区二区| 久久久久久久久久久99999| 欧美精品tushy高清| 日本精品免费观看高清观看| 99久久精品久久久久久清纯| 国产一区二区三区四区五区美女| 午夜不卡av在线| 亚洲六月丁香色婷婷综合久久| 久久久不卡网国产精品二区| 日韩久久免费av| 91精品一区二区三区久久久久久| 91麻豆精品视频| 色94色欧美sute亚洲线路一ni| 99视频精品全部免费在线| 福利一区二区在线| 人人狠狠综合久久亚洲| 一个色妞综合视频在线观看| 亚洲人成伊人成综合网小说| 亚洲三级视频在线观看| 国产精品盗摄一区二区三区| 国产精品卡一卡二卡三| 国产精品美日韩| 亚洲国产高清在线| 亚洲黄色在线视频| 一区二区三区色| 亚洲尤物在线视频观看| 亚洲国产精品人人做人人爽| 亚洲一区二区视频在线观看| 亚洲男人的天堂一区二区| 亚洲免费三区一区二区| 亚洲小说欧美激情另类| 午夜视频一区二区| 日韩国产一区二| 蜜桃传媒麻豆第一区在线观看| 日韩av电影免费观看高清完整版| 丝袜亚洲另类丝袜在线| 麻豆国产一区二区| 国产成人精品aa毛片| 91免费视频观看| 欧美日韩精品欧美日韩精品| 在线播放视频一区| 欧美大片顶级少妇| 欧美国产精品v| 午夜av电影一区| 精品亚洲porn| 国产激情偷乱视频一区二区三区| av高清久久久| 欧美日韩一区二区三区免费看| 6080日韩午夜伦伦午夜伦| 欧美日韩视频第一区| 欧美精品一区二区三区在线播放| 欧美激情在线一区二区三区| 一区二区三区波多野结衣在线观看| 亚洲风情在线资源站| 韩国午夜理伦三级不卡影院| 成人a免费在线看| 欧美系列在线观看| 国产清纯白嫩初高生在线观看91 | 亚洲福中文字幕伊人影院| 蜜臀av性久久久久蜜臀av麻豆| 国产一区二区精品久久91| 欧美日韩国产一级| 欧美国产综合色视频| 亚洲一区二区在线视频| 狠狠色丁香婷婷综合| 99精品久久免费看蜜臀剧情介绍| 51精品久久久久久久蜜臀| 久久精品夜色噜噜亚洲aⅴ| 日韩电影在线一区| 成人18精品视频| 精品国产乱码久久| 亚洲综合自拍偷拍| 国产成人激情av| 欧美一卡二卡在线观看| 一区二区三区四区蜜桃| 精品一区精品二区高清| 91精品国产91久久综合桃花| 亚洲欧美色一区| 国产精品18久久久久久久久| 欧美福利一区二区| 亚洲精品ww久久久久久p站| 国产成人综合在线播放| 日韩欧美一区二区不卡| 亚洲与欧洲av电影| 96av麻豆蜜桃一区二区| 国产情人综合久久777777| 亚洲成人一区二区在线观看| 91精品办公室少妇高潮对白| 欧美激情一区三区| 国产麻豆一精品一av一免费| 欧美成人三级在线|