Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_temporary_straight_ruler_action.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Ayanami Kaine <personal@ayanamikaine.com>
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
6#ifndef KIS_TEMPORARY_STRAIGHT_RULER_ACTION_H
7#define KIS_TEMPORARY_STRAIGHT_RULER_ACTION_H
8
10
12{
13public:
18
21
22 int priority() const override;
23 void activate(int shortcut) override;
24 void deactivate(int shortcut) override;
25 bool trySwitchShortcut(int oldShortcut, int newShortcut) override;
26
27 void begin(int shortcut, QEvent *event) override;
28 void inputEvent(QEvent *event) override;
29 void end(QEvent *event) override;
30
31 bool supportsHiResInputEvents(int shortcut) const override;
32 bool isAvailable() const override;
33 KisInputActionGroup inputActionGroup(int shortcut) const override;
34
35private:
36 class Private;
37 Private * const d;
38};
39
40#endif // KIS_TEMPORARY_STRAIGHT_RULER_ACTION_H
KisInputActionGroup
Abstract base class for input actions.
bool supportsHiResInputEvents(int shortcut) const override
void begin(int shortcut, QEvent *event) override
KisInputActionGroup inputActionGroup(int shortcut) const override
bool trySwitchShortcut(int oldShortcut, int newShortcut) override