📄 ownselect.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: @(#) OwnSelect.3 1.16 96/08/27 13:21:31'\" .so man.macros.TH Tk_OwnSelection 3 4.0 Tk "Tk Library Procedures".BS.SH NAMETk_OwnSelection \- make a window the owner of the primary selection.SH SYNOPSIS.nf\fB#include <tk.h>\fR.sp\fBTk_OwnSelection\fR(\fItkwin, selection, proc, clientData\fR).SH ARGUMENTS.AS Tk_LostSelProc clientData.AP Tk_Window tkwin inWindow that is to become new selection owner..AP Atom selection inThe name of the selection to be owned, such as XA_PRIMARY..AP Tk_LostSelProc *proc inProcedure to invoke when \fItkwin\fR loses selection ownership later..AP ClientData clientData inArbitrary one-word value to pass to \fIproc\fR..BE.SH DESCRIPTION.PP\fBTk_OwnSelection\fR arranges for \fItkwin\fR to become thenew owner of the selection specified by the atom\fIselection\fR. After this call completes, future requestsfor the selection will be directed to handlers created for\fItkwin\fR using \fBTk_CreateSelHandler\fR. When \fItkwin\fReventually loses the selection ownership, \fIproc\fR will beinvoked so that the window can clean itself up (e.g. byunhighlighting the selection). \fIProc\fR should have arguments andresult that match the type \fBTk_LostSelProc\fR:.CStypedef void Tk_LostSelProc(ClientData \fIclientData\fR);.CEThe \fIclientData\fR parameter to \fIproc\fR is a copy of the\fIclientData\fR argument given to \fBTk_OwnSelection\fR, and isusually a pointer to a data structure containing application-specificinformation about \fItkwin\fR..SH KEYWORDSown, selection owner
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -