Robin Dunn
a843ed14f2
Merge pull request #2014 from arjones6/master
...
Add wxDC.DrawLinesFromBuffer to draw directly from numpy array memory using the Buffer protocol
2021-12-15 18:55:41 -08:00
arjones6
efbea6a275
dc.DrawLinesFromBuffer demo and test to intc data type. Updated documentation.
2021-12-15 11:07:18 -05:00
arjones6
cd94afce06
dc.DrawLinesFromBuffer - add element size check, rename
2021-10-05 14:09:55 -04:00
arjones6
88612ceba2
Added wxDC.DrawLinesBuffer
2021-10-01 16:42:08 -04:00
Jeremy Drake
31e6c8ed34
WXMSW: use HandleToLong/LongToHandle functions.
...
On Clang++, casting from a pointer to an integer of a smaller size is
considered an error. In cases where Windows HANDLEs are converted
to/from longs, use the Windows-provided conversion functions
HandleToLong and LongToHandle.
In a couple of cases, a pointer is being cast to long in a __hash__
function. These don't seem Windows-specific so it is not safe to assume
the Windows conversion functions are present. In those cases, fall back
to the (ugly) double-casting that the Windows functions contain.
2021-06-14 11:43:29 -07:00
Robin Dunn
78120174d6
Copy the full documentation for our custom dc.GetPixel wrapper
2020-07-02 15:29:49 -07:00
Robin Dunn
9f2cc54b48
Update copyright years
2020-03-10 11:41:39 -07:00
Robin Dunn
9289e33167
Fix GetClippingRect to deal with the new GetClippingBox return value
2019-09-13 20:29:32 -07:00
Robin Dunn
5d078557bf
Lots of updates to get caught up with wxWidgets master (3.1.3+)
2019-05-23 21:43:40 -07:00
Robin Dunn
229870f9c9
Add a __bool__ for every __nonzero__ that doesn't already have one
2018-10-12 23:58:16 -07:00
Robin Dunn
b77c88a280
Merge tag 'wxPython-4.0.2' into wxPy-4.0.x
...
(cherry picked from commit 4c56c39e52 )
2018-06-17 22:04:22 -07:00
Robin Dunn
8c4dffb091
Add virtual dtor for DC classes
2018-01-29 14:11:00 -08:00
Robin Dunn
d330ad1b40
Add context manager methods to wx.DC
2018-01-29 12:23:57 -08:00
Robin Dunn
b4e4f48f8d
Switch the other old GetHandle-like aliases to wxUIntPtr too
2017-05-11 14:29:36 -07:00
Robin Dunn
6a2a7aab9b
Return an integer from wx.DC.GetHandle instead of a voidptr.
...
In some cases due to unsigned values greater than signed max, converting the voidptr back to a handle overflows the receiving variable so it is not allowed.
2017-05-11 13:40:29 -07:00
Robin Dunn
4e38994944
Update copyright in etg
2017-02-13 16:14:55 -08:00
Robin Dunn
dc73188688
Set a bunch of mustHaveApp flags
2017-01-21 20:13:46 -08:00
Metallicow
ebc8d0d971
trim trailing space etg directory
2016-11-10 12:08:36 -06:00
Robin Dunn
d8ad925f60
Fix TextExtent methods in wx.DC
2016-07-15 16:28:33 -07:00
Robin Dunn
35fd2e16bf
Update copyright year
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-21 02:13:03 +00:00
Robin Dunn
10ec2fb1f1
just add some extra info in a comment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 22:32:20 +00:00
Robin Dunn
42df9e17fa
Port the add-on wx.DC.DrawXXXList methods from Classic
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-21 04:36:31 +00:00
Robin Dunn
744cab49a4
SIP's deprecated annotation didn't work the way I thought it would, at least for CppMethods.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-28 20:02:48 +00:00
Robin Dunn
d440b68fdf
Use dc->GetHandle
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-28 19:43:41 +00:00
Robin Dunn
9d79e123fa
Tweak the deprecation warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 05:02:43 +00:00
Robin Dunn
aebd862d14
Provide hints for deprecated items about what should be used instead.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-10 05:15:17 +00:00
Robin Dunn
5be76ec3e4
minor tweaks
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-17 03:58:12 +00:00
Robin Dunn
766baba0a6
M0ve the call to addAutoProperties into the doCommonTweaks function, but make it not generate the auto properties if there are already properties in the class or the class explicitly clears the alllowAutoProperties flag, turning it off.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-24 21:35:29 +00:00
Robin Dunn
5ffc5d8681
Ensure that custom C++ implementations that create a new instance for the return value are marked as Factories.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-21 07:59:10 +00:00
Robin Dunn
ee1f7f2548
Rename addGetterSetterProps --> addAutoProperties
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-13 19:04:40 +00:00
Robin Dunn
a87c196def
Instead of passing sipIsErr into custom functions made for CppMethodDefs and etc. just check PyErr_Occurred after the function returns and then set sipIsErr there.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-13 04:58:46 +00:00
Robin Dunn
39c6582eed
Add a more specific TODO for DrawPolyPolygon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-12 21:30:34 +00:00
Robin Dunn
007a98d927
Add my name to etg scripts that I've significantly modified.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-11 00:41:53 +00:00
Robin Dunn
019fd15013
Fix some typos
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 21:39:16 +00:00
Robin Dunn
510e4f610d
* Add wxDCClipper, wxDCBrushChanger, wxDCPenChanger, wxDCTextColourChanger and wxDCFontChanger
...
* Set output param annotations for lots of methods
* Add lots of other additions and customisations from Classic's wx.DC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 08:11:22 +00:00
Robin Dunn
4a563ed809
Move wxFontMetrics from font.py to dc.py since that is the interface file it is located in.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-18 04:42:10 +00:00
Robin Dunn
4219e02440
* move wxPen to etg/pen.py
...
* move wxBrush to etg/brush.py
* move wxBookCtrlBase and wxBookCtrlEvent to etg/bookctrl.py
* move wxBitmapButton to etg/bmpbuttn.py
* move wxArrayString MappedType and add wxArrayInt plus some unittests
* add checking for default values for pos and size parameters in fixWindowClass
* set out parameter flags for wxImageHistogram.FindFirstUnusedColour
* Restore layout constraints classes and related methods
* Create a MappedType for wxClientData
* update used of wxClientData in wx.CommandEvent
* Move wxControlWithItems, wxItemContainer and wxControlWithItems to etg/ctrlsub.py
* enable some Append, Insert and Set overloads in wxControlWithItems
* addGetterSetterProps: don't make setter-only properties
* addGetterSetterProps: ensure that the getter can be called with zero args
* addGetterSetterProps: ensure that the setter can be called with just 1 arg
* restore version checking code
* moved DC classes to other etg files to match interface file names.
* allow both overloads for wx.DC.GetTextExtent and GetMultiLineTextExtent by renaming 1
* add wx.DC.GetPartialTextExtents
* and some other stuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-03 01:42:42 +00:00
Kevin Ollivier
49fda7ada4
Add automatic class property generation, add support for defines, remove layout constraints from the build as they appear not to be generated with the docs for me, and add wrappers for a bunch of classes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-08-30 15:39:33 +00:00