Lines Matching defs: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.
74 // Update the square on a touch down.
130 // Paint the square black. Because we're lazy, we do this outside of the
132 pp::Rect square = SquareForPoint(last_x_, last_y_);
134 square.x() - paint_bounds.x(),
135 square.y() - paint_bounds.y(),
136 square.width(),
137 square.height(),
149 // Invalidate the region around the old square which needs to be repainted
157 // Also invalidate the region around the new square.