X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83df96d63a52ebb08b9e32549dc255354b4a18d0..f7f78039d2e18114efdec0abe46dc4ed2d4529a8:/include/wx/motif/dcclient.h diff --git a/include/wx/motif/dcclient.h b/include/wx/motif/dcclient.h index ec974c1bb3..a92cc083cb 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; @@ -145,7 +157,7 @@ protected: int m_currentPenJoin ; int m_currentPenCap ; int m_currentPenDashCount ; - wxMOTIFDash* m_currentPenDash ; + wxX11Dash* m_currentPenDash ; wxBitmap m_currentStipple ; int m_currentStyle ; int m_currentFill ;