mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-04 05:50:15 +00:00
Add gfx::Rect::inflate(int) member function
This commit is contained in:
parent
f9a444aed7
commit
f5e9d3fe15
@ -1,5 +1,5 @@
|
|||||||
// Aseprite Gfx Library
|
// Aseprite Gfx Library
|
||||||
// Copyright (C) 2001-2013 David Capello
|
// Copyright (C) 2001-2013, 2015 David Capello
|
||||||
//
|
//
|
||||||
// This file is released under the terms of the MIT license.
|
// This file is released under the terms of the MIT license.
|
||||||
// Read LICENSE.txt for more information.
|
// Read LICENSE.txt for more information.
|
||||||
@ -141,6 +141,12 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RectT& inflate(const T& delta) {
|
||||||
|
w += delta;
|
||||||
|
h += delta;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
RectT& inflate(const T& dw, const T& dh) {
|
RectT& inflate(const T& dw, const T& dh) {
|
||||||
w += dw;
|
w += dw;
|
||||||
h += dh;
|
h += dh;
|
||||||
|
Loading…
Reference in New Issue
Block a user