OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tk/] [doc/] [MoveToplev.3] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1990-1993 The Regents of the University of California.
3
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
4
'\"
5
'\" See the file "license.terms" for information on usage and redistribution
6
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
7
'\"
8
'\" RCS: @(#) $Id: MoveToplev.3,v 1.1.1.1 2002-01-16 10:25:48 markom Exp $
9
'\"
10
.so man.macros
11
.TH Tk_MoveToplevelWindow 3 "" Tk "Tk Library Procedures"
12
.BS
13
.SH NAME
14
Tk_MoveToplevelWindow \- Adjust the position of a top-level window
15
.SH SYNOPSIS
16
.nf
17
\fB#include \fR
18
.sp
19
\fBTk_MoveToplevelWindow(\fItkwin, x, y\fB)\fR
20
.SH ARGUMENTS
21
.AS Tk_Window tkwin
22
.AP Tk_Window tkwin in
23
Token for top-level window to move.
24
.AP int x in
25
New x-coordinate for the top-left pixel of \fItkwin\fR's border, or the
26
top-left pixel of the decorative border supplied for \fItkwin\fR by the
27
window manager, if there is one.
28
.AP int y in
29
New y-coordinate for the top-left pixel of \fItkwin\fR's border, or the
30
top-left pixel of the decorative border supplied for \fItkwin\fR by the
31
window manager, if there is one.
32
.BE
33
 
34
.SH DESCRIPTION
35
.PP
36
In general, a window should never set its own position;  this should be
37
done only by the geometry manger that is responsible for the window.
38
For top-level windows the window manager is effectively the geometry
39
manager;  Tk provides interface code between the application and the
40
window manager to convey the application's desires to the geometry
41
manager.  The desired size for a top-level window is conveyed using
42
the usual \fBTk_GeometryRequest\fR mechanism.  The procedure
43
\fBTk_MoveToplevelWindow\fR may be used by an application to request
44
a particular position for a top-level window;  this procedure is
45
similar in function to the \fBwm geometry\fR Tcl command except that
46
negative offsets cannot be specified.  It is invoked by widgets such as
47
menus that want to appear at a particular place on the screen.
48
.PP
49
When \fBTk_MoveToplevelWindow\fR is called it doesn't immediately
50
pass on the new desired location to the window manager;  it defers
51
this action until all other outstanding work has been completed,
52
using the \fBTk_DoWhenIdle\fR mechanism.
53
 
54
.SH KEYWORDS
55
position, top-level window, window manager

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.