osgEarth 2.1.1
Public Member Functions | Private Attributes

osgEarth::Util::Controls::Gutter Struct Reference

List of all members.

Public Member Functions

 Gutter ()
 Gutter (float top, float right, float bottom, float left)
 Gutter (float y, float x)
 Gutter (float all)
bool operator!= (const Gutter &rhs) const
float top () const
float left () const
float right () const
float bottom () const
float x () const
float y () const
osg::Vec2f size () const
osg::Vec2f offset () const

Private Attributes

float _top
float _right
float _bottom
float _left

Detailed Description

Definition at line 54 of file Controls.


Constructor & Destructor Documentation

osgEarth::Util::Controls::Gutter::Gutter ( ) [inline]

Definition at line 56 of file Controls.

            : _top(0), _right(0), _bottom(0), _left(0) { }
osgEarth::Util::Controls::Gutter::Gutter ( float  top,
float  right,
float  bottom,
float  left 
) [inline]

Definition at line 58 of file Controls.

osgEarth::Util::Controls::Gutter::Gutter ( float  y,
float  x 
) [inline]

Definition at line 60 of file Controls.

            : _top(y), _right(x), _bottom(y), _left(x) { }
osgEarth::Util::Controls::Gutter::Gutter ( float  all) [inline]

Definition at line 62 of file Controls.

            : _top(all), _right(all), _bottom(all), _left(all) { }

Member Function Documentation

float osgEarth::Util::Controls::Gutter::bottom ( ) const [inline]

Definition at line 70 of file Controls.

{ return _bottom; }

Here is the caller graph for this function:

float osgEarth::Util::Controls::Gutter::left ( ) const [inline]

Definition at line 68 of file Controls.

{ return _left; }

Here is the caller graph for this function:

osg::Vec2f osgEarth::Util::Controls::Gutter::offset ( ) const [inline]

Definition at line 77 of file Controls.

{ return osg::Vec2f( _left, _top ); }
bool osgEarth::Util::Controls::Gutter::operator!= ( const Gutter rhs) const [inline]

Definition at line 64 of file Controls.

                                                    {
            return top() != rhs.top() || right() != rhs.right() || bottom() != rhs.bottom() || left() != rhs.left(); }

Here is the call graph for this function:

float osgEarth::Util::Controls::Gutter::right ( ) const [inline]

Definition at line 69 of file Controls.

{ return _right; }

Here is the caller graph for this function:

osg::Vec2f osgEarth::Util::Controls::Gutter::size ( ) const [inline]

Definition at line 75 of file Controls.

{ return osg::Vec2f(x(), y()); }

Here is the caller graph for this function:

float osgEarth::Util::Controls::Gutter::top ( ) const [inline]

Definition at line 67 of file Controls.

{ return _top; }

Here is the caller graph for this function:

float osgEarth::Util::Controls::Gutter::x ( ) const [inline]

Definition at line 72 of file Controls.

{ return _left + _right; }

Here is the caller graph for this function:

float osgEarth::Util::Controls::Gutter::y ( ) const [inline]

Definition at line 73 of file Controls.

{ return _top + _bottom; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 80 of file Controls.

Definition at line 80 of file Controls.

Definition at line 80 of file Controls.

Definition at line 80 of file Controls.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines