A custom GUI style.
More...
#include <MarsStyle.h>
|
| MarsStyle (std::string stylePath_) |
|
void | polish (QPalette &palette) |
|
void | polish (QWidget *widget) |
|
void | unpolish (QWidget *widget) |
|
int | pixelMetric (PixelMetric metric, const QStyleOption *option, const QWidget *widget) const |
|
int | styleHint (StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const |
|
void | drawPrimitive (PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const |
|
void | drawControl (ControlElement control, const QStyleOption *option, QPainter *painter, const QWidget *widget) const |
|
|
static void | setTexture (QPalette &palette, QPalette::ColorRole role, const QPixmap &pixmap) |
|
static QPainterPath | roundRectPath (const QRect &rect) |
|
A custom GUI style.
Definition at line 36 of file MarsStyle.h.
◆ MarsStyle()
mars::gui::MarsStyle::MarsStyle |
( |
std::string |
stylePath_ | ) |
|
|
inline |
◆ drawControl()
void mars::gui::MarsStyle::drawControl |
( |
ControlElement |
control, |
|
|
const QStyleOption * |
option, |
|
|
QPainter * |
painter, |
|
|
const QWidget * |
widget |
|
) |
| const |
◆ drawPrimitive()
void mars::gui::MarsStyle::drawPrimitive |
( |
PrimitiveElement |
element, |
|
|
const QStyleOption * |
option, |
|
|
QPainter * |
painter, |
|
|
const QWidget * |
widget |
|
) |
| const |
◆ pixelMetric()
int mars::gui::MarsStyle::pixelMetric |
( |
PixelMetric |
metric, |
|
|
const QStyleOption * |
option, |
|
|
const QWidget * |
widget |
|
) |
| const |
◆ polish() [1/2]
void mars::gui::MarsStyle::polish |
( |
QPalette & |
palette | ) |
|
◆ polish() [2/2]
void mars::gui::MarsStyle::polish |
( |
QWidget * |
widget | ) |
|
◆ roundRectPath()
QPainterPath mars::gui::MarsStyle::roundRectPath |
( |
const QRect & |
rect | ) |
|
|
staticprivate |
◆ setTexture()
void mars::gui::MarsStyle::setTexture |
( |
QPalette & |
palette, |
|
|
QPalette::ColorRole |
role, |
|
|
const QPixmap & |
pixmap |
|
) |
| |
|
staticprivate |
◆ styleHint()
int mars::gui::MarsStyle::styleHint |
( |
StyleHint |
hint, |
|
|
const QStyleOption * |
option, |
|
|
const QWidget * |
widget, |
|
|
QStyleHintReturn * |
returnData |
|
) |
| const |
◆ unpolish()
void mars::gui::MarsStyle::unpolish |
( |
QWidget * |
widget | ) |
|
◆ stylePath
std::string mars::gui::MarsStyle::stylePath |
|
private |
The documentation for this class was generated from the following files:
- /Developer/bob-learning-dev/simulation/mars/gui/src/MarsStyle.h
- /Developer/bob-learning-dev/simulation/mars/gui/src/MarsStyle.cpp