DocDeclStr(
void, TranslateId(int id, wxCoord dx, wxCoord dy),
"Translate the operations of id by dx,dy.", "");
+ DocDeclStr(
+ void, SetIdGreyedOut(int id, bool greyout=true),
+ "Set whether an object is drawn greyed out or not.", "");
+ DocDeclStr(
+ bool, GetIdGreyedOut(int id),
+ "Get whether an object is drawn greyed out or not.", "");
+ KeepGIL(FindObjects);
+ DocDeclStr(
+ PyObject*, FindObjects(wxCoord x, wxCoord y,
+ wxCoord radius=1, const wxColor& bg=*wxWHITE),
+ "Returns a list of all the id's that draw a pixel with color
+not equal to bg within radius of (x,y).
+Returns an empty list if nothing is found. The list is in
+reverse drawing order so list[0] is the top id.","");
+ KeepGIL(FindObjectsByBBox);
+ DocDeclStr(
+ PyObject*, FindObjectsByBBox(wxCoord x, wxCoord y),
+ "Returns a list of all the id's whose bounding boxes include (x,y).
+Returns an empty list if nothing is found. The list is in
+reverse drawing order so list[0] is the top id.","");
DocDeclStr(
void, DrawIdToDC(int id, wxDC *dc),
"Draw recorded operations of id to dc.", "");
font, and the current text foreground and background colours.
The coordinates refer to the top-left corner of the rectangle bounding
-the string. See `GetTextExtent` for how to get the dimensions of a
-text string, which can be used to position the text more precisely.
+the string. See `wx.DC.GetTextExtent` for how to get the dimensions of
+a text string, which can be used to position the text more precisely,
+(you will need to use a real DC with GetTextExtent as wx.PseudoDC does
+not implement it.)
**NOTE**: under wxGTK the current logical function is used by this
function but it is ignored by wxMSW. Thus, you should avoid using
DocDeclStr(
virtual void , SetLogicalFunction(int function),
"Sets the current logical function for the device context. This
-determines how a source pixel (from a pen or brush colour, or source
-device context if using `Blit`) combines with a destination pixel in
-the current device context.
+determines how a source pixel (from a pen or brush colour, combines
+with a destination pixel in the current device context.
The possible values and their meaning in terms of source and
destination pixel values are as follows:
bands or moving outlines, since drawing twice reverts to the original
colour.
", "");
+
+
+ %property(IdBounds, GetIdBounds, SetIdBounds, doc="See `GetIdBounds` and `SetIdBounds`");
+ %property(Len, GetLen, doc="See `GetLen`");
};