A variant of MyGUI::ImageBox with aspect ratio correction using black bars.
More...
#include <backgroundimage.hpp>
A variant of MyGUI::ImageBox with aspect ratio correction using black bars.
| MWGui::BackgroundImage::BackgroundImage |
( |
| ) |
|
|
inline |
| void MWGui::BackgroundImage::adjustSize |
( |
| ) |
|
|
private |
| void MWGui::BackgroundImage::setBackgroundImage |
( |
const std::string & |
image, |
|
|
bool |
fixedRatio = true, |
|
|
bool |
stretch = true |
|
) |
| |
- Parameters
-
| fixedRatio | Use a fixed ratio of 4:3, regardless of the image dimensions |
| stretch | Stretch to fill the whole screen, or add black bars? |
| void MWGui::BackgroundImage::setCoord |
( |
const MyGUI::IntCoord & |
_value | ) |
|
|
virtual |
| void MWGui::BackgroundImage::setSize |
( |
const MyGUI::IntSize & |
_value | ) |
|
|
virtual |
| double MWGui::BackgroundImage::mAspect |
|
private |
| MyGUI::ImageBox* MWGui::BackgroundImage::mChild |
|
private |
The documentation for this class was generated from the following files: