亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
免费人成精品欧美精品| 一区二区三区在线观看网站| 欧美午夜免费电影| 91视频一区二区三区| 国产suv精品一区二区6| 国产激情偷乱视频一区二区三区| 麻豆精品国产传媒mv男同| 毛片不卡一区二区| 精品一区二区三区在线观看国产| 久久国产尿小便嘘嘘| 国产原创一区二区| 懂色中文一区二区在线播放| 成人h动漫精品一区二| 99久久久精品| 欧美三级日韩三级国产三级| 欧美另类z0zxhd电影| 日韩亚洲欧美在线观看| 欧美草草影院在线视频| 久久久精品蜜桃| 国产精品国模大尺度视频| 亚洲精品综合在线| 天天av天天翘天天综合网 | 久久久99久久| 国产精品理论片| 一区二区三区在线观看国产| 午夜欧美一区二区三区在线播放| 日本一不卡视频| 粉嫩一区二区三区性色av| 91视频国产观看| 91精品国产全国免费观看| 精品国产免费人成在线观看| 国产精品久久久久久久久久免费看| 亚洲精品视频在线| 免费av网站大全久久| heyzo一本久久综合| 欧美日韩日日骚| 国产亚洲成年网址在线观看| 综合色中文字幕| 麻豆精品视频在线观看免费| 不卡的av网站| 欧美一区二区精美| 亚洲天堂2014| 国产精品18久久久久久久久久久久| 99久久国产综合精品女不卡| 日韩欧美国产精品一区| 18欧美乱大交hd1984| 久久av资源站| 欧洲在线/亚洲| 国产精品色眯眯| 日韩黄色免费网站| 91福利精品视频| 国产精品素人视频| 捆绑调教一区二区三区| 欧洲国产伦久久久久久久| 国产亚洲一二三区| 日本va欧美va欧美va精品| 91网站视频在线观看| 国产欧美日本一区视频| 蜜桃av噜噜一区| 欧美日本国产视频| 一区二区免费视频| 成人av影院在线| 中日韩免费视频中文字幕| 国产做a爰片久久毛片| 欧美一区二区三区影视| 亚洲国产欧美日韩另类综合 | 欧美一区三区四区| 亚洲一区在线播放| 欧美午夜精品久久久久久超碰 | 麻豆精品视频在线| 欧美年轻男男videosbes| 亚洲黄色片在线观看| 91啦中文在线观看| 亚洲精品国产一区二区精华液 | 亚洲成人www| 欧美中文一区二区三区| 亚洲一区二区精品久久av| 91在线视频免费观看| 亚洲图片你懂的| 色久综合一二码| 亚洲一区二区三区精品在线| 色国产综合视频| 舔着乳尖日韩一区| 精品福利在线导航| 国产91丝袜在线播放0| 国产精品理伦片| 在线观看日韩av先锋影音电影院| 精品久久久影院| 国产一区久久久| 欧美一级免费大片| 一区二区三区中文在线| 精品一区二区免费| 久久中文娱乐网| 久久99在线观看| 欧美不卡一区二区| 极品少妇xxxx精品少妇| 国产日韩欧美综合在线| 国产成人精品亚洲午夜麻豆| 国产日韩影视精品| 国产乱淫av一区二区三区| 国产精品日韩成人| 91丝袜高跟美女视频| 亚洲国产日韩在线一区模特| 欧美日韩在线精品一区二区三区激情 | 2023国产精华国产精品| 国产精品一区二区免费不卡| 国产精品网站在线| 国精产品一区一区三区mba视频 | 亚洲综合免费观看高清在线观看| 色呦呦日韩精品| 亚洲午夜视频在线观看| 欧美精品一卡两卡| 狠狠网亚洲精品| 国产亚洲一区字幕| 日本道精品一区二区三区| 亚洲国产精品麻豆| 精品国产乱码久久久久久老虎 | 一本色道亚洲精品aⅴ| 夜夜爽夜夜爽精品视频| 欧美亚洲日本国产| 成人免费毛片aaaaa**| 亚洲六月丁香色婷婷综合久久 | 97se亚洲国产综合自在线| 国产一区啦啦啦在线观看| 成人开心网精品视频| 欧美一区二区啪啪| 亚洲日本青草视频在线怡红院| 性久久久久久久| 99久久精品一区二区| 久久久不卡网国产精品一区| 一区二区三区免费网站| 国内成人免费视频| 成人av中文字幕| 欧美中文字幕亚洲一区二区va在线| 日韩精品福利网| 国产日韩欧美在线一区| 麻豆高清免费国产一区| 香蕉久久一区二区不卡无毒影院| 久久久99精品免费观看| 欧美日韩亚洲丝袜制服| 成人在线一区二区三区| 日韩国产在线一| 亚洲精品免费播放| 国产精品传媒在线| 久久久综合激的五月天| 欧美日韩国产乱码电影| 99九九99九九九视频精品| 精品一区二区三区视频| 亚洲成人动漫在线观看| 国产日韩欧美麻豆| 国产欧美一区二区精品性| 91麻豆精品国产91久久久资源速度 | 在线精品视频一区二区| 国产一区二区三区四| 日韩精品国产欧美| 亚洲成人动漫一区| 亚洲综合成人网| 亚洲欧洲日韩女同| 国产精品久久一级| 国产精品久久久久久亚洲伦| 91精品麻豆日日躁夜夜躁| 欧美伊人精品成人久久综合97 | 男女视频一区二区| 亚洲男人的天堂网| ...av二区三区久久精品| 欧美激情在线一区二区| 精品国产在天天线2019| 久久久久久亚洲综合| 26uuu国产电影一区二区| 91麻豆精品国产91久久久久久| 欧美探花视频资源| 欧美三级一区二区| 欧美亚洲日本国产| 在线一区二区三区做爰视频网站| 成人免费观看视频| 91日韩在线专区| 色综合咪咪久久| 91国偷自产一区二区三区观看| 色综合天天在线| 日韩一区二区三区在线视频| 69p69国产精品| 日韩精品一区二区三区在线观看| 精品国产一区二区三区四区四 | 久久九九99视频| 久久精品亚洲麻豆av一区二区| 国产色一区二区| 国产精品不卡一区二区三区| |精品福利一区二区三区| 欧美国产精品一区二区三区| 一区二区三区免费| 日韩中文字幕av电影| 美美哒免费高清在线观看视频一区二区 | www.色精品| 欧美天天综合网| 日韩欧美电影一二三| 久久亚洲精精品中文字幕早川悠里| 国产性天天综合网| 亚洲欧美一区二区三区极速播放 | 国产精品国产自产拍在线| 亚洲激情一二三区|