Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
themed_shape_icon.h
Go to the documentation of this file.
1
9
10#pragma once
11
13
14#include <QColor>
15#include <QIcon>
16#include <QPalette>
17#include <QString>
18
44class ThemedShapeIcon : public QIcon
45{
46public:
53
61 struct PaletteColor {
62 int index;
63 };
64
72 ThemedShapeIcon(Shape shape, const QColor &fill, const QColor &outline,
73 const QString &glyph = QString());
74
79 ThemedShapeIcon(Shape shape, const QColor &fill,
80 ThemeManager::ThemeToken outline_token,
81 const QString &glyph = QString());
82
89 ThemeManager::ThemeToken outline_token);
90
96 ThemedShapeIcon(Shape, const QColor &, QPalette::ColorRole,
97 const QString & = QString()) = delete;
98};
Shape
Definition themed_shape_icon.h:47
@ Triangle
Definition themed_shape_icon.h:50
@ Cross
Definition themed_shape_icon.h:51
@ Circle
Definition themed_shape_icon.h:49
@ Square
Definition themed_shape_icon.h:48
ThemedShapeIcon(Shape shape, const QColor &fill, const QColor &outline, const QString &glyph=QString())
Definition themed_shape_icon.cpp:231
ThemedShapeIcon(Shape, const QColor &, QPalette::ColorRole, const QString &=QString())=delete
Entry index of the theme's graph palette, see ThemeManager::graphColor(). Resolved on every paint.
Definition themed_shape_icon.h:61
int index
Definition themed_shape_icon.h:62