|
Pepper_47_C++_interfaces
|
A size of an object based on width and height. More...
#include <size.h>

Public Member Functions | |
| Size () | |
| The default constructor. Initializes the width and height to 0. More... | |
| Size (const PP_Size &s) | |
| Size (int w, int h) | |
| ~Size () | |
| Destructor. More... | |
| operator PP_Size () | |
| const PP_Size & | pp_size () const |
| PP_Size & | pp_size () |
| int | width () const |
| void | set_width (int w) |
| int | height () const |
| void | set_height (int h) |
| int | GetArea () const |
| void | SetSize (int w, int h) |
| void | Enlarge (int w, int h) |
| bool | IsEmpty () const |
|
inline |
|
inline |
A constructor accepting a pointer to a PP_Size and converting the PP_Size to a Size. This is an implicit conversion constructor.
| [in] | s | A pointer to a PP_Size. |
Definition at line 32 of file size.h.
References set_height(), and set_width().
|
inline |
A constructor accepting two int values for width and height and converting them to a Size.
| [in] | w | An int value representing a width. |
| [in] | h | An int value representing a height. |
Definition at line 43 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 131 of file size.h.
References height(), set_height(), set_width(), and width().
|
inline |
|
inline |
Getter function for returning the value of height.
Size. Definition at line 96 of file size.h.
Referenced by Enlarge(), GetArea(), IsEmpty(), operator==(), and pp::Rect::set_size().
|
inline |
|
inline |
|
inline |
Getter function for returning the internal PP_Size struct.
PP_Size struct. Definition at line 64 of file size.h.
Referenced by pp::Fullscreen::GetScreenSize(), pp::Graphics2D::Graphics2D(), pp::ImageData::ImageData(), pp::CompositorLayerSamsung::SetBackgroundPlane(), pp::CompositorLayer::SetColor(), pp::CompositorLayer::SetImage(), and pp::CompositorLayer::SetTexture().
|
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 122 of file size.h.
References set_height(), and set_width().
|
inline |
Getter function for returning the value of width.
Size. Definition at line 78 of file size.h.
Referenced by Enlarge(), GetArea(), IsEmpty(), operator==(), and pp::Rect::set_size().
1.8.6