ladybird/Userland/Libraries/LibGUI/RegularEditingEngine.h
scwfri fa94978a7e LibGUI: Add EngineType to EditingEngine classes
This will allow users of EditingEngine classes to determine current type
of EditingEngine (currently either vim or regular).
2021-12-09 21:31:06 +01:00

26 lines
480 B
C++

/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGUI/EditingEngine.h>
namespace GUI {
class RegularEditingEngine final : public EditingEngine {
public:
virtual CursorWidth cursor_width() const override;
virtual bool on_key(const KeyEvent& event) override;
private:
void sort_selected_lines();
virtual EngineType engine_type() const override { return EngineType::Regular; }
};
}