blob: d65e053a5e0e6c76f131550447d90714f1e0c87e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2021, Mathias Jakobsen <mathias@jbcoding.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibCore/ElapsedTimer.h>
#include <LibGUI/Widget.h>
namespace MouseSettings {
class DoubleClickArrowWidget final : public GUI::Widget {
C_OBJECT(DoubleClickArrowWidget);
public:
virtual ~DoubleClickArrowWidget() override;
void set_double_click_speed(int);
private:
DoubleClickArrowWidget();
virtual void paint_event(GUI::PaintEvent&) override;
virtual void mousedown_event(GUI::MouseEvent&) override;
RefPtr<Gfx::Bitmap> m_arrow_bitmap;
int m_double_click_speed { 0 };
bool m_inverted { false };
Core::ElapsedTimer m_double_click_timer;
};
}
|