CanvasCV: canvascv::TwoColoredTheme Class Reference
CanvasCV  1.0.0
canvascv::TwoColoredTheme Class Reference

The ThemeDark class implements a 2 colored theme base class. More...

#include <twocoloredtheme.h>

Inheritance diagram for canvascv::TwoColoredTheme:
canvascv::Theme canvascv::ThemeDarkBlue canvascv::ThemeDarkOrange

Public Member Functions

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...
 

Detailed Description

Member Function Documentation

virtual void canvascv::TwoColoredTheme::allocateBG ( cv::Mat &  dst,
const cv::Size &  size,
const cv::Scalar &  color 
)
virtual
Parameters
dstis a Mat dedicated to hold the background will be filled with 4 channels
sizewill be the size of dst when done
coloris the requested color, with alpha, which the theme is allowed to ignore

Implements canvascv::Theme.

virtual void canvascv::TwoColoredTheme::applyStyle ( Widget widget)
virtual
Parameters
widgetwill have setters invoked according to the theme

Implements canvascv::Theme.

virtual void canvascv::TwoColoredTheme::applyStyle ( Shape shape)
virtual
Parameters
shapewill have setters invoked according to the theme

Implements canvascv::Theme.

virtual void canvascv::TwoColoredTheme::flat ( cv::Mat &  bg,
const cv::Scalar &  color 
)
virtual
Parameters
bgwas previously allocated by allocateBG()
colorcould 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
bgwas previously allocated by allocateBG()
colorcould 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
bgwas previously allocated by allocateBG()
colorcould 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
bgwas previously allocated by allocateBG()
colorcould 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: