56 #include <QtCore/qglobal.h> 57 #if !defined(QT_NO_STYLE_GTK) 59 #include <QtGui/QCleanlooksStyle> 60 #include <QtGui/QPainter> 61 #include <QtGui/QPalette> 62 #include <QtGui/QFont> 63 #include <private/qgtkstyle_p.h> 72 GtkStyle *
getStyle(GtkWidget *gtkWidget);
82 GtkStateType state, GtkShadowType shadow, GtkPositionType gap_side, gint x,
83 gint width, GtkStyle *style);
84 void paintBox(GtkWidget *gtkWidget,
const gchar* part,
85 const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style,
87 void paintHline(GtkWidget *gtkWidget,
const gchar* part,
const QRect &rect, GtkStateType state, GtkStyle *style,
89 void paintVline(GtkWidget *gtkWidget,
const gchar* part,
const QRect &rect, GtkStateType state, GtkStyle *style,
91 void paintExpander(GtkWidget *gtkWidget,
const gchar* part,
const QRect &rect, GtkStateType state,
93 void paintFocus(GtkWidget *gtkWidget,
const gchar* part,
const QRect &rect, GtkStateType state, GtkStyle *style,
95 void paintResizeGrip(GtkWidget *gtkWidget,
const gchar* part,
const QRect &rect, GtkStateType state, GtkShadowType shadow,
97 void paintArrow(GtkWidget *gtkWidget,
const gchar* part,
const QRect &arrowrect, GtkArrowType arrow_type, GtkStateType state, GtkShadowType shadow,
100 GtkStateType state, GtkShadowType shadow, GtkOrientation orientation, GtkStyle *style);
101 void paintSlider(GtkWidget *gtkWidget,
const gchar* part,
const QRect &rect, GtkStateType state, GtkShadowType shadow,
103 void paintShadow(GtkWidget *gtkWidget,
const gchar* part,
const QRect &rect, GtkStateType state, GtkShadowType shadow,
105 void paintFlatBox(GtkWidget *gtkWidget,
const gchar* part,
const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style,
const QString & =
QString());
106 void paintExtention(GtkWidget *gtkWidget,
const gchar *part,
const QRect &rect, GtkStateType state, GtkShadowType shadow,
107 GtkPositionType gap_pos, GtkStyle *style);
108 void paintOption(GtkWidget *gtkWidget,
const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style,
const QString &detail);
109 void paintCheckbox(GtkWidget *gtkWidget,
const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style,
const QString &detail);
111 static QPixmap getIcon(
const char* iconName, GtkIconSize size = GTK_ICON_SIZE_BUTTON);
129 #endif // QGTKPAINTER_H The QPainter class performs low-level painting on widgets and other paint devices.
static int pmKey(const QSize &size, QIcon::Mode mode, QIcon::State state)
void setClipRect(const QRect &rect)
#define QT_END_NAMESPACE
This macro expands to.
void paintOption(GtkWidget *gtkWidget, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style, const QString &detail)
void paintExpander(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkExpanderStyle expander_state, GtkStyle *style, const QString &pmKey=QString())
void paintFocus(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkStyle *style, const QString &pmKey=QString())
void paintShadow(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style, const QString &pmKey=QString())
void paintHandle(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkOrientation orientation, GtkStyle *style)
void paintFlatBox(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style, const QString &=QString())
void paintArrow(GtkWidget *gtkWidget, const gchar *part, const QRect &arrowrect, GtkArrowType arrow_type, GtkStateType state, GtkShadowType shadow, gboolean fill, GtkStyle *style, const QString &pmKey=QString())
static QPixmap getIcon(const char *iconName, GtkIconSize size=GTK_ICON_SIZE_BUTTON)
void paintResizeGrip(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GdkWindowEdge edge, GtkStyle *style, const QString &pmKey=QString())
The QString class provides a Unicode character string.
void setFlipHorizontal(bool value)
GtkStateType gtkState(const QStyleOption *option)
void paintSlider(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style, GtkOrientation orientation, const QString &pmKey=QString())
void paintBox(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style, const QString &pmKey=QString())
void paintExtention(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkPositionType gap_pos, GtkStyle *style)
void setUsePixmapCache(bool value)
void setFlipVertical(bool value)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QStyleOption class stores the parameters used by QStyle functions.
void paintCheckbox(GtkWidget *gtkWidget, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style, const QString &detail)
GtkStyle * getStyle(GtkWidget *gtkWidget)
void setAlphaSupport(bool value)
QPixmap renderTheme(uchar *bdata, uchar *wdata, const QRect &)
void paintHline(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkStyle *style, int x1, int x2, int y, const QString &pmKey=QString())
The QRect class defines a rectangle in the plane using integer precision.
QGtkPainter(QPainter *painter)
The QPixmap class is an off-screen image representation that can be used as a paint device...
void paintVline(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkStyle *style, int y1, int y2, int x, const QString &pmKey=QString())
void paintBoxGap(GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkPositionType gap_side, gint x, gint width, GtkStyle *style)