X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83df96d63a52ebb08b9e32549dc255354b4a18d0..409e38cd653526e81b4d7fc63c0d68d4c1258809:/include/wx/motif/dcclient.h?ds=sidebyside diff --git a/include/wx/motif/dcclient.h b/include/wx/motif/dcclient.h index ec974c1bb3..b1db3e481f 100644 --- a/include/wx/motif/dcclient.h +++ b/include/wx/motif/dcclient.h @@ -90,7 +90,19 @@ public: void SetAutoSetting(bool flag) { m_autoSetting = flag; } protected: - virtual void DoFloodFill(wxCoord x, wxCoord y, const wxColour& col, + // note that this function will call colour.SetPixel, + // and will do one of curCol = colour, curCol = wxWHITE, curCol = wxBLACK + // roundToWhite has an effect for monochrome display only + // if roundToWhite == TRUE then the colour will be set to white unless + // it is RGB 0x000000;if roundToWhite == FALSE the colour wull be set to + // black unless it id RGB 0xffffff + int CalculatePixel(wxColour& colour, wxColour& curCol, + bool roundToWhite) const; + // sets the foreground pixel taking into account the + // currently selected logical operation + void SetForegroundPixelWithLogicalFunction(int pixel); + + virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col, int style = wxFLOOD_SURFACE); virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const;