Pepper_47_C++_interfaces
|
A size of an object based on width and height. More...
#include <size.h>
Public Member Functions | |
FloatSize () | |
The default constructor. Initializes the width and height to 0.0f. More... | |
FloatSize (const PP_FloatSize &s) | |
FloatSize (float w, float h) | |
~FloatSize () | |
Destructor. More... | |
operator PP_FloatSize () | |
const PP_FloatSize & | pp_float_size () const |
PP_FloatSize & | pp_float_size () |
float | width () const |
void | set_width (float w) |
float | height () const |
void | set_height (float h) |
float | GetArea () const |
void | SetSize (float w, float h) |
void | Enlarge (float w, float h) |
bool | IsEmpty () const |
|
inline |
|
inline |
A constructor accepting a pointer to a PP_FloatSize
and converting the PP_FloatSize
to a FloatSize
. This is an implicit conversion constructor.
[in] | s | A pointer to a PP_FloatSize . |
Definition at line 163 of file size.h.
References set_height(), and set_width().
|
inline |
A constructor accepting two float values for width and height and converting them to a FloatSize
.
[in] | w | An float value representing a width. |
[in] | h | An float value representing a height. |
Definition at line 174 of file size.h.
References set_height(), and set_width().
|
inline |
Enlarge() enlarges the size of an object.
[in] | w | A width to add the current width. |
[in] | h | A height to add to the current height. |
Definition at line 265 of file size.h.
References height(), set_height(), set_width(), and width().
|
inline |
|
inline |
Getter function for returning the value of height.
FloatSize
. Definition at line 230 of file size.h.
Referenced by Enlarge(), GetArea(), IsEmpty(), operator==(), and pp::FloatRect::set_size().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
SetSize() sets the value of width and height.
[in] | w | A new width value. |
[in] | h | A new height value. |
Definition at line 256 of file size.h.
References set_height(), and set_width().
|
inline |
Getter function for returning the value of width.
FloatSize
. Definition at line 212 of file size.h.
Referenced by Enlarge(), GetArea(), IsEmpty(), operator==(), and pp::FloatRect::set_size().