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

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

?? tktextwind.c

?? linux系統(tǒng)下的音頻通信
?? C
?? 第 1 頁 / 共 3 頁
字號:
	}	for (ancestor = textPtr->tkwin; ;		ancestor = Tk_Parent(ancestor)) {	    if (ancestor == Tk_Parent(ewPtr->body.ew.tkwin)) {		break;	    }	    if (Tk_IsTopLevel(ancestor)) {		badMaster:		Tcl_AppendResult(textPtr->interp, "can't embed ",			Tk_PathName(ewPtr->body.ew.tkwin), " relative to ",			Tk_PathName(textPtr->tkwin), (char *) NULL);		Tcl_BackgroundError(textPtr->interp);		ewPtr->body.ew.tkwin = NULL;		goto gotWindow;	    }	}	if (Tk_IsTopLevel(ewPtr->body.ew.tkwin)		|| (textPtr->tkwin == ewPtr->body.ew.tkwin)) {	    goto badMaster;	}	Tk_ManageGeometry(ewPtr->body.ew.tkwin, &textGeomType,		(ClientData) ewPtr);	Tk_CreateEventHandler(ewPtr->body.ew.tkwin, StructureNotifyMask,		EmbWinStructureProc, (ClientData) ewPtr);	/*	 * Special trick!  Must enter into the hash table *after*	 * calling Tk_ManageGeometry:  if the window was already managed	 * elsewhere in this text, the Tk_ManageGeometry call will cause	 * the entry to be removed, which could potentially lose the new	 * entry.	 */	hPtr = Tcl_CreateHashEntry(&textPtr->windowTable,		Tk_PathName(ewPtr->body.ew.tkwin), &new);	Tcl_SetHashValue(hPtr, ewPtr);    }    /*     * See if there's room for this window on this line.     */    gotWindow:    if (ewPtr->body.ew.tkwin == NULL) {	width = 0;	height = 0;    } else {	width = Tk_ReqWidth(ewPtr->body.ew.tkwin) + 2*ewPtr->body.ew.padX;	height = Tk_ReqHeight(ewPtr->body.ew.tkwin) + 2*ewPtr->body.ew.padY;    }    if ((width > (maxX - chunkPtr->x))	    && !noCharsYet && (textPtr->wrapMode != tkTextNoneUid)) {	return 0;    }    /*     * Fill in the chunk structure.     */    chunkPtr->displayProc = EmbWinDisplayProc;    chunkPtr->undisplayProc = EmbWinUndisplayProc;    chunkPtr->measureProc = (Tk_ChunkMeasureProc *) NULL;    chunkPtr->bboxProc = EmbWinBboxProc;    chunkPtr->numChars = 1;    if (ewPtr->body.ew.align == ALIGN_BASELINE) {	chunkPtr->minAscent = height - ewPtr->body.ew.padY;	chunkPtr->minDescent = ewPtr->body.ew.padY;	chunkPtr->minHeight = 0;    } else {	chunkPtr->minAscent = 0;	chunkPtr->minDescent = 0;	chunkPtr->minHeight = height;    }    chunkPtr->width = width;    chunkPtr->breakIndex = -1;    chunkPtr->breakIndex = 1;    chunkPtr->clientData = (ClientData) ewPtr;    ewPtr->body.ew.chunkCount += 1;    return 1;}/* *-------------------------------------------------------------- * * EmbWinCheckProc -- * *	This procedure is invoked by the B-tree code to perform *	consistency checks on embedded windows. * * Results: *	None. * * Side effects: *	The procedure panics if it detects anything wrong with *	the embedded window. * *-------------------------------------------------------------- */static voidEmbWinCheckProc(ewPtr, linePtr)    TkTextSegment *ewPtr;		/* Segment to check. */    TkTextLine *linePtr;		/* Line containing segment. */{    if (ewPtr->nextPtr == NULL) {	panic("EmbWinCheckProc: embedded window is last segment in line");    }    if (ewPtr->size != 1) {	panic("EmbWinCheckProc: embedded window has size %d", ewPtr->size);    }}/* *-------------------------------------------------------------- * * EmbWinDisplayProc -- * *	This procedure is invoked by the text displaying code *	when it is time to actually draw an embedded window *	chunk on the screen. * * Results: *	None. * * Side effects: *	The embedded window gets moved to the correct location *	and mapped onto the screen. * *-------------------------------------------------------------- */static voidEmbWinDisplayProc(chunkPtr, x, y, lineHeight, baseline, display, dst, screenY)    TkTextDispChunk *chunkPtr;		/* Chunk that is to be drawn. */    int x;				/* X-position in dst at which to					 * draw this chunk (differs from					 * the x-position in the chunk because					 * of scrolling). */    int y;				/* Top of rectangular bounding box					 * for line: tells where to draw this					 * chunk in dst (x-position is in					 * the chunk itself). */    int lineHeight;			/* Total height of line. */    int baseline;			/* Offset of baseline from y. */    Display *display;			/* Display to use for drawing. */    Drawable dst;			/* Pixmap or window in which to draw */    int screenY;			/* Y-coordinate in text window that					 * corresponds to y. */{    TkTextSegment *ewPtr = (TkTextSegment *) chunkPtr->clientData;    int lineX, windowX, windowY, width, height;    Tk_Window tkwin;    tkwin = ewPtr->body.ew.tkwin;    if (tkwin == NULL) {	return;    }    if ((x + chunkPtr->width) <= 0) {	/*	 * The window is off-screen;  just unmap it.	 */	if (ewPtr->body.ew.textPtr->tkwin != Tk_Parent(tkwin)) {	    Tk_UnmaintainGeometry(tkwin, ewPtr->body.ew.textPtr->tkwin);	} else {	    Tk_UnmapWindow(tkwin);	}	return;    }    /*     * Compute the window's location and size in the text widget, taking     * into account the align and stretch values for the window.     */    EmbWinBboxProc(chunkPtr, 0, screenY, lineHeight, baseline, &lineX,	    &windowY, &width, &height);    windowX = lineX - chunkPtr->x + x;    if (ewPtr->body.ew.textPtr->tkwin == Tk_Parent(tkwin)) {	if ((windowX != Tk_X(tkwin)) || (windowY != Tk_Y(tkwin))		|| (Tk_ReqWidth(tkwin) != Tk_Width(tkwin))		|| (height != Tk_Height(tkwin))) {	    Tk_MoveResizeWindow(tkwin, windowX, windowY, width, height);	}	Tk_MapWindow(tkwin);    } else {	Tk_MaintainGeometry(tkwin, ewPtr->body.ew.textPtr->tkwin,		windowX, windowY, width, height);    }    /*     * Mark the window as displayed so that it won't get unmapped.     */    ewPtr->body.ew.displayed = 1;}/* *-------------------------------------------------------------- * * EmbWinUndisplayProc -- * *	This procedure is called when the chunk for an embedded *	window is no longer going to be displayed.  It arranges *	for the window associated with the chunk to be unmapped. * * Results: *	None. * * Side effects: *	The window is scheduled for unmapping. * *-------------------------------------------------------------- */static voidEmbWinUndisplayProc(textPtr, chunkPtr)    TkText *textPtr;			/* Overall information about text					 * widget. */    TkTextDispChunk *chunkPtr;		/* Chunk that is about to be freed. */{    TkTextSegment *ewPtr = (TkTextSegment *) chunkPtr->clientData;    ewPtr->body.ew.chunkCount--;    if (ewPtr->body.ew.chunkCount == 0) {	/*	 * Don't unmap the window immediately, since there's a good chance	 * that it will immediately be redisplayed, perhaps even in the	 * same place.  Instead, schedule the window to be unmapped later;	 * the call to EmbWinDelayedUnmap will be cancelled in the likely	 * event that the unmap becomes unnecessary.	 */	ewPtr->body.ew.displayed = 0;	Tcl_DoWhenIdle(EmbWinDelayedUnmap, (ClientData) ewPtr);    }}/* *-------------------------------------------------------------- * * EmbWinBboxProc -- * *	This procedure is called to compute the bounding box of *	the area occupied by an embedded window. * * Results: *	There is no return value.  *xPtr and *yPtr are filled in *	with the coordinates of the upper left corner of the *	window, and *widthPtr and *heightPtr are filled in with *	the dimensions of the window in pixels.  Note:  not all *	of the returned bbox is necessarily visible on the screen *	(the rightmost part might be off-screen to the right, *	and the bottommost part might be off-screen to the bottom). * * Side effects: *	None. * *-------------------------------------------------------------- */static voidEmbWinBboxProc(chunkPtr, index, y, lineHeight, baseline, xPtr, yPtr,	widthPtr, heightPtr)    TkTextDispChunk *chunkPtr;		/* Chunk containing desired char. */    int index;				/* Index of desired character within					 * the chunk. */    int y;				/* Topmost pixel in area allocated					 * for this line. */    int lineHeight;			/* Total height of line. */    int baseline;			/* Location of line's baseline, in					 * pixels measured down from y. */    int *xPtr, *yPtr;			/* Gets filled in with coords of					 * character's upper-left pixel. */    int *widthPtr;			/* Gets filled in with width of					 * character, in pixels. */    int *heightPtr;			/* Gets filled in with height of					 * character, in pixels. */{    TkTextSegment *ewPtr = (TkTextSegment *) chunkPtr->clientData;    Tk_Window tkwin;    tkwin = ewPtr->body.ew.tkwin;    if (tkwin != NULL) {	*widthPtr = Tk_ReqWidth(tkwin);	*heightPtr = Tk_ReqHeight(tkwin);    } else {	*widthPtr = 0;	*heightPtr = 0;    }    *xPtr = chunkPtr->x + ewPtr->body.ew.padX;    if (ewPtr->body.ew.stretch) {	if (ewPtr->body.ew.align == ALIGN_BASELINE) {	    *heightPtr = baseline - ewPtr->body.ew.padY;	} else {	    *heightPtr = lineHeight - 2*ewPtr->body.ew.padY;	}    }    switch (ewPtr->body.ew.align) {	case ALIGN_BOTTOM:	    *yPtr = y + (lineHeight - *heightPtr - ewPtr->body.ew.padY);	    break;	case ALIGN_CENTER:	    *yPtr = y + (lineHeight - *heightPtr)/2;	    break;	case ALIGN_TOP:	    *yPtr = y + ewPtr->body.ew.padY;	    break;	case ALIGN_BASELINE:	    *yPtr = y + (baseline - *heightPtr);	    break;    }}/* *-------------------------------------------------------------- * * EmbWinDelayedUnmap -- * *	This procedure is an idle handler that does the actual *	work of unmapping an embedded window.  See the comment *	in EmbWinUndisplayProc for details. * * Results: *	None. * * Side effects: *	The window gets unmapped, unless its chunk reference count *	has become non-zero again. * *-------------------------------------------------------------- */static voidEmbWinDelayedUnmap(clientData)    ClientData clientData;		/* Token for the window to					 * be unmapped. */{    TkTextSegment *ewPtr = (TkTextSegment *) clientData;    if (!ewPtr->body.ew.displayed && (ewPtr->body.ew.tkwin != NULL)) {	if (ewPtr->body.ew.textPtr->tkwin != Tk_Parent(ewPtr->body.ew.tkwin)) {	    Tk_UnmaintainGeometry(ewPtr->body.ew.tkwin,		    ewPtr->body.ew.textPtr->tkwin);	} else {	    Tk_UnmapWindow(ewPtr->body.ew.tkwin);	}    }}/* *-------------------------------------------------------------- * * TkTextWindowIndex -- * *	Given the name of an embedded window within a text widget, *	returns an index corresponding to the window's position *	in the text. * * Results: *	The return value is 1 if there is an embedded window by *	the given name in the text widget, 0 otherwise.  If the *	window exists, *indexPtr is filled in with its index. * * Side effects: *	None. * *-------------------------------------------------------------- */intTkTextWindowIndex(textPtr, name, indexPtr)    TkText *textPtr;		/* Text widget containing window. */    char *name;			/* Name of window. */    TkTextIndex *indexPtr;	/* Index information gets stored here. */{    Tcl_HashEntry *hPtr;    TkTextSegment *ewPtr;    hPtr = Tcl_FindHashEntry(&textPtr->windowTable, name);    if (hPtr == NULL) {	return 0;    }    ewPtr = (TkTextSegment *) Tcl_GetHashValue(hPtr);    indexPtr->tree = textPtr->tree;    indexPtr->linePtr = ewPtr->body.ew.linePtr;    indexPtr->charIndex = TkTextSegToOffset(ewPtr, indexPtr->linePtr);    return 1;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美日韩在线| 国产一区在线观看麻豆| 国模娜娜一区二区三区| 97精品电影院| 久久亚洲一级片| 亚洲高清久久久| 91丨九色丨蝌蚪丨老版| 日韩精品一区二区三区视频在线观看| 国产乱码精品一品二品| 欧美伊人精品成人久久综合97| 久久久久亚洲综合| 视频一区中文字幕国产| 91亚洲精品久久久蜜桃网站| 日韩久久免费av| 日产欧产美韩系列久久99| jlzzjlzz国产精品久久| 精品国产在天天线2019| 日韩影视精彩在线| 欧美午夜精品久久久久久孕妇| 国产精品入口麻豆九色| 狠狠色狠狠色综合| 91精品国产入口| 日日欢夜夜爽一区| 欧美日韩免费一区二区三区视频| 国产精品进线69影院| 国产精品一线二线三线| 日韩一级视频免费观看在线| 亚洲综合av网| 欧美在线三级电影| 亚洲成人激情自拍| 欧美日韩在线精品一区二区三区激情| 一区视频在线播放| 91网页版在线| 亚洲一卡二卡三卡四卡无卡久久| 成人免费高清视频在线观看| 久久精品一区二区三区四区| 国产精品资源网| 久久久久久久综合| av一区二区久久| 一区二区三区中文在线观看| 91麻豆国产精品久久| 亚洲一二三四在线| 欧美二区三区的天堂| 日本免费新一区视频| 欧美精品一区二| 国产一区二区三区精品欧美日韩一区二区三区 | 国内久久精品视频| 久久精品欧美一区二区三区麻豆| 国产主播一区二区| 国产精品嫩草影院av蜜臀| 色综合久久88色综合天天6| 香蕉影视欧美成人| 久久午夜色播影院免费高清| 成人动漫在线一区| 午夜精品久久久久久久99水蜜桃 | 制服丝袜亚洲网站| 美女高潮久久久| 国产午夜精品久久久久久久| 99精品国产热久久91蜜凸| 视频在线观看国产精品| 中文一区二区在线观看| 91黄色免费看| 免费一级欧美片在线观看| 国产女人水真多18毛片18精品视频| hitomi一区二区三区精品| 亚洲自拍另类综合| 久久久亚洲午夜电影| 在线观看国产一区二区| 韩日av一区二区| 亚洲精品乱码久久久久久| 精品国产污污免费网站入口| fc2成人免费人成在线观看播放 | 一区二区三区在线观看动漫| 日韩三级精品电影久久久| 成人久久久精品乱码一区二区三区 | 国产精品久久久久7777按摩| 欧美一区二区高清| 91视视频在线观看入口直接观看www | 不卡区在线中文字幕| 亚洲va中文字幕| 亚洲国产经典视频| 日韩视频免费观看高清在线视频| 成人v精品蜜桃久久一区| 日本伊人色综合网| 日韩伦理免费电影| 国产欧美日韩在线| 日韩一二在线观看| 在线观看一区二区视频| 成人av综合一区| 国产精品1024| 日韩黄色一级片| 亚洲va韩国va欧美va精品| 18欧美乱大交hd1984| 欧美国产一区二区在线观看| 日韩一区二区高清| 欧美精品在线观看一区二区| 色吧成人激情小说| 91麻豆国产福利精品| 成人91在线观看| 成人国产精品免费网站| 国产大陆亚洲精品国产| 国产乱人伦偷精品视频免下载 | 一本久道久久综合中文字幕 | 成人av在线电影| 成人白浆超碰人人人人| 成人午夜看片网址| 不卡av免费在线观看| 成人一级黄色片| 国产高清不卡一区二区| 亚洲女与黑人做爰| 国产欧美一区二区精品婷婷| 日韩精品中文字幕一区二区三区| 欧洲一区二区三区在线| 欧美色视频在线| 99精品视频中文字幕| 国产精品99久久久久久宅男| 麻豆精品国产传媒mv男同| 午夜av一区二区三区| 亚洲成a人片在线不卡一二三区| 亚洲视频免费观看| 国产精品国产三级国产aⅴ中文| 欧美α欧美αv大片| 91麻豆精品久久久久蜜臀| 日韩欧美中文字幕制服| 69成人精品免费视频| 欧美人妇做爰xxxⅹ性高电影| 色综合天天性综合| 亚洲欧洲日产国产综合网| 精品欧美久久久| 欧美激情一区二区三区蜜桃视频| 精品久久五月天| 精品三级在线看| 久久综合久久综合久久综合| 精品国产成人在线影院 | 国产精品每日更新在线播放网址| 久久这里只精品最新地址| 精品国产区一区| 国产片一区二区| 亚洲国产精品传媒在线观看| 亚洲欧美精品午睡沙发| 亚洲一区二区三区四区在线观看 | 久草精品在线观看| 国产福利电影一区二区三区| 国产成人av影院| 91九色最新地址| 久久综合色播五月| 中文在线免费一区三区高中清不卡| 国产精品色噜噜| 最好看的中文字幕久久| 亚洲午夜三级在线| 成人综合激情网| 91蜜桃网址入口| 欧美美女一区二区在线观看| 日韩精品最新网址| 国产亚洲成av人在线观看导航| 一区二区三区产品免费精品久久75| 亚洲国产另类精品专区| 日本午夜精品视频在线观看 | 日韩视频一区二区三区在线播放| 26uuu欧美日本| 久久精品一区二区三区不卡牛牛 | 亚洲成人免费av| 国产中文字幕一区| 欧美性大战久久久久久久蜜臀 | 成人做爰69片免费看网站| 在线视频国内一区二区| 91精品一区二区三区在线观看| 91精品国产乱| 亚洲日韩欧美一区二区在线| 日韩高清中文字幕一区| 国产成人夜色高潮福利影视| 色婷婷av一区二区三区软件| 欧美中文字幕一二三区视频| 精品电影一区二区| 亚洲欧美另类久久久精品| 蜜桃传媒麻豆第一区在线观看| 成人福利视频在线看| 欧美男女性生活在线直播观看| 精品久久99ma| 国产精品的网站| 久久国产三级精品| 欧美精品高清视频| 国产精品久久久久久久裸模| 日本不卡视频在线观看| 99re这里只有精品6| 国产精品欧美极品| 久久9热精品视频| 欧美午夜一区二区三区免费大片| 久久精品亚洲麻豆av一区二区 | 中文字幕一区二区三| 日本不卡视频一二三区| 欧美视频一二三区| 亚洲国产成人午夜在线一区| 日韩精品电影在线| 色丁香久综合在线久综合在线观看| 久久亚洲二区三区| 国产在线一区二区| 日韩欧美综合在线| 亚洲二区在线视频| 91福利在线观看|