MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / paint

Method paint

lib/matplotlib/backends/backend_qt.py:702–706  ·  view source on GitHub ↗

Paint the icon at the requested size and state.

(self, painter, rect, mode, state)

Source from the content-addressed store, hash-verified

700 return self.toolbar.palette().color(self.toolbar.backgroundRole()).value() < 128
701
702 def paint(self, painter, rect, mode, state):
703 """Paint the icon at the requested size and state."""
704 pixmap = self.pixmap(rect.size(), mode, state)
705 if not pixmap.isNull():
706 painter.drawPixmap(rect, pixmap)
707
708 def pixmap(self, size, mode, state):
709 """Generate a pixmap for the requested size, mode, and state."""

Callers 3

draw_imageMethod · 0.45
on_draw_eventMethod · 0.45
on_draw_eventMethod · 0.45

Calls 2

pixmapMethod · 0.95
sizeMethod · 0.80

Tested by

no test coverage detected