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

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

?? fl_cursor.cxx

?? flnx 0.17 是做嵌入linux gui 必備工具箱
?? CXX
字號:
//// "$Id: fl_cursor.cxx,v 1.1.1.1 2003/08/07 21:18:41 jasonk Exp $"//// Mouse cursor support for the Fast Light Tool Kit (FLTK).//// Copyright 1998-1999 by Bill Spitzak and others.//// This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Library 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// Library General Public License for more details.//// You should have received a copy of the GNU Library 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.//// Please report all bugs and problems to "fltk-bugs@easysw.com".//// Change the current cursor.// Under X the cursor is attached to the X window.  I tried to hide// this and pretend that changing the cursor is a drawing function.// This avoids a field in the Fl_Window, and I suspect is more// portable to other systems.#include <FL/Fl.H>#include <FL/Fl_Window.H>#include <FL/x.H>#if !defined(WIN32) && !defined(NANO_X)#include <X11/cursorfont.h>#endif#include <FL/fl_draw.H>voidfl_cursor(Fl_Cursor c, Fl_Color fg, Fl_Color bg){    if (Fl::first_window())	Fl::first_window()->cursor(c, fg, bg);}#ifdef WIN32#  ifndef IDC_HAND#    define IDC_HAND	MAKEINTRESOURCE(32649)#  endif // !IDC_HANDvoidFl_Window::cursor(Fl_Cursor c, Fl_Color, Fl_Color){    if (!shown())	return;    if (c > FL_CURSOR_NESW) {	i->cursor = 0;    } else if (c == FL_CURSOR_DEFAULT) {	i->cursor = fl_default_cursor;    } else {	LPSTR n;	switch (c) {	case FL_CURSOR_ARROW:	    n = IDC_ARROW;	    break;	case FL_CURSOR_CROSS:	    n = IDC_CROSS;	    break;	case FL_CURSOR_WAIT:	    n = IDC_WAIT;	    break;	case FL_CURSOR_INSERT:	    n = IDC_IBEAM;	    break;	case FL_CURSOR_HELP:	    n = IDC_HELP;	    break;	case FL_CURSOR_HAND:{		OSVERSIONINFO osvi;		// Get the OS version: Windows 98 and 2000 have a standard		// hand cursor.		memset(&osvi, 0, sizeof(OSVERSIONINFO));		osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);		GetVersionEx(&osvi);		if (osvi.dwMajorVersion > 4 ||		    (osvi.dwMajorVersion == 4 && osvi.dwMinorVersion > 0 &&		     osvi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS))		    n = IDC_HAND;		else		    n = IDC_UPARROW;	    }	    break;	case FL_CURSOR_MOVE:	    n = IDC_SIZEALL;	    break;	case FL_CURSOR_N:	case FL_CURSOR_S:	case FL_CURSOR_NS:	    n = IDC_SIZENS;	    break;	case FL_CURSOR_NE:	case FL_CURSOR_SW:	case FL_CURSOR_NESW:	    n = IDC_SIZENESW;	    break;	case FL_CURSOR_E:	case FL_CURSOR_W:	case FL_CURSOR_WE:	    n = IDC_SIZEWE;	    break;	case FL_CURSOR_SE:	case FL_CURSOR_NW:	case FL_CURSOR_NWSE:	    n = IDC_SIZENWSE;	    break;	default:	    n = IDC_NO;	    break;	}	i->cursor = LoadCursor(NULL, n);    }    SetCursor(i->cursor);}#else// I like the MSWindows resize cursors, so I duplicate them here:#define CURSORSIZE 16#define HOTXY 7struct TableEntry{    uchar bits[CURSORSIZE * CURSORSIZE / 8];    uchar mask[CURSORSIZE * CURSORSIZE / 8];    Cursor cursor;}table[] ={    { {				// FL_CURSOR_NS    0x00, 0x00, 0x80, 0x01, 0xc0, 0x03, 0xe0, 0x07, 0x80, 0x01, 0x80,		0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01,		0x80, 0x01, 0x80, 0x01, 0xe0, 0x07, 0xc0, 0x03, 0x80,		0x01, 0x00, 0x00}    , {    0x80, 0x01, 0xc0, 0x03, 0xe0, 0x07, 0xf0, 0x0f, 0xf0, 0x0f, 0xc0,	    0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0,	    0x03, 0xf0, 0x0f, 0xf0, 0x0f, 0xe0, 0x07, 0xc0, 0x03, 0x80, 0x01}    }    , { {			// FL_CURSOR_EW    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,		0x10, 0x0c, 0x30, 0xfe, 0x7f, 0xfe, 0x7f, 0x0c, 0x30,		0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,		0x00, 0x00, 0x00}    , {    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x1c,	    0x38, 0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0x1c,	    0x38, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}    }    , { {			// FL_CURSOR_NWSE    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x38, 0x00, 0x78,		0x00, 0xe8, 0x00, 0xc0, 0x01, 0x80, 0x03, 0x00, 0x17,		0x00, 0x1e, 0x00, 0x1c, 0x00, 0x1e, 0x00, 0x00, 0x00,		0x00, 0x00, 0x00}    , {    0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 0xfc, 0x00, 0x7c, 0x00, 0xfc,	    0x00, 0xfc, 0x01, 0xec, 0x03, 0xc0, 0x37, 0x80, 0x3f, 0x00,	    0x3f, 0x00, 0x3e, 0x00, 0x3f, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00}    }    , { {			// FL_CURSOR_NESW    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x1c, 0x00,		0x1e, 0x00, 0x17, 0x80, 0x03, 0xc0, 0x01, 0xe8, 0x00,		0x78, 0x00, 0x38, 0x00, 0x78, 0x00, 0x00, 0x00, 0x00,		0x00, 0x00, 0x00}    , {    0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x3f, 0x00, 0x3e, 0x00,	    0x3f, 0x80, 0x3f, 0xc0, 0x37, 0xec, 0x03, 0xfc, 0x01, 0xfc,	    0x00, 0x7c, 0x00, 0xfc, 0x00, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00}    }    , { {    0}    , {    0}    }				// FL_CURSOR_NONE & unknown};#ifdef NANO_X// Microwindows default cursorstatic MWIMAGEBITS cursorbits[16] = {    0xe000, 0x9800, 0x8600, 0x4180,    0x4060, 0x2018, 0x2004, 0x107c,    0x1020, 0x0910, 0x0988, 0x0544,    0x0522, 0x0211, 0x000a, 0x0004};static MWIMAGEBITS cursormask[16] = {    0xe000, 0xf800, 0xfe00, 0x7f80,    0x7fe0, 0x3ff8, 0x3ffc, 0x1ffc,    0x1fe0, 0x0ff0, 0x0ff8, 0x077c,    0x073e, 0x021f, 0x000e, 0x0004};#endifvoidFl_Window::cursor(Fl_Cursor c, Fl_Color fg, Fl_Color bg){    if (!shown())	return;    uchar fg_r, fg_g, fg_b, bg_r, bg_g, bg_b;    Cursor cursor;#ifndef NANO_X    int deleteit = 0;#endif    if (!c) {	cursor = None;#ifdef NANO_X	//TableEntry *q = table;	GrSetCursor(fl_window, CURSORSIZE, CURSORSIZE, HOTXY, HOTXY, WHITE,		    BLACK, cursorbits, cursormask);#endif    } else {	if (c >= FL_CURSOR_NS) {	    TableEntry *q =		(c > FL_CURSOR_NESW) ? table + 4 : table + (c - FL_CURSOR_NS);	    if (!(q->cursor)) {#ifdef NANO_X			//tanghao		Fl::get_color(fg, fg_r, fg_g, fg_b);		Fl::get_color(bg, bg_r, bg_g, bg_b);		GrSetCursor(fl_window, CURSORSIZE, CURSORSIZE, HOTXY, HOTXY,			    fl_xpixel(bg_r, bg_g, bg_b), fl_xpixel(fg_r, fg_g,								   fg_b),			    (GR_BITMAP *) (q->bits), (GR_BITMAP *) (q->mask));		//GrSetCursor(fl_window,CURSORSIZE,CURSORSIZE,HOTXY,HOTXY,BLACK,WHITE,( GR_BITMAP*)(q->bits),( GR_BITMAP*)(q->mask));		//(GR_WINDOW_ID wid, GR_SIZE width, GR_SIZE height,		//GR_COORD hotx, GR_COORD hoty, GR_COLOR foreground,		//GR_COLOR background, GR_BITMAP *fbbitmap,		//GR_BITMAP *bgbitmap);#else		XColor dummy;		Pixmap p = XCreateBitmapFromData(fl_display,						 RootWindow(fl_display,							    fl_screen),						 (const char *) (q->bits),						 CURSORSIZE, CURSORSIZE);		Pixmap m = XCreateBitmapFromData(fl_display,						 RootWindow(fl_display,							    fl_screen),						 (const char *) (q->mask),						 CURSORSIZE, CURSORSIZE);		q->cursor =		    XCreatePixmapCursor(fl_display, p, m, &dummy, &dummy,					HOTXY, HOTXY);		XFreePixmap(fl_display, m);		XFreePixmap(fl_display, p);#endif //tanghao	    }	    cursor = q->cursor;	} else {#ifndef NANO_X			//tanghao	    cursor = XCreateFontCursor(fl_display, (c - 1) * 2);	    deleteit = 1;#endif //tanghao	}#ifndef NANO_X			//tanghao	XColor fgc;	uchar r, g, b;	Fl::get_color(fg, r, g, b);	fgc.red = r << 8;	fgc.green = g << 8;	fgc.blue = b << 8;	XColor bgc;	Fl::get_color(bg, r, g, b);	bgc.red = r << 8;	bgc.green = g << 8;	bgc.blue = b << 8;	XRecolorCursor(fl_display, cursor, &fgc, &bgc);#endif //tanghao    }#ifndef NANO_X			//tanghao    XDefineCursor(fl_display, fl_xid(this), cursor);    if (deleteit)	XFreeCursor(fl_display, cursor);#endif //tanghao}#endif//// End of "$Id: fl_cursor.cxx,v 1.1.1.1 2003/08/07 21:18:41 jasonk Exp $".//

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
岛国av在线一区| 欧美精品乱码久久久久久 | 久久精品72免费观看| 99久久久久久99| 日韩精品一区二区三区蜜臀| 综合色中文字幕| 国产麻豆欧美日韩一区| 欧美日韩色一区| 亚洲视频一区二区在线| 国产精品一区一区| 日韩欧美一区在线| 亚洲午夜久久久久| 色综合色狠狠综合色| 国产午夜精品一区二区| 久久狠狠亚洲综合| 91精品国产乱| 无码av免费一区二区三区试看 | 久久午夜电影网| 日韩精品一二三四| 欧美三级中文字幕在线观看| 亚洲图片你懂的| 成人h版在线观看| xf在线a精品一区二区视频网站| 肉肉av福利一精品导航| 欧美日韩国产高清一区二区| 亚洲国产精品一区二区www| 色老汉av一区二区三区| 亚洲黄色录像片| 91麻豆国产福利精品| 亚洲视频免费看| 91网页版在线| 亚洲日本一区二区| 一本大道久久a久久综合婷婷| 日韩美女啊v在线免费观看| 97超碰欧美中文字幕| 中文字幕亚洲在| 91行情网站电视在线观看高清版| 中文字幕在线不卡一区| 一本大道久久a久久精二百| 一个色在线综合| 欧美日韩视频一区二区| 喷白浆一区二区| 久久精品亚洲乱码伦伦中文| 粉嫩嫩av羞羞动漫久久久| 国产精品二三区| 91精品1区2区| 麻豆精品久久精品色综合| 久久亚洲欧美国产精品乐播| 成人中文字幕电影| 一区二区三区精品| 欧美视频在线一区| 久久99精品久久久久久| 中文字幕巨乱亚洲| 色菇凉天天综合网| 日韩影院精彩在线| 国产亚洲精品bt天堂精选| 99精品热视频| 男女男精品视频| 中文幕一区二区三区久久蜜桃| 99精品欧美一区二区三区综合在线| 一区二区三区四区不卡在线| 日韩一级免费观看| www.亚洲人| 日本欧美加勒比视频| 久久久99久久精品欧美| 欧美在线制服丝袜| 国产一区二区三区精品视频| 国产精品久久久久aaaa| 7777女厕盗摄久久久| 成人毛片在线观看| 日韩成人免费在线| 国产精品―色哟哟| 日韩精品专区在线| 一本一道综合狠狠老| 国产一区二区0| 亚洲成a人片在线观看中文| 久久精品一区二区三区不卡| 欧美精品一级二级| 91丨porny丨户外露出| 精品影视av免费| 亚洲一区二区三区精品在线| 欧美国产一区二区| 日韩美一区二区三区| 日本久久电影网| 国产91精品一区二区| 美女精品一区二区| 亚洲狠狠爱一区二区三区| 国产精品人成在线观看免费| 日韩女优视频免费观看| 欧美性做爰猛烈叫床潮| 99精品视频中文字幕| 国产乱国产乱300精品| 日本不卡免费在线视频| 夜夜爽夜夜爽精品视频| 国产精品卡一卡二卡三| 精品免费99久久| 欧美精品成人一区二区三区四区| 91亚洲精品久久久蜜桃| 国产成+人+日韩+欧美+亚洲| 九九**精品视频免费播放| 午夜精品久久久久久久 | 在线亚洲一区二区| 成人午夜免费电影| 国产毛片一区二区| 久久精品国产一区二区| 免费观看在线综合| 日韩激情在线观看| 日日噜噜夜夜狠狠视频欧美人| 亚洲精品菠萝久久久久久久| 亚洲天天做日日做天天谢日日欢 | 久久久.com| 久久久av毛片精品| 国产三区在线成人av| 久久久久亚洲综合| 国产亚洲欧美在线| 欧美国产综合色视频| 中文字幕不卡在线播放| 欧美国产欧美综合| 中文字幕一区二区三区av| 国产精品久久久久影院色老大| 国产欧美一区在线| 国产精品国产三级国产aⅴ入口| 国产精品卡一卡二卡三| 亚洲色大成网站www久久九九| 亚洲欧美一区二区三区极速播放| 一区二区在线免费| 三级欧美在线一区| 国内精品嫩模私拍在线| 国产成人在线免费| 91在线观看视频| 欧美日韩一区 二区 三区 久久精品| 欧美色爱综合网| 精品欧美久久久| 国产精品美女一区二区在线观看| 成人欧美一区二区三区视频网页 | 国产精品99久久久久久宅男| 粉嫩高潮美女一区二区三区| 色综合久久中文字幕综合网 | 日本欧洲一区二区| 国产精品一区久久久久| 99久久国产免费看| 欧美一区二区观看视频| 国产喂奶挤奶一区二区三区 | 中文字幕一区二区三区四区不卡 | eeuss鲁片一区二区三区 | 99精品国产热久久91蜜凸| 91女神在线视频| 8v天堂国产在线一区二区| 国产午夜精品一区二区三区四区| 亚洲美女视频一区| 九一久久久久久| 91行情网站电视在线观看高清版| 欧美成人午夜电影| 一区在线播放视频| 青椒成人免费视频| 91美女精品福利| 久久综合狠狠综合久久综合88| 18成人在线观看| 美女诱惑一区二区| 日本高清不卡aⅴ免费网站| 精品国产乱码久久久久久牛牛 | 亚洲天堂av一区| 美腿丝袜亚洲色图| 在线观看一区日韩| 亚洲国产精品国自产拍av| 日韩中文字幕麻豆| 色伊人久久综合中文字幕| 精品国产亚洲在线| 日韩国产在线观看| 色乱码一区二区三区88| 国产色产综合色产在线视频| 午夜精品一区二区三区免费视频| 成人免费观看av| 欧美xxx久久| 丝袜亚洲另类欧美| 色综合视频在线观看| 国产精品视频九色porn| 国产一区二区精品久久91| 91精品国产综合久久精品app| 日韩一区有码在线| a级高清视频欧美日韩| 国产亚洲婷婷免费| 久久国产欧美日韩精品| 欧美日韩国产综合一区二区 | 国产一区二区三区精品视频| 91精品国产色综合久久 | 一卡二卡三卡日韩欧美| 97se亚洲国产综合在线| 中文一区在线播放| 国产精品一二一区| 精品精品国产高清a毛片牛牛| 日韩国产精品久久| 538在线一区二区精品国产| 午夜成人免费电影| 欧美日韩一区二区三区在线| 亚洲成a人片综合在线| 欧美日本在线视频| 天堂va蜜桃一区二区三区| 欧美日韩不卡一区| 男男视频亚洲欧美|