summaryrefslogtreecommitdiffstats
path: root/generic/tk3d.c
Commit message (Collapse)AuthorAgeFilesLines
* Small round of sentinel/spacing improvementsjan.nijtmans2024-05-241-1/+1
|
* Use Tcl_NewBooleanObj() where appropriatejan.nijtmans2024-05-011-2/+2
|\
* \ Merge 8.6jan.nijtmans2023-12-221-17/+24
|\ \ | |/
| * Fix [9c57421be8]: -relief strange behavior in scrollbar. Enhance ↵jan.nijtmans2023-12-221-17/+24
| | | | | | | | Tcl_GetRelief() such that "interp" and "reliefPtr" are allowed to be NULL
* | More -1 -> TCL_INDEX_NONE. More TCL_UNUSED(jan.nijtmans2023-03-121-11/+10
| |
* | Make Tk compile/run either with or without TIP #644: Make Tcl_ObjType extensiblejan.nijtmans2022-11-151-6/+8
| |
* | TIP #628 for Tk: Shared 8.7/9.0 build environmentjan.nijtmans2022-06-251-2/+4
| |
* | Fix Tk_Get3BorderColors() signature. Add documentation, created by René ↵jan.nijtmans2022-02-011-8/+8
| | | | | | | | Zaumseil
* | TIP #606 implementation. TODO: documentationjan.nijtmans2021-12-211-0/+34
| |
* | Merge 8.6. Make anchorStrings, reliefString and justifyString MODULE_SCOPEjan.nijtmans2021-12-141-2/+2
|\ \ | |/
| * More elimination of the "register" keyword, and more explicit typecastsjan.nijtmans2020-10-061-15/+14
| |
* | (c) -> ©jan.nijtmans2020-12-091-2/+2
| |
* | Much more WIP: Appears to be working on UNIX, and for a bit part on Windows too.jan.nijtmans2019-12-201-4/+4
| |
* | WIP: Add support for C++jan.nijtmans2019-12-121-11/+10
| |
* | Fix [f3c5467f07]: various spelling fixes (from Christopher Chavez)fvogel2019-07-021-1/+1
|\ \ | |/
| * Fix [f3c5467f07]: various spelling fixes (from Christopher Chavez)fvogel2019-07-021-1/+1
| |
* | Merge 8.6jan.nijtmans2019-01-101-9/+9
|\ \ | |/
| *-. Merge 8.6 and all changes from original [bug-9e31fd9449] branchjan.nijtmans2019-01-081-9/+9
| |\ \
| | | * Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2019-01-081-9/+9
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | Windows.h have conflicting symbols. *** POTENTIAL INCOMPATIBILITY *** on Windows only: gcc/clang/MSVC will generate new warnings in extensions when the "None" symbol is used incorrectly. Those warnings are all fixed in the core, that's what most of this commit is doing.
| | | | * Bring back more original "None" usages, and fix other warnings which ↵jan.nijtmans2019-01-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | gradually slipped in. Wherever possible, pragma's are used in MSVC to silence useless compiler warnings.
| * | | | As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-12/+12
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
| | * | | As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
| * | | | Fix [9e31fd9449]: X11/X.h and Windows.h have conflicting symbols jan.nijtmans2018-12-201-15/+15
| |\ \ \ \ | | |/ / / | | | / / | | |/ / | |/| | *** POTENTIAL INCOMPATIBILITY *** for Win32 only: On X11 and Mac, "None" can still be used as before
| | * | Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2018-12-201-15/+15
| | |/ | | | | | | | | | | | | Windows.h have conflicting symbols. Also fix a few newer (harmless) gcc warnings.
* | | A few WideINT-related range improvements and comment fixesjan.nijtmans2018-12-121-2/+2
|/ /
* | more places convertedjan.nijtmans2013-01-241-1/+1
| |
* | Merge core-8-5-branchjan.nijtmans2013-01-241-2/+2
|\ \ | |/ | | Various Tcl_GetIndexFromObj -> Tcl_GetIndexFromObjStruct changes.
* | Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-5/+4
| | | | | | ** WORK IN PROGRESS **
* | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-2/+2
| | | | | | | | | using useful casts internally.
* | | [Tcl Bug 2857044]: Corrections following audit of Tcl_ObjType freeingdkf2009-11-211-28/+33
| | | | | | | | | | | | | | | | | | | | | practises; the typePtr field is now cleared when an object ceases to be of the type. Also remove some anachronistic techniques (pointless casts, mixed assignments and tests, etc.)
* | | CONSTify TkDebugBorder, TkStringToKeysym, TkDebugBitmapnijtmans2009-01-091-2/+2
| | | | | | | | | | | | | | | TkDebugColor, TkDebugCursor, TkDebugFont All those mods TIP #27 complient, no incompatibility risks.
* | | Make error message from Tk_GetRelief thenijtmans2008-12-121-2/+2
| | | | | | | | | | | | | | | same as for Tk_GetReliefFromObj Adapt test cases for changed error message
* | | Making code neater...dkf2008-11-261-22/+23
| | |
* | | Lots of small changes to make code more pretty and C89-like.dkf2008-11-081-2/+2
| | |
* | | Add "const" to many internalnijtmans2008-10-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-5/+5
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | header cleanupdgp2007-09-071-1/+2
| |
* | various "const" additions in implementationnijtmans2007-01-031-2/+2
| |
* | Lots of ANSIfying of function decls.dkf2005-11-171-5/+5
| | | | | | | | Also a few spots where code has been cleaned up more completely.
* | ANSIfydkf2005-11-041-334/+318
| |
* | * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-4/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: to 'Tcl_Panic' (the function). The #define * generic/tkBitmap.c: of panic in tcl.h clearly states it is * generic/tkCanvArc.c: deprecated in the comments. * generic/tkCanvBmap.c: [Tcl Patch 865264] * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkColor.c: * generic/tkConfig.c: * generic/tkCursor.c: * generic/tkError.c: * generic/tkEvent.c: * generic/tkFocus.c: * generic/tkFont.c: * generic/tkFrame.c: * generic/tkGC.c: * generic/tkGrid.c: * generic/tkImgBmap.c: * generic/tkImgPhoto.c: * generic/tkImgUtil.c: * generic/tkMenu.c: * generic/tkObj.c: * generic/tkPack.c: * generic/tkPlace.c: * generic/tkRectOval.c: * generic/tkSelect.c: * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkTextMark.c: * generic/tkTextWind.c: * generic/tkVisual.c: * generic/tkWindow.c: * mac/tkMacAppInit.c: * mac/tkMacAppearanceStubs.c: * mac/tkMacButton.c: * mac/tkMacDraw.c: * mac/tkMacEmbed.c: * mac/tkMacFont.c: * mac/tkMacInit.c: * mac/tkMacMenus.c: * mac/tkMacPort.h: * mac/tkMacSubwindows.c: * mac/tkMacWm.c: * mac/tkMacXStubs.c: * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXPort.h: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * unix/tkUnix3d.c: * unix/tkUnixColor.c: * unix/tkUnixEmbed.c: * unix/tkUnixEvent.c: * unix/tkUnixFocus.c: * unix/tkUnixFont.c: * unix/tkUnixSelect.c: * unix/tkUnixSend.c: * unix/tkUnixWm.c: * win/tkWin3d.c: * win/tkWinButton.c: * win/tkWinColor.c: * win/tkWinDialog.c: * win/tkWinDraw.c: * win/tkWinEmbed.c: * win/tkWinFont.c: * win/tkWinPixmap.c: * win/tkWinPointer.c: * win/tkWinScrlbr.c: * win/tkWinWm.c: * win/tkWinX.c:
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-5/+5
| | | | | | | | | | | | | | | | | | | | | updating Tk to use Tcl 8.4's fully CONST-ified interface, and fully CONSTifying Tk at the same time. This patch includes purging Tk of its last direct access to interp->result. [Bug 589853] The substantial changes include copying event sequence strings into Tcl_DStrings in tkBind.c, and copying [text] indices into Tcl_DStrings because parsing them involved overwriting them. If this causes performance trouble, that can be resolved by further converting them to Tcl_Obj's. The #defines USE_NON_CONST and USE_COMPAT_CONST have the same effect for Tk as they do for Tcl. (They actually change tcl.h)
* * Updates to handle change in type of tablePtrdgp2002-01-171-2/+2
| | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705]
* Register Tk's object types with Tcl (Tcl Bug 450545)dkf2001-08-151-5/+5
|
* * doc/SetOptions.3: Added information about TK_OPTION_NULL_OK withericm2000-05-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TK_OPTION_RELIEF. * win/tkWinButton.c: Removed bits about TK_RELIEF_LINK. * tests/button.test: Added tests for -overrelief; removed tests for -relief link. * mac/tkMacButton.c: Removed bits about TK_RELIEF_LINK. * generic/tkOldConfig.c: Removed bits about TK_RELIEF_LINK. * generic/tkConfig.c: Removed bits about TK_RELIEF_LINK; added support for TK_OPTION_NULL_OK for TK_OPTION_RELIEF. * library/button.tcl: Added binding support for -overrelief. * generic/tk3d.c (Tk_GetRelief): Added branch for TK_RELIEF_NULL. * generic/tkButton.c: Added -overrelief option; removed Enter/Leave EventProc masks and handlers. * generic/tk.h: Added TK_RELIEF_NULL definition, removed TK_RELIEF_LINK. * mac/tkMacDefault.h (DEF_BUTTON_OVER_RELIEF): * win/tkWinDefault.h (DEF_BUTTON_OVER_RELIEF): * unix/tkUnixDefault.h (DEF_BUTTON_OVER_RELIEF): Added default value for the -overrelief option.
* * unix/tkUnixButton.c (TkpDisplayButton, TkpComputeButtonGeometry):ericm2000-05-131-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * mac/tkMacButton.c (TkpDisplayButton, TkpComputeButtonGeometry): * win/tkWinButton.c (TkpDisplayButton, TkpComputeButtonGeometry): Added code for drawing compound buttons. * tests/button.test: Added configuration tests for -repeatdelay, -repeatinterval, -compound. * library/button.tcl: Added support for -repeatedelay, -repeatinterval options. * generic/tkOldConfig.c: Changed handling of link relief so that proper error messages are used. * generic/tkButton.h: Added -compound, -repeatdelay, -repeatinterval options. * generic/tkButton.c: Added event watchers for enter/leave events, for link relief support. * generic/tk3d.c: Changed handling of link relief so that proper error messages are used. * generic/tk.h: Changed values of TK_OPTION_LINK_OK/TK_CONFIG_LINK_OK for link relief support.