/* * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace GUI { class IncrementalSearchBanner final : public Widget { C_OBJECT(IncrementalSearchBanner); public: virtual ~IncrementalSearchBanner() override = default; void show(); void hide(); protected: explicit IncrementalSearchBanner(TextEditor&); virtual void paint_event(PaintEvent&) override; virtual Optional calculated_min_size() const override; private: void search(TextEditor::SearchDirection); NonnullRefPtr m_editor; RefPtr