LibGUI: Add ColorFilterer class

Widgets will inherit from ColorFilterer in order to create the
accessibility CommonMenu
This commit is contained in:
thankyouverycool 2022-09-26 08:48:50 -04:00 committed by Andreas Kling
commit 032ca748c6
Notes: sideshowbarker 2024-07-17 04:22:26 +09:00

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGfx/Filters/ColorBlindnessFilter.h>
namespace GUI {
class ColorFilterer {
public:
virtual ~ColorFilterer() = default;
virtual void set_color_filter(OwnPtr<Gfx::ColorBlindnessFilter>) = 0;
protected:
ColorFilterer() = default;
};
}