Lines Matching refs:brush
825 void wxMacCGContext::SetBrush( const wxBrush &brush )
827 m_brush = brush ;
831 bool fill = brush.GetStyle() != wxTRANSPARENT ;
846 if ( brush.GetStyle() == wxSOLID )
848 CGContextSetRGBFillColor( m_cgContext , brush.GetColour().Red() / 255.0 , brush.GetColour().Green() / 255.0 ,
849 brush.GetColour().Blue() / 255.0 , brush.GetColour().Alpha() / 255.0 ) ;
851 else if ( brush.IsHatch() )
855 wxMacCFRefHolder<CGPatternRef> pattern( *( new HatchPattern( brush.GetStyle() , CGContextGetCTM( m_cgContext ) ) ) );
857 CGFloat colorArray[4] = { brush.GetColour().Red() / 255.0 , brush.GetColour().Green() / 255.0 ,
858 brush.GetColour().Blue() / 255.0 , brush.GetColour().Alpha() / 255.0 } ;
864 // now brush is a bitmap
866 wxBitmap* bmp = brush.GetStipple() ;
1532 void wxDC::SetBrush( const wxBrush &brush )
1534 if (m_brush == brush)
1537 m_brush = brush;
1540 if ( brush.GetStyle() == wxSOLID || brush.GetStyle() == wxTRANSPARENT )
1557 void wxDC::SetBackground( const wxBrush &brush )
1559 if (m_backgroundBrush == brush)
1562 m_backgroundBrush = brush;
2268 wxFAIL_MSG( wxT("unknown brush kind") ) ;