From 26994fe6c1210e0989eaddd4b2bdc00422e1ac8a Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 11 Jun 2024 18:54:03 -0300 Subject: [PATCH] Add gfx::Clip(gfx::Size) ctor --- gfx/clip.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gfx/clip.h b/gfx/clip.h index a7563b81a..f4e1308c1 100644 --- a/gfx/clip.h +++ b/gfx/clip.h @@ -1,5 +1,5 @@ // LAF Gfx Library -// Copyright (C) 2020 Igara Studio S.A. +// Copyright (C) 2020-2024 Igara Studio S.A. // Copyright (C) 2001-2016 David Capello // // This file is released under the terms of the MIT license. @@ -34,6 +34,12 @@ namespace gfx { , size(w, h) { } + explicit ClipT(const SizeT& sz) + : dst(0, 0) + , src(0, 0) + , size(sz) { + } + ClipT(T dst_x, T dst_y, T src_x, T src_y, T w, T h) : dst(dst_x, dst_y) , src(src_x, src_y)