The ThemeDark class implements a 2 colored theme base class.
More...
#include <twocoloredtheme.h>
|
virtual void | applyStyle (Widget *widget) |
| applyStyle is called for every new widget created by the WidgetFactory More...
|
|
virtual void | applyStyle (Shape *shape) |
| applyStyle is called for every new Shape created by the ShapeFactory More...
|
|
virtual void | allocateBG (cv::Mat &dst, const cv::Size &size, const cv::Scalar &color) |
| allocateBG creates the rect background for widgets More...
|
|
virtual void | flat (cv::Mat &bg, const cv::Scalar &color) |
| flat will cause bg to appear flat More...
|
|
virtual void | raised (cv::Mat &bg, const cv::Scalar &color) |
| raised will cause bg to appear raised More...
|
|
virtual void | sunken (cv::Mat &bg, const cv::Scalar &color) |
| sunken will cause bg to appear sunken More...
|
|
virtual void | selected (cv::Mat &bg, const cv::Scalar &color) |
| selected will cause bg to appear selecte More...
|
|
virtual void canvascv::TwoColoredTheme::allocateBG |
( |
cv::Mat & |
dst, |
|
|
const cv::Size & |
size, |
|
|
const cv::Scalar & |
color |
|
) |
| |
|
virtual |
- Parameters
-
dst | is a Mat dedicated to hold the background will be filled with 4 channels |
size | will be the size of dst when done |
color | is the requested color, with alpha, which the theme is allowed to ignore |
Implements canvascv::Theme.
virtual void canvascv::TwoColoredTheme::applyStyle |
( |
Widget * |
widget | ) |
|
|
virtual |
- Parameters
-
widget | will have setters invoked according to the theme |
Implements canvascv::Theme.
virtual void canvascv::TwoColoredTheme::applyStyle |
( |
Shape * |
shape | ) |
|
|
virtual |
- Parameters
-
shape | will have setters invoked according to the theme |
Implements canvascv::Theme.
virtual void canvascv::TwoColoredTheme::flat |
( |
cv::Mat & |
bg, |
|
|
const cv::Scalar & |
color |
|
) |
| |
|
virtual |
- Parameters
-
bg | was previously allocated by allocateBG() |
color | could be used for drawing, but the theme is allowed to ignore it |
Implements canvascv::Theme.
virtual void canvascv::TwoColoredTheme::raised |
( |
cv::Mat & |
bg, |
|
|
const cv::Scalar & |
color |
|
) |
| |
|
virtual |
- Parameters
-
bg | was previously allocated by allocateBG() |
color | could be used for drawing, but the theme is allowed to ignore it |
Implements canvascv::Theme.
virtual void canvascv::TwoColoredTheme::selected |
( |
cv::Mat & |
bg, |
|
|
const cv::Scalar & |
color |
|
) |
| |
|
virtual |
- Parameters
-
bg | was previously allocated by allocateBG() |
color | could be used for drawing, but the theme is allowed to ignore it |
Implements canvascv::Theme.
virtual void canvascv::TwoColoredTheme::sunken |
( |
cv::Mat & |
bg, |
|
|
const cv::Scalar & |
color |
|
) |
| |
|
virtual |
- Parameters
-
bg | was previously allocated by allocateBG() |
color | could be used for drawing, but the theme is allowed to ignore it |
Implements canvascv::Theme.
The documentation for this class was generated from the following file: