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

A Layer that lays out and renders widgets in screen-relative coordinates. The "Size" property determines the size of the virtual screen, which is then upscaled to the real screen size during rendering. The aspect ratio is kept intact, adding blanks to the sides when necessary. More...

#include <scalinglayer.hpp>

Inheritance diagram for osgMyGUI::ScalingLayer:
Collaboration diagram for osgMyGUI::ScalingLayer:

Public Member Functions

virtual void deserialization (MyGUI::xml::ElementPtr _node, MyGUI::Version _version)
 
virtual MyGUI::ILayerItem * getLayerItemByPoint (int _left, int _top) const
 
virtual MyGUI::IntPoint getPosition (int _left, int _top) const
 
virtual void renderToTarget (MyGUI::IRenderTarget *_target, bool _update)
 
virtual void resizeView (const MyGUI::IntSize &_viewSize)
 

Private Member Functions

void screenToLayerCoords (int &_left, int &_top) const
 
float getScaleFactor () const
 

Detailed Description

A Layer that lays out and renders widgets in screen-relative coordinates. The "Size" property determines the size of the virtual screen, which is then upscaled to the real screen size during rendering. The aspect ratio is kept intact, adding blanks to the sides when necessary.

Member Function Documentation

void osgMyGUI::ScalingLayer::deserialization ( MyGUI::xml::ElementPtr  _node,
MyGUI::Version  _version 
)
virtual
MyGUI::ILayerItem * osgMyGUI::ScalingLayer::getLayerItemByPoint ( int  _left,
int  _top 
) const
virtual

Here is the call graph for this function:

MyGUI::IntPoint osgMyGUI::ScalingLayer::getPosition ( int  _left,
int  _top 
) const
virtual

Here is the call graph for this function:

float osgMyGUI::ScalingLayer::getScaleFactor ( ) const
private

Here is the caller graph for this function:

void osgMyGUI::ScalingLayer::renderToTarget ( MyGUI::IRenderTarget *  _target,
bool  _update 
)
virtual

Here is the call graph for this function:

void osgMyGUI::ScalingLayer::resizeView ( const MyGUI::IntSize &  _viewSize)
virtual
void osgMyGUI::ScalingLayer::screenToLayerCoords ( int _left,
int _top 
) const
private

Here is the call graph for this function:

Here is the caller graph for this function:


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