Lines Matching refs:area
77 // Returns the image whose area most closely matches the desired one
188 // Enforce the content area aspect ratio based on which edge is being dragged
190 static void applyAspectRatio(_GLFWwindow* window, int edge, RECT* area)
208 area->bottom = area->top + (frame.bottom - frame.top) +
209 (int) (((area->right - area->left) - (frame.right - frame.left)) / ratio);
213 area->top = area->bottom - (frame.bottom - frame.top) -
214 (int) (((area->right - area->left) - (frame.right - frame.left)) / ratio);
218 area->right = area->left + (frame.right - frame.left) +
219 (int) (((area->bottom - area->top) - (frame.bottom - frame.top)) * ratio);
244 // Sets the cursor clip rect to the window content area
321 // Returns whether the cursor is in the content area of the specified window
325 RECT area;
334 GetClientRect(window->win32.handle, &area);
335 ClientToScreen(window->win32.handle, (POINT*) &area.left);
336 ClientToScreen(window->win32.handle, (POINT*) &area.right);
338 return PtInRect(&area, pos);
547 // non-client scaling for windows that scale the client area
549 // area static when the non-client area is scaled
1178 // Adjust the window size to keep the content area size constant
1207 // need it to compensate for non-client area scaling
1432 // (if enabled) DPI scaling of the content area
1666 RECT area;
1667 GetClientRect(window->win32.handle, &area);
1670 *width = area.right;
1672 *height = area.bottom;
1711 RECT area;
1719 GetWindowRect(window->win32.handle, &area);
1721 area.left, area.top,
1722 area.right - area.left,
1723 area.bottom - area.top, TRUE);
1728 RECT area;
1733 GetWindowRect(window->win32.handle, &area);
1734 applyAspectRatio(window, WMSZ_BOTTOMRIGHT, &area);
1736 area.left, area.top,
1737 area.right - area.left,
1738 area.bottom - area.top, TRUE);