|
| | DarkStyle (const QColor &base_color=QColor()) |
| |
| | ~DarkStyle () override |
| |
| bool | isDpiScalingEnabled () const |
| |
| QColor | baseColor () const |
| |
| void | setBaseColor (const QColor &color) |
| |
| void | setScrollBarExtent (int n) |
| |
| void | setDpiScalingEnabled (bool f) |
| |
| QPalette | standardPalette () const override |
| |
| QSize | sizeFromContents (ContentsType type, const QStyleOption *option, const QSize &size, const QWidget *widget) const override |
| |
| void | polish (QPalette &palette) override |
| |
| int | pixelMetric (PixelMetric metric, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const override |
| |
| QRect | subControlRect (ComplexControl cc, const QStyleOptionComplex *option, SubControl sc, const QWidget *widget) const override |
| |
| int | styleHint (StyleHint stylehint, const QStyleOption *option=nullptr, const QWidget *widget=nullptr, QStyleHintReturn *returnData=nullptr) const override |
| |
| void | drawPrimitive (PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const override |
| |
| void | drawControl (ControlElement ce, const QStyleOption *option, QPainter *p, const QWidget *widget) const override |
| |
| void | drawComplexControl (ComplexControl cc, const QStyleOptionComplex *option, QPainter *p, const QWidget *widget) const override |
| |
| | MyCommonStyle ()=default |
| |
| | ~MyCommonStyle () override=default |
| |
| int | styleHint (QStyle::StyleHint hint, const QStyleOption *option, const QWidget *widget=nullptr, QStyleHintReturn *returnData=nullptr) const override |
| |
| int | pixelMetric (QStyle::PixelMetric metric, const QStyleOption *option, const QWidget *widget) const override |
| |
| QSize | sizeFromContents (QStyle::ContentsType type, const QStyleOption *option, const QSize &size, const QWidget *widget) const override |
| |
|
| QImage | colorizeImage (QImage image) |
| |
| QImage | loadColorizedImage (QString const &path, QString const &role=QString()) |
| |
| ButtonImages | generateButtonImages (QString const &path) |
| |
| QImage | generateHoverImage (const QImage &source) |
| |
| QPixmap | pixmapFromImage (QImage const &image, QSize size) const |
| |
| void | loadImages () |
| |
| QColor | selectionColor () const |
| |
| void | drawNinePatchImage (QPainter *p, QImage const &image, QRect const &r, int w, int h) const |
| |
| void | drawGutter (QPainter *p, QRect const &r) const |
| |
| void | drawSelectedItemFrame (QPainter *p, QRect rect, bool focus) const |
| |
| void | drawFocusFrame (QPainter *p, const QRect &rect, int margin) const |
| |
| void | drawButton (QPainter *p, QStyleOption const *option, bool mac_margin=true) const |
| |
| void | drawToolButton (QPainter *p, QStyleOption const *option) const |
| |
| void | drawMenuBarBG (QPainter *p, const QStyleOption *option, const QWidget *widget) const |
| |
| QColor | color (int level, int alpha=255) const |
| |
| void | drawItemViewText (QPainter *p, const QStyleOptionViewItem *option, const QRect &rect, bool abbreviation) const |
| |
| QRect | indicatorRect (const QStyleOption *option, const QWidget *widget, const QRect &rect) const |
| | チェックボックスとラジオボタンの凹みの矩形を求める More...
|
| |
| qreal | dpiScaled (qreal value, qreal dpi) const |
| |
| qreal | dpiScaled (qreal value, const QPaintDevice *device) const |
| |
| qreal | dpiScaled (qreal value, const QStyleOption *option) const |
| |
|
| static void | drawFrame (QPainter *pr, int x, int y, int w, int h, QColor color_topleft, QColor color_bottomright) |
| | 枠を描く。色は左上と右下で別々に指定できる。 More...
|
| |
| static void | drawShadedFrame (QPainter *p, QRect const &rect, QPalette const &palette, QStyle::State state) |
| | RaisedやSunkenのある枠を描く More...
|
| |
| static void | drawFrame (QPainter *pr, const QRect &r, const QColor &color_topleft, const QColor &color_bottomright) |
| | 枠を描く。色は左上と右下で別々に指定できる。 More...
|
| |
| bool | x_styleHint (int *value, QStyle::StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const |
| |
| bool | x_pixelMetric (int *value, QStyle::PixelMetric metric, const QStyleOption *option, const QWidget *widget) const |
| |
| void | x_sizeFromContents (QSize *value, QStyle::ContentsType type, const QStyleOption *option, const QSize &size, const QWidget *widget) const |
| |