omgui::Size Struct Reference

#include <omgui/types.h>

List of all members.


Detailed Description

Data structure representing a size using floating point values.

Public Member Functions

bool operator!= (const Size &s)
Sizeoperator*= (float f)
Sizeoperator+= (const Size &s)
Sizeoperator-= (const Size &s)
Sizeoperator/= (float f)
bool operator== (const Size &s)
 Size (int w, int h)
 Size ()

Public Attributes

int height
int width

Constructor & Destructor Documentation

omgui::Size::Size (  )  [inline]

Default constructor, initializes values to 0

omgui::Size::Size ( int  w,
int  h 
) [inline]

Constructs a Size object from a width and height.

Parameters:
w Width
h Height


Member Function Documentation

bool omgui::Size::operator!= ( const Size s  )  [inline]

Returns:
True if this size is not equal to the size s.

Size& omgui::Size::operator*= ( float  f  )  [inline]

Multiply the height and width of this size by the factor f.

Size& omgui::Size::operator+= ( const Size s  )  [inline]

Adds the width and height from size s to this size's width and height.

Size& omgui::Size::operator-= ( const Size s  )  [inline]

Subtracts the width and height from size s from this size's width and height.

Size& omgui::Size::operator/= ( float  f  )  [inline]

Divide the height and width of this size by the factor f.

bool omgui::Size::operator== ( const Size s  )  [inline]

Returns:
True if this size is equal to the size s.


Member Data Documentation


doxygen SourceForge.net Logo