diff options
-rw-r--r-- | cocoa/Scintilla/Scintilla.xcodeproj/project.pbxproj | 4 | ||||
-rwxr-xr-x | gtk/PlatGTK.cxx | 15 | ||||
-rw-r--r-- | gtk/deps.mak | 1 | ||||
-rw-r--r-- | scripts/HeaderOrder.txt | 1 | ||||
-rw-r--r-- | src/IntegerRectangle.h | 29 |
5 files changed, 14 insertions, 36 deletions
diff --git a/cocoa/Scintilla/Scintilla.xcodeproj/project.pbxproj b/cocoa/Scintilla/Scintilla.xcodeproj/project.pbxproj index d0e7a0c8d..dbcacbb4d 100644 --- a/cocoa/Scintilla/Scintilla.xcodeproj/project.pbxproj +++ b/cocoa/Scintilla/Scintilla.xcodeproj/project.pbxproj @@ -39,7 +39,6 @@ 2829374024E2D58800C84BA2 /* XPM.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 282936FD24E2D58400C84BA2 /* XPM.cxx */; }; 2829374124E2D58800C84BA2 /* CharClassify.h in Headers */ = {isa = PBXBuildFile; fileRef = 282936FE24E2D58400C84BA2 /* CharClassify.h */; }; 2829374224E2D58800C84BA2 /* Decoration.h in Headers */ = {isa = PBXBuildFile; fileRef = 282936FF24E2D58400C84BA2 /* Decoration.h */; }; - 2829374424E2D58800C84BA2 /* IntegerRectangle.h in Headers */ = {isa = PBXBuildFile; fileRef = 2829370124E2D58500C84BA2 /* IntegerRectangle.h */; }; 2829374524E2D58800C84BA2 /* PositionCache.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 2829370224E2D58500C84BA2 /* PositionCache.cxx */; }; 2829374724E2D58800C84BA2 /* Style.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 2829370424E2D58500C84BA2 /* Style.cxx */; }; 2829374824E2D58800C84BA2 /* RESearch.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 2829370524E2D58500C84BA2 /* RESearch.cxx */; }; @@ -131,7 +130,6 @@ 282936FD24E2D58400C84BA2 /* XPM.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = XPM.cxx; path = ../../src/XPM.cxx; sourceTree = "<group>"; }; 282936FE24E2D58400C84BA2 /* CharClassify.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CharClassify.h; path = ../../src/CharClassify.h; sourceTree = "<group>"; }; 282936FF24E2D58400C84BA2 /* Decoration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Decoration.h; path = ../../src/Decoration.h; sourceTree = "<group>"; }; - 2829370124E2D58500C84BA2 /* IntegerRectangle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = IntegerRectangle.h; path = ../../src/IntegerRectangle.h; sourceTree = "<group>"; }; 2829370224E2D58500C84BA2 /* PositionCache.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = PositionCache.cxx; path = ../../src/PositionCache.cxx; sourceTree = "<group>"; }; 2829370424E2D58500C84BA2 /* Style.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Style.cxx; path = ../../src/Style.cxx; sourceTree = "<group>"; }; 2829370524E2D58500C84BA2 /* RESearch.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RESearch.cxx; path = ../../src/RESearch.cxx; sourceTree = "<group>"; }; @@ -266,7 +264,6 @@ 286F8E6125F84F7400EC8D60 /* ILoader.h */, 282936F624E2D58400C84BA2 /* Indicator.cxx */, 282936FB24E2D58400C84BA2 /* Indicator.h */, - 2829370124E2D58500C84BA2 /* IntegerRectangle.h */, 2829370B24E2D58500C84BA2 /* KeyMap.cxx */, 282936EF24E2D58400C84BA2 /* KeyMap.h */, 282936F024E2D58400C84BA2 /* LineMarker.cxx */, @@ -394,7 +391,6 @@ 2829373524E2D58800C84BA2 /* Style.h in Headers */, 282936E424E2D55D00C84BA2 /* PlatCocoa.h in Headers */, 2829376C24E2D58800C84BA2 /* Selection.h in Headers */, - 2829374424E2D58800C84BA2 /* IntegerRectangle.h in Headers */, 2829376124E2D58800C84BA2 /* ScintillaBase.h in Headers */, 2829373824E2D58800C84BA2 /* RESearch.h in Headers */, 282936E524E2D55D00C84BA2 /* InfoBarCommunicator.h in Headers */, diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 97f406f4b..580e42414 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -30,7 +30,6 @@ #include "Scintilla.h" #include "ScintillaWidget.h" -#include "IntegerRectangle.h" #include "XPM.h" #include "UniConversion.h" @@ -60,6 +59,20 @@ constexpr float floatFromPangoUnits(int pu) noexcept { return static_cast<float>(pu) / PANGO_SCALE; } +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; } +}; + GdkWindow *WindowFromWidget(GtkWidget *w) noexcept { return gtk_widget_get_window(w); } diff --git a/gtk/deps.mak b/gtk/deps.mak index 09c47dcde..0ae4b48e5 100644 --- a/gtk/deps.mak +++ b/gtk/deps.mak @@ -7,7 +7,6 @@ PlatGTK.o: \ ../include/Scintilla.h \ ../include/Sci_Position.h \ ../include/ScintillaWidget.h \ - ../src/IntegerRectangle.h \ ../src/XPM.h \ ../src/UniConversion.h \ Converter.h diff --git a/scripts/HeaderOrder.txt b/scripts/HeaderOrder.txt index d6c1bfd54..a5cb6a2e8 100644 --- a/scripts/HeaderOrder.txt +++ b/scripts/HeaderOrder.txt @@ -106,7 +106,6 @@ // src #include "Position.h" -#include "IntegerRectangle.h" #include "UniqueString.h" #include "SplitVector.h" #include "Partitioning.h" 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 |