geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

IntegerRectangle.h
Go to the documentation of this file.
1// Scintilla source code edit control
2/** @file IntegerRectangle.h
3 ** A rectangle with integer coordinates.
4 **/
5// Copyright 2018 by Neil Hodgson <neilh@scintilla.org>
6// The License.txt file describes the conditions under which this software may be distributed.
7
8#ifndef INTEGERRECTANGLE_H
9#define INTEGERRECTANGLE_H
10
11namespace Scintilla {
12
14 int left;
15 int top;
16 int right;
17 int bottom;
18
19 explicit IntegerRectangle(PRectangle rc) noexcept :
20 left(static_cast<int>(rc.left)), top(static_cast<int>(rc.top)),
21 right(static_cast<int>(rc.right)), bottom(static_cast<int>(rc.bottom)) {
22 }
23 int Width() const noexcept { return right - left; }
24 int Height() const noexcept { return bottom - top; }
25};
26
27}
28
29#endif
A geometric rectangle class.
Definition: Platform.h:131
Styling buffer using one element for each run rather than using a filled buffer.
Definition: Converter.h:9
int Width() const noexcept
int Height() const noexcept
IntegerRectangle(PRectangle rc) noexcept