TIP 580: Export Tk_GetDoublePixelsFromObj and 4 more

Login
Bounty program for improvements to Tcl and certain Tcl packages.
Author:         Jan Nijtmans <[email protected]>
State:          Draft
Type:           Project
Vote:           Pending
Created:        14-July-2020
Post-History:
Tcl-Version:    8.7
Tk-Version:     8.7
Keywords:       export
Tk-Branch:      tip-580

Abstract

Export 5 new functions from the public stub table.

Rationale

Those exports are meant to be used by the revised_text widget. The reason this new text replacement widget is currently integrated into Tk (in a separate branch) is because Tk doesn't export some symbols needed by revised_text. Those 5 additional exports allow revised_text - finally - to be compiled separate from Tk.

Specification

The following 5 functions are exported through the public stub table:

They are currently available from tkInt.h as (MODULE_SCOPE) functions: TkpAlwaysShowSelection, TkGetButtonMask, Tk_GetDoublePixelsFromObj, TkNewWindowObj, TkSendVirtualEvent.

Compatibility

This is 100% upwards compatible.

Implementation

See the tip-580 branch.

Copyright

This document has been placed in the public domain.