deprecated Get/SetOptimization
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -861,24 +861,33 @@ colour.
|
|||||||
", "");
|
", "");
|
||||||
|
|
||||||
|
|
||||||
DocDeclStr(
|
// DocDeclStr(
|
||||||
virtual void , SetOptimization(bool optimize),
|
// virtual void , SetOptimization(bool optimize),
|
||||||
"If *optimize* is true this function sets optimization mode on. This
|
// "If *optimize* is true this function sets optimization mode on. This
|
||||||
currently means that under X, the device context will not try to set a
|
// currently means that under X, the device context will not try to set a
|
||||||
pen or brush property if it is known to be set already. This approach
|
// pen or brush property if it is known to be set already. This approach
|
||||||
can fall down if non-wxWidgets code is using the same device context
|
// can fall down if non-wxWidgets code is using the same device context
|
||||||
or window, for example when the window is a panel on which the
|
// or window, for example when the window is a panel on which the
|
||||||
windowing system draws panel items. The wxWidgets device context
|
// windowing system draws panel items. The wxWidgets device context
|
||||||
'memory' will now be out of step with reality.
|
// 'memory' will now be out of step with reality.
|
||||||
|
|
||||||
Setting optimization off, drawing, then setting it back on again, is a
|
// Setting optimization off, drawing, then setting it back on again, is a
|
||||||
trick that must occasionally be employed.", "");
|
// trick that must occasionally be employed.", "");
|
||||||
|
|
||||||
DocDeclStr(
|
// DocDeclStr(
|
||||||
virtual bool , GetOptimization(),
|
// virtual bool , GetOptimization(),
|
||||||
"Returns true if device context optimization is on. See
|
// "Returns true if device context optimization is on. See
|
||||||
`SetOptimization` for details.", "");
|
// `SetOptimization` for details.", "");
|
||||||
|
|
||||||
|
%pythoncode {
|
||||||
|
def SetOptimization(self, optimize):
|
||||||
|
pass
|
||||||
|
def GetOptimization(self):
|
||||||
|
return False
|
||||||
|
|
||||||
|
SetOptimization = wx._deprecated(SetOptimization)
|
||||||
|
GetOptimization = wx._deprecated(GetOptimization)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// bounding box
|
// bounding box
|
||||||
|
Reference in New Issue
Block a user