mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
Initial commit: ReclassX structured binary editor
This commit is contained in:
29
third_party/qscintilla/scintilla/src/IntegerRectangle.h
vendored
Normal file
29
third_party/qscintilla/scintilla/src/IntegerRectangle.h
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user