/dports/www/chromium-legacy/chromium-88.0.4324.182/chrome/updater/win/ui/ |
H A D | owner_draw_controls.cc | 107 int rgn_width = button_rect.Width() * 12 / 31; in DrawItem() local 109 WTL::CRgn rgn(GetButtonRgn(rgn_width, rgn_height)); in DrawItem() 112 rgn.OffsetRgn((button_rect.Width() - rgn_width) / 2, in DrawItem() 144 HRGN CloseButton::GetButtonRgn(int rgn_width, int rgn_height) { in GetButtonRgn() argument 147 int square_side = std::min(rgn_width, rgn_height) / 2 * 2; in GetButtonRgn() 163 rgn.OffsetRgn((rgn_width - square_side) / 2, (rgn_height - square_side) / 2); in GetButtonRgn() 173 HRGN MinimizeButton::GetButtonRgn(int rgn_width, int rgn_height) { in GetButtonRgn() argument 175 CRect minimize_button_rect(0, 0, rgn_width, 2); in GetButtonRgn() 187 HRGN MaximizeButton::GetButtonRgn(int rgn_width, int rgn_height) { in GetButtonRgn() argument 189 const RECT maximize_button_rects[] = {{0, 0, rgn_width, rgn_height}, in GetButtonRgn() [all …]
|
H A D | owner_draw_controls.h | 53 virtual HRGN GetButtonRgn(int rgn_width, int rgn_height) = 0; 97 HRGN GetButtonRgn(int rgn_width, int rgn_height) override; 107 HRGN GetButtonRgn(int rgn_width, int rgn_height) override; 117 HRGN GetButtonRgn(int rgn_width, int rgn_height) override;
|
/dports/multimedia/zart/gmic-2.8.1/gmic-qt/src/Host/Gimp/ |
H A D | host_gimp.cpp | 372 gint rgn_x, rgn_y, rgn_width, rgn_height; in gmic_qt_get_layers_extent() local 379 if (!gimp_drawable_mask_intersect(layer, &rgn_x, &rgn_y, &rgn_width, &rgn_height)) { in gmic_qt_get_layers_extent() 382 *width = std::max(*width, rgn_width); in gmic_qt_get_layers_extent() 479 gint rgn_x, rgn_y, rgn_width, rgn_height; in gmic_qt_get_cropped_images() local 494 if (!gimp_drawable_mask_intersect(inputLayers[l], &rgn_x, &rgn_y, &rgn_width, &rgn_height)) { in gmic_qt_get_cropped_images() 505 const int ix = static_cast<int>(entireImage ? rgn_x : (rgn_x + x * rgn_width)); in gmic_qt_get_cropped_images() 507 …const int iw = entireImage ? rgn_width : std::min(dw - ix, static_cast<int>(1 + std::ceil(rgn_widt… in gmic_qt_get_cropped_images() 511 inputLayerDimensions(l, 0) = rgn_width; in gmic_qt_get_cropped_images() 622 gint rgn_x, rgn_y, rgn_width, rgn_height; in gmic_qt_output_images() local 646 gimp_drawable_update(inputLayers[p], rgn_x, rgn_y, rgn_width, rgn_height); in gmic_qt_output_images() [all …]
|
/dports/graphics/gmic/gmic-3.0.0/gmic-qt/src/Host/Gimp/ |
H A D | host_gimp.cpp | 538 gint rgn_x, rgn_y, rgn_width, rgn_height; in getLayersExtent() local 548 *width = std::max(*width, rgn_width); in getLayersExtent() 618 gint rgn_x, rgn_y, rgn_width, rgn_height; in getCroppedImages() local 644 const int ix = static_cast<int>(entireImage ? rgn_x : (rgn_x + x * rgn_width)); in getCroppedImages() 646 …const int iw = entireImage ? rgn_width : std::min(dw - ix, static_cast<int>(1 + std::ceil(rgn_widt… in getCroppedImages() 650 inputLayerDimensions(l, 0) = rgn_width; in getCroppedImages() 761 gint rgn_x, rgn_y, rgn_width, rgn_height; in outputImages() local 776 gimp_pixel_rgn_init(®ion, drawable, rgn_x, rgn_y, rgn_width, rgn_height, true, true); in outputImages() 778 … gimp_pixel_rgn_set_rect(®ion, (guchar *)img.data(), rgn_x, rgn_y, rgn_width, rgn_height); in outputImages() 781 gimp_drawable_update(inputLayers[p], rgn_x, rgn_y, rgn_width, rgn_height); in outputImages() [all …]
|
/dports/graphics/gmic-qt/gmic-qt-v.2.9.8/src/Host/Gimp/ |
H A D | host_gimp.cpp | 538 gint rgn_x, rgn_y, rgn_width, rgn_height; in getLayersExtent() local 548 *width = std::max(*width, rgn_width); in getLayersExtent() 618 gint rgn_x, rgn_y, rgn_width, rgn_height; in getCroppedImages() local 644 const int ix = static_cast<int>(entireImage ? rgn_x : (rgn_x + x * rgn_width)); in getCroppedImages() 646 …const int iw = entireImage ? rgn_width : std::min(dw - ix, static_cast<int>(1 + std::ceil(rgn_widt… in getCroppedImages() 650 inputLayerDimensions(l, 0) = rgn_width; in getCroppedImages() 761 gint rgn_x, rgn_y, rgn_width, rgn_height; in outputImages() local 776 gimp_pixel_rgn_init(®ion, drawable, rgn_x, rgn_y, rgn_width, rgn_height, true, true); in outputImages() 778 … gimp_pixel_rgn_set_rect(®ion, (guchar *)img.data(), rgn_x, rgn_y, rgn_width, rgn_height); in outputImages() 781 gimp_drawable_update(inputLayers[p], rgn_x, rgn_y, rgn_width, rgn_height); in outputImages() [all …]
|