aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Geometry.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2026-02-12 14:32:07 +1100
committerNeil <nyamatongwe@gmail.com>2026-02-12 14:32:07 +1100
commit61d42a0c3fb9e68adb5fdb9c7fa0a32b51026c4b (patch)
tree4f9100c1d9ab581faa33f0939b2255ed0d485f5a /src/Geometry.h
parentff84cdfd1e3b13d2e875e5078a7c7256df086ac6 (diff)
downloadscintilla-mirror-61d42a0c3fb9e68adb5fdb9c7fa0a32b51026c4b.tar.gz
Simplify drawing of eol-is-selected rectangle.
Diffstat (limited to 'src/Geometry.h')
-rw-r--r--src/Geometry.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Geometry.h b/src/Geometry.h
index d02a25bbb..a08c5c8f0 100644
--- a/src/Geometry.h
+++ b/src/Geometry.h
@@ -69,6 +69,9 @@ public:
constexpr Interval Offset(XYPOSITION offset) const noexcept {
return {left + offset, right + offset};
}
+ [[nodiscard]] static constexpr Interval FromLeftAndWidth(XYPOSITION left_, XYPOSITION width) {
+ return {left_, left_+width};
+ }
};
/**