4#ifndef QGTK3INTERFACE_H
5#define QGTK3INTERFACE_H
18#include <QtCore/QString>
19#include <QtCore/QCache>
20#include <private/qflatmap_p.h>
21#include <QtCore/QObject>
23#include <QtGui/QPalette>
24#include <QtWidgets/QWidget>
25#include <QtCore/QLoggingCategory>
26#include <QtGui/QPixmap>
27#include <qpa/qplatformtheme.h>
151 GtkStateFlags
state = GTK_STATE_FLAG_NORMAL;
155 return std::tie(colorSource, state) <
161 return dbg <<
"QGtk3Interface::ColorKey(colorSource=" << colorSource <<
", GTK state=" <<
fromGtkState(state) <<
")";
171 return dbg <<
"QGtk3Interface::ColorValue(propertyName=" << propertyName <<
", genericSource=" << genericSource <<
")";
176 ColorMap gtkColorMap;
185 QImage qt_gtk_get_icon(
const char *iconName)
const;
186 QImage qt_convert_gdk_pixbuf(GdkPixbuf *
buf)
const;
198 static inline QColor fromGdkColor (
const GdkRGBA &
c)
206 inline static constexpr QFont::Style toFontStyle(PangoStyle style);
207 inline static constexpr int toFontWeight(PangoWeight
weight);
The QColor class provides colors based on RGB, HSV or CMYK values.
static QColor fromRgbF(float r, float g, float b, float a=1.0)
Static convenience function that returns a QColor constructed from the RGB color values,...
\inmodule QtCore \reentrant
Style
This enum describes the different styles of glyphs that are used to display text.
The QGtk3Interface class centralizes communication with the GTK3 library.
QIcon fileIcon(const QFileInfo &fileInfo) const
Returns a GTK styled file icon for.
Qt::ColorScheme colorSchemeByColors() const
Determine color scheme by colors.
QImage standardPixmap(QPlatformTheme::StandardPixmap standardPixmap) const
Returns a QImage corresponding to.
static const QLatin1String fromGtkState(GtkStateFlags state)
Returns.
const QString themeName() const
Returns the name of the current GTK theme.
@ gtk_separator_menu_item
static int toGtkState(const QString &state)
Converts a string into the GtkStateFlags enum.
The QIcon class provides scalable icons in different modes and states.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
constexpr bool operator<(const timespec &t1, const timespec &t2)
struct _GtkWidget GtkWidget
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLuint GLuint GLfloat weight
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLsizei GLchar * source