Add simple a method to get the name of the ++ GraphicsRenderer class

This commit is contained in:
Robin Dunn
2019-08-01 15:26:50 -07:00
parent cb8263bcb4
commit aa6c0a6661

View File

@@ -220,6 +220,11 @@ def run():
# TODO: support this?
c.find('CreateContextFromNativeHDC').ignore()
c.addPyMethod('GetType', '(self)',
doc="Returns the name of the GraphicsRenderer class.",
body="return self.GetClassInfo().GetClassName()")
c.find('GetGDIPlusRenderer').ignore()
c.addCppMethod('wxGraphicsRenderer*', 'GetGDIPlusRenderer', '()', isStatic=True,