Lines Matching refs:brush
252 const wxBrush& brush = dc.GetBrush();
253 if ( brush.Ok() && brush.GetStyle() == wxSTIPPLE_MASK_OPAQUE )
579 HBRUSH brush = ::CreateSolidBrush(colour);
580 ::FillRect(GetHdc(), &rect, brush);
581 ::DeleteObject(brush);
1578 void wxDC::SetBrush(const wxBrush& brush)
1582 if ( brush == m_brush )
1585 if ( brush.Ok() )
1587 // we must make sure the brush is aligned with the logical coordinates
1589 wxBitmap *stipple = brush.GetStipple();
1597 NULL // [out] previous brush origin
1604 HGDIOBJ hbrush = ::SelectObject(GetHdc(), GetHbrushOf(brush));
1607 wxLogLastError(_T("SelectObject(brush)"));
1614 m_brush = brush;
1617 else // invalid brush, reset the current brush
1623 wxLogLastError(_T("SelectObject(old brush)"));
1633 void wxDC::SetBackground(const wxBrush& brush)
1637 m_backgroundBrush = brush;