# 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. # # # =head1 NAME Tk_GeometryRequest, Tk_SetInternalBorder - specify desired geometry or internal border for a window =for category C Programming =head1 SYNOPSIS B<#include Etk.hE> B(I) B(I) =head1 ARGUMENTS =over 4 =item Tk_Window tkwin (in) Window for which geometry is being requested. =item int reqWidth (in) Desired width for I, in pixel units. =item int reqHeight (in) Desired height for I, in pixel units. =item int width (in) Space to leave for internal border for I, in pixel units. =back =head1 DESCRIPTION B is called by widget code to indicate its preference for the dimensions of a particular window. The arguments to B are made available to the geometry manager for the window, which then decides on the actual geometry for the window. Although geometry managers generally try to satisfy requests made to B, there is no guarantee that this will always be possible. Widget code should not assume that a geometry request will be satisfied until it receives a B event indicating that the geometry change has occurred. Widget code should never call procedures like B directly. Instead, it should invoke B and leave the final geometry decisions to the geometry manager. If I is a top-level window, then the geometry information will be passed to the window manager using the standard ICCCM protocol. B is called by widget code to indicate that the widget has an internal border. This means that the widget draws a decorative border inside the window instead of using the standard X borders, which are external to the window's area. For example, internal borders are used to draw 3-D effects. I specifies the width of the border in pixels. Geometry managers will use this information to avoid placing any children of I overlapping the outermost I pixels of I's area. The information specified in calls to B and B can be retrieved using the macros B, B, and B. See the L documentation for details. =head1 KEYWORDS geometry, request