Home | History | Annotate | Download | only in win

Lines Matching refs:RECT

172 bool GetMonitorAndRects(const RECT& rect,
174 gfx::Rect* monitor_rect,
175 gfx::Rect* work_area) {
179 *monitor = MonitorFromRect(&rect, MONITOR_DEFAULTTONULL);
185 *monitor_rect = gfx::Rect(monitor_info.rcMonitor);
186 *work_area = gfx::Rect(monitor_info.rcWork);
225 RECT bounds;
372 void HWNDMessageHandler::Init(HWND parent, const gfx::Rect& bounds) {
453 gfx::Rect HWNDMessageHandler::GetWindowBoundsInScreen() const {
454 RECT r;
456 return gfx::Rect(r);
459 gfx::Rect HWNDMessageHandler::GetClientAreaBoundsInScreen() const {
460 RECT r;
464 return gfx::Rect(point.x, point.y, r.right - r.left, r.bottom - r.top);
467 gfx::Rect HWNDMessageHandler::GetRestoredBounds() const {
469 // rect, so return the saved bounds instead.
473 gfx::Rect bounds;
478 gfx::Rect HWNDMessageHandler::GetClientAreaBounds() const {
480 Rect();
487 gfx::Rect* bounds,
502 *bounds = gfx::Rect(wp.rcNormalPosition);
510 *bounds = gfx::Rect(wp.rcNormalPosition);
528 void HWNDMessageHandler::SetBounds(const gfx::Rect& bounds_in_pixels,
629 void HWNDMessageHandler::ShowMaximizedWithBounds(const gfx::Rect& bounds) {
811 void HWNDMessageHandler::SchedulePaintInRect(const gfx::Rect& rect) {
815 invalid_rect_.Union(rect);
831 RECT r = rect.ToRECT();
1016 RECT client;
1134 RECT window_rect;
1145 RECT work_rect = mi.rcWork;
1220 // We need to clip to the dirty rect ourselves.
1231 RECT wr;
1428 RECT client_rect, window_rect;
1577 void HWNDMessageHandler::OnMoving(UINT param, const RECT* new_bounds) {
1661 RECT* client_rect = mode ?
1663 reinterpret_cast<RECT*>(l_param);
1681 // the window rect given with WM_NCCALCSIZE (which is our previous
1686 // intersect any monitor, let us not adjust the client rect since our
1786 RECT window_rect;
1819 RECT window_rect;
1834 RECT dirty_region;
1842 RECT rgn_bounding_box;
1864 gfx::Rect old_paint_region = invalid_rect_;
1869 RECT old_paint_region_crect = old_paint_region.ToRECT();
1870 RECT tmp = dirty_region;
1874 SchedulePaintInRect(gfx::Rect(dirty_region));
1879 if (!delegate_->HandlePaintAccelerated(gfx::Rect(dirty_region))) {
1930 !delegate_->HandlePaintAccelerated(gfx::Rect(ps.rcPaint))) {
2223 RECT window_rect;
2225 gfx::Rect monitor_rect, work_area;
2234 // A rect for the monitor we're on changed. Normally Windows notifies
2241 // |window_pos| and recalculate it based on the new work rect.
2242 gfx::Rect new_window_rect;
2250 new_window_rect = gfx::Rect(window_rect);