Lines Matching defs:width
148 const int stride = image->width * 4;
149 const int length = image->width * image->height * 4;
175 for (int i = 0; i < image->width * image->height; i++, source += 4)
187 image->width,
201 int width, int height)
211 wp_viewport_set_destination(edge->viewport, width, height);
215 wl_region_add(region, 0, 0, width, height);
237 window->wl.width, GLFW_CAPTION_HEIGHT);
244 window->wl.width, -GLFW_CAPTION_HEIGHT,
249 window->wl.width + GLFW_BORDER_SIZE * 2, GLFW_BORDER_SIZE);
309 wl_region_add(region, 0, 0, window->wl.width, window->wl.height);
318 window->wl.fbWidth = (window->wl.width * window->wl.scalingNumerator) / 120;
323 window->wl.fbWidth = window->wl.width * window->wl.bufferScale;
341 static GLFWbool resizeWindow(_GLFWwindow* window, int width, int height)
343 width = _glfw_max(width, 1);
346 if (width == window->wl.width && height == window->wl.height)
349 window->wl.width = width;
357 window->wl.width,
364 window->wl.width,
374 window->wl.width, -GLFW_CAPTION_HEIGHT);
383 window->wl.width + GLFW_BORDER_SIZE * 2,
560 int32_t width,
589 if (width && height)
593 window->wl.pending.width = _glfw_max(0, width - GLFW_BORDER_SIZE * 2);
599 window->wl.pending.width = width;
605 window->wl.pending.width = window->wl.width;
649 int width = window->wl.pending.width;
656 const float aspectRatio = (float) width / (float) height;
659 height = width / targetRatio;
661 width = height * targetRatio;
665 if (resizeWindow(window, width, height))
667 _glfwInputWindowSize(window, window->wl.width, window->wl.height);
695 int width, height;
713 if (!libdecor_configuration_get_content_size(config, frame, &width, &height))
715 width = window->wl.width;
723 const float aspectRatio = (float) width / (float) height;
726 height = width / targetRatio;
728 width = height * targetRatio;
732 struct libdecor_state* frameState = libdecor_state_new(width, height);
762 if (resizeWindow(window, width, height))
764 _glfwInputWindowSize(window, window->wl.width, window->wl.height);
818 libdecor_state_new(window->wl.width, window->wl.height);
907 minwidth = maxwidth = window->wl.width;
1037 window->wl.width = wndconfig->width;
1039 window->wl.fbWidth = wndconfig->width;
1061 window->wl.width,
1107 cursorWayland->width = image->width;
1120 cursorWayland->width, cursorWayland->height);
1482 else if (xpos > window->wl.width + GLFW_BORDER_SIZE)
1522 wl_surface_damage(surface, 0, 0, image->width, image->height);
1583 else if (window->wl.cursorPosX > window->wl.width + GLFW_BORDER_SIZE)
2259 void _glfwGetWindowSizeWayland(_GLFWwindow* window, int* width, int* height)
2261 if (width)
2262 *width = window->wl.width;
2267 void _glfwSetWindowSizeWayland(_GLFWwindow* window, int width, int height)
2275 if (!resizeWindow(window, width, height))
2281 libdecor_state_new(window->wl.width, window->wl.height);
2317 int width = window->wl.width, height = window->wl.height;
2321 const float aspectRatio = (float) width / (float) height;
2326 width *= targetRatio;
2329 if (resizeWindow(window, width, height))
2334 libdecor_state_new(window->wl.width, window->wl.height);
2339 _glfwInputWindowSize(window, window->wl.width, window->wl.height);
2346 void _glfwGetFramebufferSizeWayland(_GLFWwindow* window, int* width, int* height)
2348 if (width)
2349 *width = window->wl.fbWidth;
2508 int width, int height,
2514 _glfwSetWindowSizeWayland(window, width, height);
2527 _glfwSetWindowSizeWayland(window, width, height);
2757 cursor->wl.width = image->width;