class GmLayoutManager

Class description

Inheritance:


Public Methods

[more] GmLayoutManager ()
Standard constructor
[more]virtual void apply (vector<GmDrawable*>* components)
Applies the layout to the container.
[more]float getBottomInset ()
Returns the bottom inset amount.
[more]float getLeftInset ()
Returns the left inset amount.
[more]float getRightInset ()
Returns the right inset amount.
[more]float getTopInset ()
Returns the top inset amount.
[more]void setContainerDimensions (GlmPoint3& position, float& width, float& height, float& depth)
Associates the container's position and dimensions with this layout manager.
[more]void setGlContainerDimensions (GlmPoint3& glPosition, float &glWidth, float& glHeight, float& glDepth)
Associates the container's OpenGL position and dimensions with this layout manager.
[more]void setInsets (float left, float right, float top, float bottom)
Sets the inset amounts.
[more]virtual ~GmLayoutManager ()
Virtual destructor

Protected Fields

[more]float mBottomInset
[more]float* mCDepth
[more]float* mCGlDepth
[more]float* mCGlHeight
[more]GlmPoint3* mCGlPosition
[more]float* mCGlWidth
[more]float* mCHeight
[more]GlmPoint3* mCPosition
[more]float* mCWidth
Dimensions of the container.
[more]float mLeftInset
[more]float mRightInset
[more]float mTopInset


Documentation

Class description
oGlmPoint3* mCPosition

oGlmPoint3* mCGlPosition

ofloat* mCWidth
Dimensions of the container. Both in application units and OpenGL units.

ofloat* mCHeight

ofloat* mCDepth

ofloat* mCGlWidth

ofloat* mCGlHeight

ofloat* mCGlDepth

ofloat mLeftInset

ofloat mRightInset

ofloat mTopInset

ofloat mBottomInset

o GmLayoutManager()
Standard constructor

ovirtual ~GmLayoutManager()
Virtual destructor

ovirtual void apply(vector<GmDrawable*>* components) = 0
Applies the layout to the container. All components will be positioned according to the layout design. This function must be implemented by inheriting layout classes.

Parameters:
components - the vector of components in the container

ovoid setContainerDimensions(GlmPoint3& position, float& width, float& height, float& depth)
Associates the container's position and dimensions with this layout manager. Association is used so that layout managers do not have to be updated if container positions or dimensions change.

Parameters:
position - the starting position of the constraint volume
width - the width of the constraint volume
height - the height of the constraint volume
depth - the depth of the constraint volume

ovoid setGlContainerDimensions(GlmPoint3& glPosition, float &glWidth, float& glHeight, float& glDepth)
Associates the container's OpenGL position and dimensions with this layout manager. Association is used so that layout managers do not have to be updated if container positions or dimensions change.

Parameters:
glPosition - the starting position of the constraint volume
glWidth - the OpenGL unit width of the constraint volume
glHeight - the OpenGL unit height of the constraint volume
glDepth - the OpenGL unit depth of the constraint volume

ovoid setInsets(float left, float right, float top, float bottom)
Sets the inset amounts.

Parameters:
left - sets the top left
right - sets the top right
top - sets the top inset
bottom - sets the top bottom

ofloat getTopInset()
Returns the top inset amount.

Returns:
the top inset amount

ofloat getBottomInset()
Returns the bottom inset amount.

Returns:
the bottom inset amount

ofloat getLeftInset()
Returns the left inset amount.

Returns:
the left inset amount

ofloat getRightInset()
Returns the right inset amount.

Returns:
the right inset amount


Direct child classes:
Gm2dLayout

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.