Skip to content

Commit

Permalink
Add gfx::Clip(gfx::Size) ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Jun 11, 2024
1 parent c23da3b commit 26994fe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gfx/clip.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -34,6 +34,12 @@ namespace gfx {
, size(w, h) {
}

explicit ClipT(const SizeT<T>& 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)
Expand Down

0 comments on commit 26994fe

Please sign in to comment.