📄 geomreq.3
字号:
'\"'\" Copyright (c) 1990-1994 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" '\" SCCS: @(#) GeomReq.3 1.11 96/03/26 18:08:21'\" .so man.macros.TH Tk_GeometryRequest 3 "" Tk "Tk Library Procedures".BS.SH NAMETk_GeometryRequest, Tk_SetInternalBorder \- specify desired geometry or internal border for a window.SH SYNOPSIS.nf\fB#include <tk.h>\fR.sp\fBTk_GeometryRequest\fR(\fItkwin, reqWidth, reqHeight\fR).sp\fBTk_SetInternalBorder\fR(\fItkwin, width\fR).SH ARGUMENTS.AS baseHeight clientData.AP Tk_Window tkwin inWindow for which geometry is being requested..AP int reqWidth inDesired width for \fItkwin\fR, in pixel units..AP int reqHeight inDesired height for \fItkwin\fR, in pixel units..AP int width inSpace to leave for internal border for \fItkwin\fR, in pixel units..BE.SH DESCRIPTION.PP\fBTk_GeometryRequest\fR is called by widget code to indicate itspreference for the dimensions of a particular window. The argumentsto \fBTk_GeometryRequest\fR are made available to the geometrymanager for the window, which then decides on the actual geometryfor the window. Although geometry managers generally try to satisfyrequests made to \fBTk_GeometryRequest\fR, there is no guarantee thatthis will always be possible. Widget code should not assume thata geometry request will be satisfied until it receives a\fBConfigureNotify\fR event indicating that the geometry change hasoccurred. Widget code should never call procedures like\fBTk_ResizeWindow\fR directly. Instead, it should invoke\fBTk_GeometryRequest\fR and leave the final geometry decisions tothe geometry manager..PPIf \fItkwin\fR is a top-level window, then the geometry informationwill be passed to the window manager using the standard ICCCM protocol..PP\fBTk_SetInternalBorder\fR is called by widget code to indicate thatthe widget has an internal border. This means that the widget drawsa decorative border inside the window instead of using the standardX borders, which are external to the window's area. For example,internal borders are used to draw 3-D effects. \fIWidth\fRspecifies the width of the border in pixels. Geometry managers willuse this information to avoid placing any children of \fItkwin\fRoverlapping the outermost \fIwidth\fR pixels of \fItkwin\fR's area..PPThe information specified in calls to \fBTk_GeometryRequest\fR and\fBTk_SetInternalBorder\fR can be retrieved using the macros\fBTk_ReqWidth\fR, \fBTk_ReqHeight\fR, and \fBTk_InternalBorderWidth\fR.See the \fBTk_WindowId\fR manual entry for details..SH KEYWORDSgeometry, request
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -