diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-22 17:34:34 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-22 17:34:34 +1100 |
commit | 38eb38d945e08b878d8680025e1cc7239a59afe4 (patch) | |
tree | cb25701bc763919ebc31613ab5cd447328eb0b5b /src | |
parent | 0035079b6cf849dc5e2ae8face51fcfb99853efa (diff) | |
download | scintilla-mirror-38eb38d945e08b878d8680025e1cc7239a59afe4.tar.gz |
Remove IntegerRectangle.h as not widely useful
Add IntegerRectangle struct for local use in PlatGTK.cxx.
Diffstat (limited to 'src')
-rw-r--r-- | src/IntegerRectangle.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/IntegerRectangle.h b/src/IntegerRectangle.h deleted file mode 100644 index 4eaf39c43..000000000 --- a/src/IntegerRectangle.h +++ /dev/null @@ -1,29 +0,0 @@ -// Scintilla source code edit control -/** @file IntegerRectangle.h - ** A rectangle with integer coordinates. - **/ -// Copyright 2018 by Neil Hodgson <neilh@scintilla.org> -// The License.txt file describes the conditions under which this software may be distributed. - -#ifndef INTEGERRECTANGLE_H -#define INTEGERRECTANGLE_H - -namespace Scintilla { - -struct IntegerRectangle { - int left; - int top; - int right; - int bottom; - - explicit IntegerRectangle(PRectangle rc) noexcept : - left(static_cast<int>(rc.left)), top(static_cast<int>(rc.top)), - right(static_cast<int>(rc.right)), bottom(static_cast<int>(rc.bottom)) { - } - int Width() const noexcept { return right - left; } - int Height() const noexcept { return bottom - top; } -}; - -} - -#endif |