aboutsummaryrefslogtreecommitdiff
path: root/src/core/IKernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/IKernel.cpp')
-rw-r--r--src/core/IKernel.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/IKernel.cpp b/src/core/IKernel.cpp
index 6450a4fc2a..fb7e095091 100644
--- a/src/core/IKernel.cpp
+++ b/src/core/IKernel.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2017 ARM Limited.
+ * Copyright (c) 2016-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -30,8 +30,7 @@ const Window &IKernel::window() const
return _window;
}
-IKernel::IKernel()
- : _window()
+IKernel::IKernel() : _window()
{
// Create an empty window to make sure the children classes set the window values themselves
_window.set(Window::DimX, Window::Dimension(0, 0, 1));
@@ -48,6 +47,11 @@ BorderSize IKernel::border_size() const
return BorderSize(0);
}
+bool IKernel::is_window_configured() const
+{
+ return !((_window.x().start() == _window.x().end()) && (_window.x().end() == 0));
+}
+
void IKernel::configure(const Window &window)
{
_window = window;