Qt 4.8
|
#include <qgtkpainter_p.h>
Public Functions | |
GtkStyle * | getStyle (GtkWidget *gtkWidget) |
GtkStateType | gtkState (const QStyleOption *option) |
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()) |
void | paintBox (GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style, 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) |
void | paintCheckbox (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 | paintExtention (GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkPositionType gap_pos, GtkStyle *style) |
void | paintFlatBox (GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style, const QString &=QString()) |
void | paintFocus (GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, 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 | paintHline (GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkStyle *style, int x1, int x2, int y, const QString &pmKey=QString()) |
void | paintOption (GtkWidget *gtkWidget, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style, const QString &detail) |
void | paintResizeGrip (GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GdkWindowEdge edge, 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 | paintSlider (GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkShadowType shadow, GtkStyle *style, GtkOrientation orientation, const QString &pmKey=QString()) |
void | paintVline (GtkWidget *gtkWidget, const gchar *part, const QRect &rect, GtkStateType state, GtkStyle *style, int y1, int y2, int x, const QString &pmKey=QString()) |
QGtkPainter (QPainter *painter) | |
void | setAlphaSupport (bool value) |
void | setClipRect (const QRect &rect) |
void | setFlipHorizontal (bool value) |
void | setFlipVertical (bool value) |
void | setUsePixmapCache (bool value) |
Static Public Functions | |
static QPixmap | getIcon (const char *iconName, GtkIconSize size=GTK_ICON_SIZE_BUTTON) |
Private Functions | |
QPixmap | renderTheme (uchar *bdata, uchar *wdata, const QRect &) |
Properties | |
bool | m_alpha |
QRect | m_cliprect |
bool | m_hflipped |
QPainter * | m_painter |
bool | m_usePixmapCache |
bool | m_vflipped |
GtkWidget * | m_window |
Definition at line 67 of file qgtkpainter_p.h.
QGtkPainter::QGtkPainter | ( | QPainter * | painter | ) |
Definition at line 145 of file qgtkpainter.cpp.
|
static |
Definition at line 191 of file qgtkpainter.cpp.
Referenced by setUsePixmapCache(), QGtkStyle::standardIconImplementation(), and QGtkStyle::standardPixmap().
GtkStyle * QGtkPainter::getStyle | ( | GtkWidget * | gtkWidget | ) |
Definition at line 182 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawComplexControl(), QGtkStyle::drawControl(), and QGtkStyle::drawPrimitive().
GtkStateType QGtkPainter::gtkState | ( | const QStyleOption * | option | ) |
Definition at line 169 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawComplexControl(), QGtkStyle::drawControl(), and QGtkStyle::drawPrimitive().
void QGtkPainter::paintArrow | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | arrowrect, | ||
GtkArrowType | arrow_type, | ||
GtkStateType | state, | ||
GtkShadowType | shadow, | ||
gboolean | fill, | ||
GtkStyle * | style, | ||
const QString & | pmKey = QString() |
||
) |
Definition at line 488 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawComplexControl(), QGtkStyle::drawControl(), QGtkStyle::drawPrimitive(), and setUsePixmapCache().
void QGtkPainter::paintBox | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkShadowType | shadow, | ||
GtkStyle * | style, | ||
const QString & | pmKey = QString() |
||
) |
Definition at line 291 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawComplexControl(), QGtkStyle::drawControl(), QGtkStyle::drawPrimitive(), and setUsePixmapCache().
void QGtkPainter::paintBoxGap | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkShadowType | shadow, | ||
GtkPositionType | gap_side, | ||
gint | x, | ||
gint | width, | ||
GtkStyle * | style | ||
) |
Definition at line 224 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawPrimitive(), and setUsePixmapCache().
void QGtkPainter::paintCheckbox | ( | GtkWidget * | gtkWidget, |
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkShadowType | shadow, | ||
GtkStyle * | style, | ||
const QString & | detail | ||
) |
Definition at line 682 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawControl(), QGtkStyle::drawPrimitive(), and setUsePixmapCache().
void QGtkPainter::paintExpander | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkExpanderStyle | expander_state, | ||
GtkStyle * | style, | ||
const QString & | pmKey = QString() |
||
) |
Definition at line 413 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawPrimitive(), and setUsePixmapCache().
void QGtkPainter::paintExtention | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkShadowType | shadow, | ||
GtkPositionType | gap_pos, | ||
GtkStyle * | style | ||
) |
Definition at line 625 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawControl(), and setUsePixmapCache().
void QGtkPainter::paintFlatBox | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkShadowType | shadow, | ||
GtkStyle * | style, | ||
const QString & | pmKey = QString() |
||
) |
Definition at line 600 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawComplexControl(), QGtkStyle::drawControl(), QGtkStyle::drawPrimitive(), and setUsePixmapCache().
void QGtkPainter::paintFocus | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkStyle * | style, | ||
const QString & | pmKey = QString() |
||
) |
Definition at line 440 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawComplexControl(), QGtkStyle::drawControl(), QGtkStyle::drawPrimitive(), and setUsePixmapCache().
void QGtkPainter::paintHandle | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkShadowType | shadow, | ||
GtkOrientation | orientation, | ||
GtkStyle * | style | ||
) |
Definition at line 522 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawControl(), QGtkStyle::drawPrimitive(), and setUsePixmapCache().
void QGtkPainter::paintHline | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkStyle * | style, | ||
int | x1, | ||
int | x2, | ||
int | y, | ||
const QString & | pmKey = QString() |
||
) |
Definition at line 353 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawControl(), QGtkStyle::drawPrimitive(), and setUsePixmapCache().
void QGtkPainter::paintOption | ( | GtkWidget * | gtkWidget, |
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkShadowType | shadow, | ||
GtkStyle * | style, | ||
const QString & | detail | ||
) |
Definition at line 651 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawControl(), QGtkStyle::drawPrimitive(), and setUsePixmapCache().
void QGtkPainter::paintResizeGrip | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkShadowType | shadow, | ||
GdkWindowEdge | edge, | ||
GtkStyle * | style, | ||
const QString & | pmKey = QString() |
||
) |
Definition at line 464 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawControl(), and setUsePixmapCache().
void QGtkPainter::paintShadow | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkShadowType | shadow, | ||
GtkStyle * | style, | ||
const QString & | pmKey = QString() |
||
) |
Definition at line 580 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawComplexControl(), QGtkStyle::drawPrimitive(), and setUsePixmapCache().
void QGtkPainter::paintSlider | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkShadowType | shadow, | ||
GtkStyle * | style, | ||
GtkOrientation | orientation, | ||
const QString & | pmKey = QString() |
||
) |
Definition at line 551 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawComplexControl(), and setUsePixmapCache().
void QGtkPainter::paintVline | ( | GtkWidget * | gtkWidget, |
const gchar * | part, | ||
const QRect & | rect, | ||
GtkStateType | state, | ||
GtkStyle * | style, | ||
int | y1, | ||
int | y2, | ||
int | x, | ||
const QString & | pmKey = QString() |
||
) |
Definition at line 382 of file qgtkpainter.cpp.
Referenced by QGtkStyle::drawComplexControl(), QGtkStyle::drawPrimitive(), and setUsePixmapCache().
Definition at line 79 of file qgtkpainter.cpp.
Referenced by setUsePixmapCache().
|
inline |
|
inline |
Definition at line 76 of file qgtkpainter_p.h.
Referenced by QGtkStyle::drawComplexControl(), QGtkStyle::drawControl(), and QGtkStyle::drawPrimitive().
|
inline |
|
inline |
Definition at line 78 of file qgtkpainter_p.h.
|
inline |
Definition at line 79 of file qgtkpainter_p.h.
Referenced by QGtkStyle::drawComplexControl(), and QGtkStyle::drawPrimitive().
|
private |
Definition at line 117 of file qgtkpainter_p.h.
Referenced by renderTheme(), and setAlphaSupport().
|
private |
Definition at line 121 of file qgtkpainter_p.h.
Referenced by paintArrow(), paintCheckbox(), paintOption(), and setClipRect().
|
private |
Definition at line 118 of file qgtkpainter_p.h.
Referenced by renderTheme(), and setFlipHorizontal().
|
private |
Definition at line 116 of file qgtkpainter_p.h.
Referenced by paintArrow(), paintBox(), paintBoxGap(), paintCheckbox(), paintExpander(), paintExtention(), paintFlatBox(), paintFocus(), paintHandle(), paintHline(), paintOption(), paintResizeGrip(), paintShadow(), paintSlider(), and paintVline().
|
private |
Definition at line 120 of file qgtkpainter_p.h.
Referenced by paintArrow(), paintBox(), paintBoxGap(), paintCheckbox(), paintExpander(), paintExtention(), paintFlatBox(), paintFocus(), paintHandle(), paintHline(), paintOption(), paintResizeGrip(), paintShadow(), paintSlider(), paintVline(), and setUsePixmapCache().
|
private |
Definition at line 119 of file qgtkpainter_p.h.
Referenced by renderTheme(), and setFlipVertical().
|
private |
Definition at line 115 of file qgtkpainter_p.h.