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

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

?? gdkcursor-x11.c

?? linux下電話本所依賴的一些圖形庫
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* 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/cursorfont.h>#ifdef HAVE_XCURSOR#include <X11/Xcursor/Xcursor.h>#endif#include "gdkprivate-x11.h"#include "gdkcursor.h"#include "gdkpixmap-x11.h"#include "gdkx.h"#include <gdk/gdkpixmap.h>#include <gdk-pixbuf/gdk-pixbuf.h>#include "gdkalias.h"/** * gdk_cursor_new_for_display: * @display: the #GdkDisplay for which the cursor will be created * @cursor_type: cursor to create *  * Creates a new cursor from the set of builtin cursors. * Some useful ones are: * <itemizedlist> * <listitem><para> *  <inlinegraphic format="PNG" fileref="right_ptr.png"></inlinegraphic> #GDK_RIGHT_PTR (right-facing arrow) * </para></listitem> * <listitem><para> *  <inlinegraphic format="PNG" fileref="crosshair.png"></inlinegraphic> #GDK_CROSSHAIR (crosshair) * </para></listitem> * <listitem><para> *  <inlinegraphic format="PNG" fileref="xterm.png"></inlinegraphic> #GDK_XTERM (I-beam) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="watch.png"></inlinegraphic> #GDK_WATCH (busy) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="fleur.png"></inlinegraphic> #GDK_FLEUR (for moving objects) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="hand1.png"></inlinegraphic> #GDK_HAND1 (a right-pointing hand) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="hand2.png"></inlinegraphic> #GDK_HAND2 (a left-pointing hand) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="left_side.png"></inlinegraphic> #GDK_LEFT_SIDE (resize left side) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="right_side.png"></inlinegraphic> #GDK_RIGHT_SIDE (resize right side) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="top_left_corner.png"></inlinegraphic> #GDK_TOP_LEFT_CORNER (resize northwest corner) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="top_right_corner.png"></inlinegraphic> #GDK_TOP_RIGHT_CORNER (resize northeast corner) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="bottom_left_corner.png"></inlinegraphic> #GDK_BOTTOM_LEFT_CORNER (resize southwest corner) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="bottom_right_corner.png"></inlinegraphic> #GDK_BOTTOM_RIGHT_CORNER (resize southeast corner) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="top_side.png"></inlinegraphic> #GDK_TOP_SIDE (resize top side) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="bottom_side.png"></inlinegraphic> #GDK_BOTTOM_SIDE (resize bottom side) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="sb_h_double_arrow.png"></inlinegraphic> #GDK_SB_H_DOUBLE_ARROW (move vertical splitter) * </para></listitem> * <listitem><para> * <inlinegraphic format="PNG" fileref="sb_v_double_arrow.png"></inlinegraphic> #GDK_SB_V_DOUBLE_ARROW (move horizontal splitter) * </para></listitem> * </itemizedlist> * * To make the cursor invisible, use gdk_cursor_new_from_pixmap() to create * a cursor with no pixels in it. *  * Return value: a new #GdkCursor * * Since: 2.2 **/GdkCursor*gdk_cursor_new_for_display (GdkDisplay    *display,			    GdkCursorType  cursor_type){  GdkCursorPrivate *private;  GdkCursor *cursor;  Cursor xcursor;  g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);  if (display->closed)    xcursor = None;  else    xcursor = XCreateFontCursor (GDK_DISPLAY_XDISPLAY (display), cursor_type);    private = g_new (GdkCursorPrivate, 1);  private->display = display;  private->xcursor = xcursor;  cursor = (GdkCursor *) private;  cursor->type = cursor_type;  cursor->ref_count = 1;    return cursor;}/** * gdk_cursor_new_from_pixmap: * @source: the pixmap specifying the cursor. * @mask: the pixmap specifying the mask, which must be the same size as  *    @source. * @fg: the foreground color, used for the bits in the source which are 1. *    The color does not have to be allocated first.  * @bg: the background color, used for the bits in the source which are 0. *    The color does not have to be allocated first. * @x: the horizontal offset of the 'hotspot' of the cursor.  * @y: the vertical offset of the 'hotspot' of the cursor. *  * Creates a new cursor from a given pixmap and mask. Both the pixmap and mask * must have a depth of 1 (i.e. each pixel has only 2 values - on or off). * The standard cursor size is 16 by 16 pixels. You can create a bitmap  * from inline data as in the below example. *  * <example><title>Creating a custom cursor</title> * <programlisting> * /<!-- -->* This data is in X bitmap format, and can be created with the 'bitmap' *    utility. *<!-- -->/ * &num;define cursor1_width 16 * &num;define cursor1_height 16 * static unsigned char cursor1_bits[] = { *   0x80, 0x01, 0x40, 0x02, 0x20, 0x04, 0x10, 0x08, 0x08, 0x10, 0x04, 0x20, *   0x82, 0x41, 0x41, 0x82, 0x41, 0x82, 0x82, 0x41, 0x04, 0x20, 0x08, 0x10, *   0x10, 0x08, 0x20, 0x04, 0x40, 0x02, 0x80, 0x01}; *   * static unsigned char cursor1mask_bits[] = { *   0x80, 0x01, 0xc0, 0x03, 0x60, 0x06, 0x30, 0x0c, 0x18, 0x18, 0x8c, 0x31, *   0xc6, 0x63, 0x63, 0xc6, 0x63, 0xc6, 0xc6, 0x63, 0x8c, 0x31, 0x18, 0x18, *   0x30, 0x0c, 0x60, 0x06, 0xc0, 0x03, 0x80, 0x01}; *   *   *  GdkCursor *cursor; *  GdkPixmap *source, *mask; *  GdkColor fg = { 0, 65535, 0, 0 }; /<!-- -->* Red. *<!-- -->/ *  GdkColor bg = { 0, 0, 0, 65535 }; /<!-- -->* Blue. *<!-- -->/ *   *   *  source = gdk_bitmap_create_from_data (NULL, cursor1_bits, *                                        cursor1_width, cursor1_height); *  mask = gdk_bitmap_create_from_data (NULL, cursor1mask_bits, *                                      cursor1_width, cursor1_height); *  cursor = gdk_cursor_new_from_pixmap (source, mask, &amp;fg, &amp;bg, 8, 8); *  gdk_pixmap_unref (source); *  gdk_pixmap_unref (mask); *   *   *  gdk_window_set_cursor (widget->window, cursor); * </programlisting> * </example> * * Return value: a new #GdkCursor. **/GdkCursor*gdk_cursor_new_from_pixmap (GdkPixmap      *source,			    GdkPixmap      *mask,			    const GdkColor *fg,			    const GdkColor *bg,			    gint            x,			    gint            y){  GdkCursorPrivate *private;  GdkCursor *cursor;  Pixmap source_pixmap, mask_pixmap;  Cursor xcursor;  XColor xfg, xbg;  GdkDisplay *display;  g_return_val_if_fail (GDK_IS_PIXMAP (source), NULL);  g_return_val_if_fail (GDK_IS_PIXMAP (mask), NULL);  g_return_val_if_fail (fg != NULL, NULL);  g_return_val_if_fail (bg != NULL, NULL);  source_pixmap = GDK_PIXMAP_XID (source);  mask_pixmap   = GDK_PIXMAP_XID (mask);  display = GDK_PIXMAP_DISPLAY (source);  xfg.pixel = fg->pixel;  xfg.red = fg->red;  xfg.blue = fg->blue;  xfg.green = fg->green;  xbg.pixel = bg->pixel;  xbg.red = bg->red;  xbg.blue = bg->blue;  xbg.green = bg->green;    if (display->closed)    xcursor = None;  else    xcursor = XCreatePixmapCursor (GDK_DISPLAY_XDISPLAY (display),				   source_pixmap, mask_pixmap, &xfg, &xbg, x, y);  private = g_new (GdkCursorPrivate, 1);  private->display = display;  private->xcursor = xcursor;  cursor = (GdkCursor *) private;  cursor->type = GDK_CURSOR_IS_PIXMAP;  cursor->ref_count = 1;    return cursor;}void_gdk_cursor_destroy (GdkCursor *cursor){  GdkCursorPrivate *private;  g_return_if_fail (cursor != NULL);  g_return_if_fail (cursor->ref_count == 0);  private = (GdkCursorPrivate *) cursor;  if (!private->display->closed && private->xcursor)    XFreeCursor (GDK_DISPLAY_XDISPLAY (private->display), private->xcursor);  g_free (private);}/** * gdk_x11_cursor_get_xdisplay: * @cursor: a #GdkCursor. *  * Returns the display of a #GdkCursor. *  * Return value: an Xlib <type>Display*</type>. **/Display *gdk_x11_cursor_get_xdisplay (GdkCursor *cursor){  g_return_val_if_fail (cursor != NULL, NULL);  return GDK_DISPLAY_XDISPLAY(((GdkCursorPrivate *)cursor)->display);}/** * gdk_x11_cursor_get_xcursor: * @cursor: a #GdkCursor. *  * Returns the X cursor belonging to a #GdkCursor. *  * Return value: an Xlib <type>Cursor</type>. **/Cursorgdk_x11_cursor_get_xcursor (GdkCursor *cursor){  g_return_val_if_fail (cursor != NULL, None);  return ((GdkCursorPrivate *)cursor)->xcursor;}/**  * gdk_cursor_get_display: * @cursor: a #GdkCursor. * * Returns the display on which the #GdkCursor is defined. * * Returns: the #GdkDisplay associated to @cursor * * Since: 2.2 */GdkDisplay *gdk_cursor_get_display (GdkCursor *cursor){  g_return_val_if_fail (cursor != NULL, NULL);  return ((GdkCursorPrivate *)cursor)->display;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产福利一区二区| 欧美人妖巨大在线| 欧美高清视频不卡网| 久久九九99视频| 性久久久久久久久久久久| 成人激情免费视频| 欧美mv日韩mv| 亚洲成人动漫在线免费观看| 国产高清久久久久| 制服丝袜中文字幕一区| 亚洲一区免费观看| 97se亚洲国产综合自在线| 久久理论电影网| 免费一区二区视频| 欧美电影一区二区| 亚洲午夜影视影院在线观看| 99精品久久99久久久久| 亚洲国产激情av| 国产91对白在线观看九色| 欧美成人乱码一区二区三区| 日韩精品一级二级 | 51久久夜色精品国产麻豆| 1区2区3区欧美| 91在线国内视频| 国产精品久久久久久久久久免费看| 极品销魂美女一区二区三区| 日韩欧美色综合网站| 午夜私人影院久久久久| 欧美性生活久久| 亚洲成人综合网站| 欧美亚洲一区二区在线| 亚洲国产精品一区二区www在线 | 国产呦精品一区二区三区网站| 69久久99精品久久久久婷婷| 午夜电影网亚洲视频| 欧美精品一卡两卡| 蜜桃久久精品一区二区| 精品成人佐山爱一区二区| 国产一区二区导航在线播放| 久久精品人人做人人综合 | 91欧美一区二区| 亚洲精品中文字幕在线观看| 色偷偷一区二区三区| 亚洲一区二区三区三| 欧美日韩精品久久久| 免费亚洲电影在线| 久久综合色8888| 东方aⅴ免费观看久久av| 亚洲欧洲韩国日本视频| 在线观看亚洲a| 奇米影视在线99精品| 国产午夜精品一区二区三区嫩草 | 青青草一区二区三区| 精品久久久久久无| 成人高清av在线| 亚洲欧美日韩在线播放| 精品视频在线看| 精品一区二区影视| 国产精品超碰97尤物18| 精品视频在线免费观看| 国产精品亚洲第一| 一区二区三区四区中文字幕| 欧美一级片免费看| 波多野结衣精品在线| 视频在线观看一区二区三区| 久久婷婷国产综合精品青草| 97精品视频在线观看自产线路二| 亚洲福利视频一区| 国产欧美一区二区精品性色超碰| 91碰在线视频| 精品一二三四在线| 一区二区三区**美女毛片| 欧美电视剧免费观看| 91网站最新地址| 狠狠色综合色综合网络| 亚洲一区二区三区中文字幕在线| 欧美精品一区二区三区蜜桃视频| 色婷婷综合久久| 精品伊人久久久久7777人| 亚洲一线二线三线视频| 国产无遮挡一区二区三区毛片日本| 在线看日韩精品电影| 国产成人在线视频免费播放| 日韩不卡一区二区三区| 日韩一区中文字幕| 久久久三级国产网站| 欧美电影在线免费观看| 色天使色偷偷av一区二区| 懂色av中文字幕一区二区三区| 日本午夜精品一区二区三区电影| 国产精品久久一卡二卡| 精品三级在线观看| 欧美日韩五月天| 91丨九色porny丨蝌蚪| 国产一区二区三区免费在线观看| 日韩主播视频在线| 亚洲一区二区三区四区在线免费观看| 国产精品视频免费| 国产午夜精品福利| 久久久亚洲精品一区二区三区 | 99re这里只有精品首页| 国内精品免费**视频| 久久爱另类一区二区小说| 亚洲成av人片一区二区梦乃 | 日韩不卡一区二区三区| 午夜私人影院久久久久| 亚洲1区2区3区4区| 亚洲黄色免费电影| 一区二区三区.www| 亚洲伊人伊色伊影伊综合网 | 亚洲欧洲日产国码二区| 国产女人18毛片水真多成人如厕| 久久久久国产精品厨房| 欧美精品一区男女天堂| 久久亚区不卡日本| 国产欧美日韩综合| 国产精品色噜噜| 亚洲欧美日韩在线不卡| 亚洲男人都懂的| 一片黄亚洲嫩模| 亚洲gay无套男同| 视频在线观看91| 久久99在线观看| 国产一区二区在线观看视频| 国产精品一区二区免费不卡 | 欧美亚洲一区二区三区四区| 欧美性感一区二区三区| 欧美日韩在线播放三区| 3751色影院一区二区三区| 精品久久久久久久一区二区蜜臀| 久久午夜老司机| 国产精品传媒在线| 亚洲综合久久久| 蜜桃免费网站一区二区三区| 国产一区二区主播在线| 99这里只有精品| 成人动漫中文字幕| 精品视频资源站| 精品处破学生在线二十三| 国产精品不卡一区| 亚洲一区二区三区美女| 麻豆精品久久精品色综合| 国产盗摄视频一区二区三区| 99久久精品国产毛片| 欧美精品 国产精品| 精品国精品国产| 亚洲欧美偷拍另类a∨色屁股| 日日欢夜夜爽一区| 成人综合日日夜夜| 91视频com| 欧美电影免费观看完整版| 日韩一区中文字幕| 精品制服美女久久| 在线观看一区二区精品视频| 日韩午夜在线观看视频| 亚洲欧美综合色| 美日韩一级片在线观看| 色噜噜狠狠色综合欧洲selulu| 日韩欧美国产电影| 亚洲欧美偷拍另类a∨色屁股| 麻豆精品在线视频| 欧美性受xxxx黑人xyx| 国产欧美日本一区视频| 日韩成人精品在线| 91免费国产在线| 久久综合色天天久久综合图片| 亚洲自拍偷拍av| 丁香另类激情小说| 日韩亚洲欧美一区二区三区| 综合亚洲深深色噜噜狠狠网站| 美女在线一区二区| 欧美日韩免费在线视频| 综合欧美亚洲日本| 国产精品白丝av| 精品国产一区二区国模嫣然| 亚洲高清免费观看高清完整版在线观看 | 在线欧美一区二区| 中文乱码免费一区二区| 另类的小说在线视频另类成人小视频在线 | 91精品一区二区三区在线观看| 中文字幕制服丝袜一区二区三区| 美女诱惑一区二区| 69堂亚洲精品首页| 亚洲一级在线观看| 91看片淫黄大片一级| 国产精品毛片久久久久久久| 国产一区二区三区免费播放| 在线播放日韩导航| 五月激情六月综合| 欧美三级在线播放| 亚洲综合一区在线| 91九色02白丝porn| 亚洲永久免费视频| 欧美日韩一本到| 亚洲成人动漫精品| 亚洲综合色噜噜狠狠| 午夜国产精品一区| 欧美放荡的少妇| 视频一区视频二区在线观看| 欧美日韩一卡二卡三卡|