Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
native_push_button.h
Go to the documentation of this file.
1
9
10#ifndef NATIVE_PUSH_BUTTON_H
11#define NATIVE_PUSH_BUTTON_H
12
13#include <QtGlobal>
14
15#ifdef Q_OS_MACOS
16
17class QPainter;
18class QRect;
19class QWidget;
20
30namespace NativePushButton {
31
33struct BezelState {
34 bool enabled = true;
35 bool pressed = false;
36 bool highlighted = false;
37};
38
51bool drawFlexibleBezel(QPainter *painter, const QRect &visibleRect,
52 const BezelState &state, const QWidget *widget);
53
62bool drawFocusRing(QPainter *painter, const QRect &visibleRect,
63 const QWidget *widget);
64
65} // namespace NativePushButton
66
67#endif /* Q_OS_MACOS */
68
69#endif /* NATIVE_PUSH_BUTTON_H */