Lines Matching refs:square
17 // Number of pixels to each side of the center of the square that we draw.
20 // We identify our square by the center point. This computes the rect for the
21 // square given that point.
55 // Update the square on a mouse down.
64 // Update the square on a drag.
112 // Paint the square black. Because we're lazy, we do this outside of the
114 pp::Rect square = SquareForPoint(last_x_, last_y_);
116 square.x() - paint_bounds.x(),
117 square.y() - paint_bounds.y(),
118 square.width(),
119 square.height(),
131 // Invalidate the region around the old square which needs to be repainted
139 // Also invalidate the region around the new square.