Lines Matching defs:square
15 // Number of pixels to each side of the center of the square that we draw.
18 // We identify our square by the center point. This computes the rect for the
19 // square given that point.
53 // Update the square on a mouse down.
62 // Update the square on a drag.
72 // Update the square on a touch down.
128 // Paint the square black. Because we're lazy, we do this outside of the
130 pp::Rect square = SquareForPoint(last_x_, last_y_);
132 square.x() - paint_bounds.x(),
133 square.y() - paint_bounds.y(),
134 square.width(),
135 square.height(),
147 // Invalidate the region around the old square which needs to be repainted
155 // Also invalidate the region around the new square.