OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWGui::BackgroundImage Class Reference

A variant of MyGUI::ImageBox with aspect ratio correction using black bars. More...

#include <backgroundimage.hpp>

Inheritance diagram for MWGui::BackgroundImage:
Collaboration diagram for MWGui::BackgroundImage:

Public Member Functions

 BackgroundImage ()
 
void setBackgroundImage (const std::string &image, bool fixedRatio=true, bool stretch=true)
 
virtual void setSize (const MyGUI::IntSize &_value)
 
virtual void setCoord (const MyGUI::IntCoord &_value)
 

Private Member Functions

void adjustSize ()
 

Private Attributes

MyGUI::ImageBox * mChild
 
double mAspect
 

Detailed Description

A variant of MyGUI::ImageBox with aspect ratio correction using black bars.

Constructor & Destructor Documentation

MWGui::BackgroundImage::BackgroundImage ( )
inline

Member Function Documentation

void MWGui::BackgroundImage::adjustSize ( )
private

Here is the caller graph for this function:

void MWGui::BackgroundImage::setBackgroundImage ( const std::string &  image,
bool  fixedRatio = true,
bool  stretch = true 
)
Parameters
fixedRatioUse a fixed ratio of 4:3, regardless of the image dimensions
stretchStretch to fill the whole screen, or add black bars?

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::BackgroundImage::setCoord ( const MyGUI::IntCoord &  _value)
virtual

Here is the call graph for this function:

void MWGui::BackgroundImage::setSize ( const MyGUI::IntSize &  _value)
virtual

Here is the call graph for this function:

Member Data Documentation

double MWGui::BackgroundImage::mAspect
private
MyGUI::ImageBox* MWGui::BackgroundImage::mChild
private

The documentation for this class was generated from the following files: