displayLayout and Rendering TUI library |
git clone git://git.dimitrijedobrota.com/display.git |
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING |
commit | 0f64dc076b5007e84050dfa35466a8b0b1c00886 |
parent | a245e038ed545bc3b38b50c507f747d294427bb4 |
author | Dimitrije Dobrota <mail@dimitrijedobrota.com> |
date | Thu, 6 Mar 2025 23:20:37 +0100 |
No need to restrict implementation so early * Wide contracts all the way
Diffstat:M | include/display/element.hpp | | | ++++---- |
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/display/element.hpp b/include/display/element.hpp
@@ -12,8 +12,8 @@ public:
{
}
Element(const Element&) = delete;
Element& operator=(const Element&) = delete;
Element(const Element&) = default;
Element& operator=(const Element&) = default;
Element(Element&&) = default;
Element& operator=(Element&&) = default;
@@ -21,9 +21,9 @@ public:
virtual ~Element() = default;
virtual void resize(plc_t aplc) { m_aplc = aplc; }
virtual void render() const = 0;
virtual void render() const {}
virtual void clear() const;
virtual void input(event& evnt) = 0;
virtual void input(event& /* unused */) {}
static std::ostream& set_cursor(xpos_t xapos, ypos_t yapos);
static std::ostream& set_cursor(pos_t apos);