Lines Matching defs:rect

244 // Sets the cursor clip rect to the window content area
345 RECT rect;
350 GetClientRect(window->win32.handle, &rect);
354 AdjustWindowRectExForDpi(&rect, style, FALSE,
359 AdjustWindowRectEx(&rect, style, FALSE, getWindowExStyle(window));
361 ClientToScreen(window->win32.handle, (POINT*) &rect.left);
362 ClientToScreen(window->win32.handle, (POINT*) &rect.right);
365 rect.left, rect.top,
366 rect.right - rect.left, rect.bottom - rect.top,
486 RECT rect;
493 rect = mi.rcWork;
497 rect.right = _glfw_min(rect.right, rect.left + window->maxwidth);
498 rect.bottom = _glfw_min(rect.bottom, rect.top + window->maxheight);
512 AdjustWindowRectExForDpi(&rect, style, FALSE, exStyle, dpi);
513 OffsetRect(&rect, 0, GetSystemMetricsForDpi(SM_CYCAPTION, dpi));
517 AdjustWindowRectEx(&rect, style, FALSE, exStyle);
518 OffsetRect(&rect, 0, GetSystemMetrics(SM_CYCAPTION));
521 rect.bottom = _glfw_min(rect.bottom, mi.rcWork.bottom);
525 rect.left,
526 rect.top,
527 rect.right - rect.left,
528 rect.bottom - rect.top,
1361 RECT rect = { 0, 0, wndconfig->width, wndconfig->height };
1367 AdjustWindowRectEx(&rect, style, FALSE, exStyle);
1376 frameX = wndconfig->xpos + rect.left;
1377 frameY = wndconfig->ypos + rect.top;
1380 frameWidth = rect.right - rect.left;
1381 frameHeight = rect.bottom - rect.top;
1426 RECT rect = { 0, 0, wndconfig->width, wndconfig->height };
1431 // Adjust window rect to account for DPI scaling of the window frame and
1434 // Only update the restored window rect as the window may be maximized
1443 rect.right = (int) (rect.right * xscale);
1444 rect.bottom = (int) (rect.bottom * yscale);
1450 AdjustWindowRectExForDpi(&rect, style, FALSE, exStyle,
1454 AdjustWindowRectEx(&rect, style, FALSE, exStyle);
1457 OffsetRect(&rect,
1458 wp.rcNormalPosition.left - rect.left,
1459 wp.rcNormalPosition.top - rect.top);
1461 wp.rcNormalPosition = rect;
1465 // Adjust rect of maximized undecorated window, because by default Windows will
1646 RECT rect = { xpos, ypos, xpos, ypos };
1650 AdjustWindowRectExForDpi(&rect, getWindowStyle(window),
1656 AdjustWindowRectEx(&rect, getWindowStyle(window),
1660 SetWindowPos(window->win32.handle, NULL, rect.left, rect.top, 0, 0,
1687 RECT rect = { 0, 0, width, height };
1691 AdjustWindowRectExForDpi(&rect, getWindowStyle(window),
1697 AdjustWindowRectEx(&rect, getWindowStyle(window),
1702 0, 0, rect.right - rect.left, rect.bottom - rect.top,
1750 RECT rect;
1754 SetRect(&rect, 0, 0, width, height);
1758 AdjustWindowRectExForDpi(&rect, getWindowStyle(window),
1764 AdjustWindowRectEx(&rect, getWindowStyle(window),
1769 *left = -rect.left;
1771 *top = -rect.top;
1773 *right = rect.right - width;
1775 *bottom = rect.bottom - height;
1859 RECT rect = { xpos, ypos, xpos + width, ypos + height };
1863 AdjustWindowRectExForDpi(&rect, getWindowStyle(window),
1869 AdjustWindowRectEx(&rect, getWindowStyle(window),
1874 rect.left, rect.top,
1875 rect.right - rect.left, rect.bottom - rect.top,
1914 RECT rect = { xpos, ypos, xpos + width, ypos + height };
1934 AdjustWindowRectExForDpi(&rect, getWindowStyle(window),
1940 AdjustWindowRectEx(&rect, getWindowStyle(window),
1945 rect.left, rect.top,
1946 rect.right - rect.left, rect.bottom - rect.top,