summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvArc.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge trunkjan.nijtmans2019-05-101-12/+83
|\
| * Merge 8.6jan.nijtmans2019-05-091-1/+1
| |\
| * \ Fix [6ce6e74635]: TIP415 implementation does not handle small arcs correctlyfvogel2019-04-141-11/+25
| |\ \
| | * | Improved patch to deal with zero length arcs specified by their height.fvogel2019-04-071-21/+17
| | | |
| | * | Remove the error that was triggering with very small arcs while still ↵fvogel2019-04-031-15/+18
| | | | | | | | | | | | | | | | preventing NaN and Inf values to leak in the computations. Add a new test canvas-21.1 checking results for zero-length arcs.
| | * | Fix formattingfvogel2019-01-211-8/+8
| | | |
| | * | Rebase to latest trunkjan.nijtmans2019-01-201-4/+19
| | |\ \
| | | * | Fix proposal by Simon Geard for [6ce6e74635]: TIP415 implementation does not ↵fvogel2018-12-311-4/+19
| | | | | | | | | | | | | | | | | | | | handle small arcs correctly
| | | * | Merge 8.6jan.nijtmans2018-12-201-60/+58
| | | |\ \
| * | | | | Make some items have a virtual centre point to move. Much saner behaviour.dkf2019-03-151-10/+14
| | | | | |
| * | | | | Document. Factor out basic rotation function.dkf2019-03-131-17/+15
| | | | | |
| * | | | | Starting to build out the per-item implementationsdkf2019-03-111-1/+56
| |/ / / /
* | | | | Merge 8.7jan.nijtmans2019-01-131-20/+20
|\ \ \ \ \ | |/ / / /
| * | | | Merge 8.6jan.nijtmans2019-01-101-20/+20
| |\ \ \ \ | | |/ / / | |/| | / | | | |/ | | |/|
| | | |
| | | \
| | *-. \ Merge 8.6 and all changes from original [bug-9e31fd9449] branchjan.nijtmans2019-01-081-17/+19
| | |\ \ \
| | | | * \ Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2019-01-081-20/+20
| | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-54/+54
| | |\ \ \ \ \ | | | | |_|/ / | | | |/| | / | | | |_|_|/ | | |/| | | -> 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-58/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -> 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-60/+58
| | |\ \ \ \ | | | |/ / / | | | | / / | | | |/ / | | |/| | *** 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-60/+58
| | | |/ | | | | | | | | | | | | | | | | Windows.h have conflicting symbols. Also fix a few newer (harmless) gcc warnings.
* | | | Merge trunkjan.nijtmans2018-11-251-11/+125
|\ \ \ \ | |/ / /
| * | | Clean up prior to TIP votedkf2018-10-201-38/+65
| | | |
| * | | merge trunkjan.nijtmans2016-03-041-7/+7
| |\ \ \ | | |/ /
| * | | Changes from Simon Geard to act as baseline implementation of TIP #415.dkf2012-11-081-10/+97
| |/ /
* | | Experiment: let's see if we can deprecate Tk_Offset() in favor of offsetof()jan.nijtmans2018-10-061-25/+25
|/ /
* | Working towards making the error codes more consistent.dkf2012-07-301-2/+2
| |
* | Postscript generation now uses Tcl_Objs more extensively; still nasty in places.dkf2012-07-271-38/+82
| |
* | consistent error formatting, added error codesdkf2012-07-211-2/+7
| |
* | Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-19/+11
| | | | | | ** 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-3/+2
| | | | | | | | | using useful casts internally.
* | | Revise Tcl_Panic() calls ending with a newline removing the newline, because ↵nijtmans2010-11-191-2/+2
| | | | | | | | | | | | Tcl_Panic() outputs a final newline already
* | | Eliminate many unnecessary (ClientData) type casts.nijtmans2010-06-151-7/+7
| | |
* | | CONSTify everything related to Tk_ConfigSpecnijtmans2010-02-171-2/+2
| | |
* | | fix more gcc warnings: missing initializernijtmans2010-01-181-18/+18
| | | | | | | | | | | | | | | Apply patch [#2932808]: Canvas items not updating on widget state change
* | | - eliminate some unnessary type castsnijtmans2009-02-031-2/+2
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | use M_PI when available, remove redundant definitions of PIdas2008-11-221-5/+1
| | |
* | | [Bug 2190619] Warnings due to Tk_SmoothMethodnijtmans2008-10-301-21/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | name constness change. Although dkf's solution (simply adding a type cast) is correct as well, changing the return value (as das suggested) has the advantage that all Tk_OptionPrintProc implementations don't need a type cast any more in its code. This makes all those functions robust against the -Wwrite-strings warning option. Further on, the customPtr field of Tk_ConfigSpec can be a constant, without any danger of source incompatibility.
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-24/+24
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | header cleanupdgp2007-09-071-2/+1
| |
* | ANSIfydkf2005-11-041-109/+98
| |
* | Format for style and remove non-ANSI declarationsdkf2005-10-171-421/+386
| |
* | * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-2/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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:
* * generic/tkCanvArc.c (CreateArc): Rework canvas create itemhobbs2003-02-091-19/+12
| | | | | | | | | | | | | | * generic/tkCanvBmap.c (CreateBitmap): type coords handling to be * generic/tkCanvImg.c (CreateImage): consistent across types * generic/tkCanvPoly.c (CreatePolygon): and not pass empty coords * generic/tkCanvLine.c (CreateLine): to item creation procs. * generic/tkCanvText.c (CreateText): * generic/tkCanvWind.c (CreateWinItem): * generic/tkCanvas.c (CanvasWidgetCmd CANV_CREATE): * generic/tkRectOval.c (CreateRectOval): * tests/canvRect.test: * tests/canvText.test: * tests/canvas.test:
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-3/+3
| | | | | | | | | | | | | | | | | | | | | 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)
* * generic/tkCanvArc.c:hobbs2001-07-031-40/+38
| | | | | | | | | | | * generic/tkCanvBmap.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkRectOval.c: corrected argument handling in Create<Item> functions that could lead to ABRs or FMRs and corrected names of argc/argv to objc/objv.