OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scalinglayer.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_MYGUIPLATFORM_SCALINGLAYER
2 #define OPENMW_COMPONENTS_MYGUIPLATFORM_SCALINGLAYER
3 
4 #include <MyGUI_OverlappedLayer.h>
5 
6 namespace osgMyGUI
7 {
8 
11  class ScalingLayer : public MyGUI::OverlappedLayer
12  {
13  public:
14  MYGUI_RTTI_DERIVED(ScalingLayer)
15 
16  virtual void deserialization(MyGUI::xml::ElementPtr _node, MyGUI::Version _version);
17 
18  virtual MyGUI::ILayerItem* getLayerItemByPoint(int _left, int _top) const;
19  virtual MyGUI::IntPoint getPosition(int _left, int _top) const;
20  virtual void renderToTarget(MyGUI::IRenderTarget* _target, bool _update);
21 
22  virtual void resizeView(const MyGUI::IntSize& _viewSize);
23 
24  private:
25  void screenToLayerCoords(int& _left, int& _top) const;
26  float getScaleFactor() const;
27  };
28 
29 }
30 
31 #endif
A Layer that lays out and renders widgets in screen-relative coordinates. The "Size" property determi...
Definition: scalinglayer.hpp:11
float getScaleFactor() const
Definition: scalinglayer.cpp:82
virtual void resizeView(const MyGUI::IntSize &_viewSize)
Definition: scalinglayer.cpp:115
virtual MyGUI::IntPoint getPosition(int _left, int _top) const
Definition: scalinglayer.cpp:93
Version
Definition: esmcommon.hpp:12
virtual void deserialization(MyGUI::xml::ElementPtr _node, MyGUI::Version _version)
Definition: scalinglayer.cpp:120
virtual MyGUI::ILayerItem * getLayerItemByPoint(int _left, int _top) const
Definition: scalinglayer.cpp:57
virtual void renderToTarget(MyGUI::IRenderTarget *_target, bool _update)
Definition: scalinglayer.cpp:99
void screenToLayerCoords(int &_left, int &_top) const
Definition: scalinglayer.cpp:64