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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pager.c

?? 安裝DDD之前
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
/* $Id: pager.c,v 1.1 2004/08/28 19:25:46 dannybackx Exp $ *//**************************************************************************** * This module is all new * by Rob Nation  ****************************************************************************//*********************************************************************** * The rest of it is all my fault -- MLM * mwm - "LessTif Window Manager" ***********************************************************************/#include <LTconfig.h>#include <string.h>#include <Xm/Xm.h>#include <Xm/MwmUtil.h>#include "mwm.h"Bool pagerOn = True;Bool EnablePagerRedraw = True;Bool DoHandlePageing = True;static char *pager_name = "Mwm Pager";static XClassHint classhints ={    "pager",    "Mwm"};static XSizeHints sizehints ={    (PMinSize | PResizeInc | PBaseSize | PWinGravity),    0, 0, 100, 100,		/* x, y, width and height */    1, 1,			/* Min width and height */    0, 0,			/* Max width and height */    1, 1,			/* Width and height increments */    {0, 0},    {0, 0},			/* Aspect ratio - not used */    1, 1,			/* base size */    (NorthWestGravity)		/* gravity */};/* * draw the lines delimiting the virtual screens */static voiddraw_partitions(ScreenInfo *scr){    int y, y1, y2, x, x1, x2;    int MaxW, MaxH, width, height;    MaxW = scr->virt_x_max + scr->d_width;    MaxH = scr->virt_y_max + scr->d_height;    width = scr->mwm_pager->frame_width -	2 * scr->mwm_pager->boundary_width -	2 * scr->mwm_pager->matte_width;    height = scr->mwm_pager->frame_height -	scr->mwm_pager->title_height -	2 * scr->mwm_pager->boundary_width -	2 * scr->mwm_pager->matte_width;    x = scr->d_width;    y1 = 0;    y2 = height;    while (x < MaxW)    {	x1 = x * width / MaxW;	XDrawLine(dpy, scr->pager_win,		  scr->components[MWM_PAGER].normal_GC, x1, y1, x1, y2);	x += scr->d_width;    }    y = scr->d_height;    x1 = 0;    x2 = width;    while (y < MaxH)    {	y1 = y * height / MaxH;	XDrawLine(dpy, scr->pager_win,		  scr->components[MWM_PAGER].normal_GC, x1, y1, x2, y1);	y += scr->d_height;    }}/* * clear the pager area.  This will cause the pager to be redrawn. */voidPAGER_Clear(ScreenInfo *scr){    if ((scr->mwm_pager) && (EnablePagerRedraw))	XClearArea(dpy, scr->pager_win, 0, 0, scr->mwm_pager->frame_width,		   scr->mwm_pager->frame_height, True);}/* * redraw the pager: we try to be clever - re-draw the pager by causing * an expose event, so that the redraw occurs when the expose arrives. * The advantage is that the number of re-draws will be minimized. */voidPAGER_Redraw(ScreenInfo *scr){    MwmWindow *t;    if (!scr->mwm_pager)	return;    MISC_FlushExpose(scr->pager_win);    MISC_FlushExpose(scr->pager_child_win);    if (scr->components[MWM_PAGER].f_height > 0)    {	if (scr->mwm_highlight != NULL)	{	    if (!(scr->mwm_highlight->flags & STICKY) &&		(scr->mwm_highlight->icon_label != NULL))	    {		MISC_FlushExpose(scr->mwm_highlight->pager_view);		XDrawImageString(dpy, scr->mwm_highlight->pager_view,				 scr->components[MWM_PAGER].normal_GC,				 2, scr->components[MWM_PAGER].f_y + 2,				 scr->mwm_highlight->icon_label,				 strlen(scr->mwm_highlight->icon_label));	    }	}	for (t = scr->mwm_root.next; t != NULL; t = t->next)	{	    if (t != scr->mwm_highlight)	    {		if (!(t->flags & STICKY) &&		    (t->icon_label != NULL))		{		    MISC_FlushExpose(t->pager_view);		    XDrawImageString(dpy, t->pager_view,				     scr->components[MWM_PAGER].normal_GC,				     2, scr->components[MWM_PAGER].f_y + 2,				     t->icon_label, strlen(t->icon_label));		}	    }	}    }    draw_partitions(scr);}/* * update the child.  MLM -- I'm still not sure what this is. */voidPAGER_UpdateViewPort(ScreenInfo *scr){    int width, height, x1, x2, y1, y2;    if ((scr->pager_child_win) && (scr->mwm_pager))    {	width = scr->mwm_pager->frame_width -	    2 * scr->mwm_pager->boundary_width -	    2 * scr->mwm_pager->matte_width;	height = scr->mwm_pager->frame_height -	    scr->mwm_pager->title_height -	    2 * scr->mwm_pager->boundary_width -	    2 * scr->mwm_pager->matte_width;	x1 = scr->virt_x * width / (scr->virt_x_max + scr->d_width) + 1;	y1 = scr->virt_y * height / (scr->virt_y_max + scr->d_height) + 1;	x2 = (scr->d_width) * width / (scr->virt_x_max + scr->d_width) - 1;	y2 = (scr->d_height) * height / (scr->virt_y_max + scr->d_height) - 1;	if (x1 == 1)	{	    x1--;	    x2++;	}	if (y1 == 1)	{	    y1--;	    y2++;	}	XMoveResizeWindow(dpy, scr->pager_child_win, x1, y1, x2, y2);    }}/* * update the pager view */voidPAGER_UpdateView(ScreenInfo *scr, MwmWindow *t){    unsigned int width, height;    int ww, wh;    int wx, wy;    int MaxH, MaxW;    if ((!scr->mwm_pager) || (!pagerOn))	return;    width = scr->mwm_pager->frame_width -	2 * scr->mwm_pager->boundary_width -	2 * scr->mwm_pager->matte_width;    height = scr->mwm_pager->frame_height -	scr->mwm_pager->title_height -	2 * scr->mwm_pager->boundary_width -	2 * scr->mwm_pager->matte_width;    MaxW = scr->virt_x_max + scr->d_width;    MaxH = scr->virt_y_max + scr->d_height;    if ((!(t->flags & STICKY)) &&	(!((t->flags & ICONIFIED) && (t->flags & ICON_UNMAPPED))) &&	(t->Desk == scr->current_desk))    {	if (t->flags & ICONIFIED)	{	    /* show the icon loc */	    wx = (t->icon_x_loc + scr->virt_x) * (int)width / MaxW;;	    wy = (t->icon_y_loc + scr->virt_y) * (int)height / MaxH;	    ww = t->icon_w_width * (int)width / MaxW;	    wh = (t->icon_w_height + t->icon_p_height) * (int)height / MaxH;	}	else	{	    /* show the actual window */	    wx = (t->frame_x + scr->virt_x) * (int)width / MaxW;	    wy = (t->frame_y + scr->virt_y) * (int)height / MaxH;	    ww = t->frame_width * (int)width / MaxW;	    wh = t->frame_height * (int)height / MaxH;	}	if (ww < 2)	    ww = 2;	if (wh < 2)	    wh = 2;	XMoveResizeWindow(dpy, t->pager_view, wx, wy, ww, wh);    }    else    {	/* window is sticky - make sure that the pager_view window is not 	 * visible */	XMoveResizeWindow(dpy, t->pager_view, -10, -10, 5, 5);    }    PAGER_Clear(scr);}/* *  Moves the viewport within thwe virtual desktop */voidPAGER_MoveViewPort(ScreenInfo *scr, int newx, int newy, Boolean grab){    MwmWindow *t;    int deltax, deltay;    XEvent oevent;    if (grab)	XGrabServer(dpy);    if (newx > scr->virt_x_max)	newx = scr->virt_x_max;    if (newy > scr->virt_y_max)	newy = scr->virt_y_max;    if (newx < 0)	newx = 0;    if (newy < 0)	newy = 0;    deltay = scr->virt_y - newy;    deltax = scr->virt_x - newx;    scr->virt_x = newx;    scr->virt_y = newy;    if ((deltax != 0) || (deltay != 0))    {	for (t = scr->mwm_root.next; t != NULL; t = t->next)	{	    /* If the window is iconified, and sticky Icons is set,	     * then the window should essentially be sticky */	    if (!(t->flags & STICKY))	    {		t->icon_x_loc += deltax;		t->icon_xl_loc += deltax;		t->icon_y_loc += deltay;		if (t->icon_pixmap_w != None)		    XMoveWindow(dpy, t->icon_pixmap_w, t->icon_x_loc,				t->icon_y_loc);		if (t->icon_w != None)		    XMoveWindow(dpy, t->icon_w, t->icon_x_loc,				t->icon_y_loc + t->icon_p_height);		DEC_ConfigureDecorations(scr, t,					 t->frame_x + deltax,					 t->frame_y + deltay,					 t->frame_width, t->frame_height,					 False);	    }	}	for (t = scr->mwm_root.next; t != NULL; t = t->next)	{	    /* If its an icon, and its sticking, autoplace it so	     * that it doesn't wind up on top a a stationary	     * icon */	    if ((t->flags & STICKY) &&		(t->flags & ICONIFIED) && (!(t->flags & ICON_MOVED)) &&		(!(t->flags & ICON_UNMAPPED)))		ICON_AutoPlace(scr, t);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费观看高清完整| 久久久亚洲欧洲日产国码αv| 日韩和欧美一区二区三区| 精品乱码亚洲一区二区不卡| 国产成人在线观看| 亚洲一区二区三区小说| 欧美精品一区二区三区久久久| 成人激情动漫在线观看| 日本中文在线一区| 一区二区在线观看av| 欧美成人精品二区三区99精品| 91网站在线播放| 国产精品中文有码| 日本午夜一本久久久综合| 亚洲视频1区2区| 久久精品亚洲麻豆av一区二区 | 欧美精品第1页| 国产成人一区在线| 美女视频一区在线观看| 亚洲国产精品久久不卡毛片| 亚洲国产精品二十页| 欧美不卡激情三级在线观看| 欧美挠脚心视频网站| 色综合久久久久综合体桃花网| 韩国精品免费视频| 久久99最新地址| 日韩电影在线观看电影| 一区二区高清视频在线观看| 成人欧美一区二区三区| 国产欧美一区二区精品忘忧草| 日韩精品一区二区三区视频| 欧美高清www午色夜在线视频| 99久久99久久综合| 成人app在线观看| 成人午夜视频网站| 国产不卡在线视频| 国产伦精一区二区三区| 精品一区精品二区高清| 麻豆国产91在线播放| 男女男精品视频| 日本成人在线电影网| 日韩在线a电影| 日韩 欧美一区二区三区| 日本va欧美va欧美va精品| 五月天婷婷综合| 日韩福利电影在线观看| 蜜臀久久99精品久久久画质超高清| 婷婷丁香激情综合| 蜜臀av一级做a爰片久久| 欧美aa在线视频| 国产最新精品精品你懂的| 国产精品一区二区黑丝| 国产一区二区女| 成人一级黄色片| 91丨九色丨蝌蚪丨老版| 91成人免费电影| 欧美美女一区二区| 日韩三级中文字幕| 久久久美女毛片| 国产欧美va欧美不卡在线| 成人欧美一区二区三区白人| 亚洲一区二区三区爽爽爽爽爽| 亚洲国产人成综合网站| 天堂在线亚洲视频| 久久99蜜桃精品| 顶级嫩模精品视频在线看| 91麻豆视频网站| 911国产精品| 久久久91精品国产一区二区三区| 国产亚洲精品中文字幕| 国产精品二三区| 亚洲成a天堂v人片| 精品中文字幕一区二区| 成人性生交大片免费看视频在线 | 国产日韩欧美综合一区| 国产精品久久久久久久久久久免费看| 日韩一区中文字幕| 亚洲.国产.中文慕字在线| 免费看欧美美女黄的网站| 国产成人鲁色资源国产91色综| av毛片久久久久**hd| 精品婷婷伊人一区三区三| 欧美成人一区二区三区在线观看| 国产精品亲子乱子伦xxxx裸| 亚洲成人精品一区| 黄色成人免费在线| 色噜噜狠狠成人网p站| 日韩欧美一级片| 中文字幕 久热精品 视频在线| 亚洲一区二区三区四区五区中文| 久久99国内精品| 色婷婷激情久久| 久久伊99综合婷婷久久伊| 亚洲欧美日韩综合aⅴ视频| 另类专区欧美蜜桃臀第一页| 91浏览器入口在线观看| 欧美精品久久99久久在免费线| 国产精品素人视频| 奇米777欧美一区二区| 白白色 亚洲乱淫| 91精品国产综合久久福利软件| 国产精品欧美经典| 老司机免费视频一区二区| 99精品久久99久久久久| 精品嫩草影院久久| 首页国产欧美久久| 在线看国产一区| 国产精品嫩草久久久久| 精品无人码麻豆乱码1区2区| 欧美色网站导航| 亚洲欧洲av在线| 国产精品资源在线观看| 日韩免费电影一区| 香蕉久久一区二区不卡无毒影院| 国产精品正在播放| 26uuu亚洲| 日本在线播放一区二区三区| 色先锋资源久久综合| 国产精品丝袜一区| 国产一区二区免费看| 欧美成人精品二区三区99精品| 婷婷亚洲久悠悠色悠在线播放| 99视频在线精品| 国产精品女人毛片| 粉嫩嫩av羞羞动漫久久久| 26uuu欧美日本| 国产一区二区在线视频| 日韩一区二区免费在线电影 | 亚洲成人先锋电影| 91免费观看视频在线| 国产精品美女一区二区三区| 国产成人午夜精品影院观看视频| 精品久久久久一区二区国产| 日本欧美一区二区| 欧美一区二区精品在线| 日本网站在线观看一区二区三区| 欧美探花视频资源| 一区二区三区加勒比av| 欧美性感一区二区三区| 亚洲欧美国产高清| aa级大片欧美| 亚洲三级在线播放| 色94色欧美sute亚洲13| 亚洲午夜在线电影| 欧美日韩一本到| 亚洲福利一二三区| 欧美性大战久久久久久久蜜臀 | 欧美福利一区二区| 日本欧美大码aⅴ在线播放| 日韩免费高清av| 国产精品一区二区在线观看不卡| 久久久久久综合| 风间由美一区二区av101| 国产精品国产精品国产专区不片| av男人天堂一区| 亚洲va欧美va人人爽午夜| 欧美日韩在线综合| 蜜桃视频在线观看一区二区| 精品久久免费看| 成人精品小蝌蚪| 一区二区成人在线| 91精品国产色综合久久不卡蜜臀| 精品一二三四区| 中文字幕av在线一区二区三区| 不卡av免费在线观看| 一区二区三区波多野结衣在线观看| 欧美三级资源在线| 日本怡春院一区二区| 久久久.com| 欧美在线免费播放| 黄色成人免费在线| 一区二区三区四区精品在线视频| 欧美日韩三级一区| 极品美女销魂一区二区三区免费| 国产欧美一区二区三区鸳鸯浴 | 国产精品久久久久一区二区三区共| 91在线视频在线| 日本不卡123| 国产精品久久久久影院亚瑟| 欧美人与禽zozo性伦| 国产成人精品影视| 亚洲激情校园春色| 精品福利一二区| 日本高清不卡一区| 久久99久久久欧美国产| 一区二区日韩电影| 久久久午夜精品| 欧美日韩成人在线一区| 成人性色生活片| 视频一区在线播放| 中文字幕永久在线不卡| 91麻豆精品国产91久久久久久| 成人一级片在线观看| 久久精品国产精品亚洲精品| 综合电影一区二区三区| 日韩精品一区二区三区中文不卡| 91色|porny| 福利电影一区二区三区| 九九**精品视频免费播放| 一级日本不卡的影视|