A fractional viewport with methods for manipulation.
More...
#include <viewport.h>
|
float | x |
| The X coordinate.
|
|
float | y |
| The Y coordinate.
|
|
float | w |
| The width.
|
|
float | h |
| The height.
|
|
A fractional viewport with methods for manipulation.
Definition at line 34 of file viewport.h.
eq::fabric::Viewport::Viewport |
( |
| ) |
|
|
inline |
Construct a full fractional viewport.
- Version
- 1.0
Definition at line 40 of file viewport.h.
eq::fabric::Viewport::Viewport |
( |
const float |
x_, |
|
|
const float |
y_, |
|
|
const float |
w_, |
|
|
const float |
h_ |
|
) |
| |
|
inline |
Construct a fractional viewport with default values.
- Version
- 1.0
Definition at line 43 of file viewport.h.
eq::fabric::Viewport::Viewport |
( |
const Vector4f & |
from | ) |
|
|
inlineexplicit |
Construct a fractional viewport from a Vector4f.
- Version
- 1.3.0
Definition at line 48 of file viewport.h.
float eq::fabric::Viewport::getArea |
( |
| ) |
const |
|
inline |
- Returns
- the area of this viewport.
- Version
- 1.0
Definition at line 109 of file viewport.h.
References h, and w.
float eq::fabric::Viewport::getXEnd |
( |
| ) |
const |
|
inline |
- Returns
- the X end position.
- Version
- 1.0
Definition at line 112 of file viewport.h.
References w, and x.
Referenced by unite().
float eq::fabric::Viewport::getYEnd |
( |
| ) |
const |
|
inline |
- Returns
- the Y end position.
- Version
- 1.0
Definition at line 115 of file viewport.h.
References h, and y.
Referenced by unite().
bool eq::fabric::Viewport::hasArea |
( |
| ) |
const |
|
inline |
- Returns
- true if the viewport has a non-zero area, i.e, it is not empty.
- Version
- 1.0
Definition at line 106 of file viewport.h.
References h, and w.
Referenced by intersect().
void eq::fabric::Viewport::intersect |
( |
const Viewport & |
rhs | ) |
|
|
inline |
bool eq::fabric::Viewport::isValid |
( |
| ) |
const |
|
inline |
- Returns
- true if the viewport has a non-negative, but potentially empty, size.
- Version
- 1.0
Definition at line 98 of file viewport.h.
References h, w, x, and y.
Referenced by apply(), and intersect().
bool eq::fabric::Viewport::operator!= |
( |
const Viewport & |
rhs | ) |
const |
|
inline |
- Returns
- true if the two viewports are not identical.
- Version
- 1.0
Definition at line 88 of file viewport.h.
References h, w, x, and y.
bool eq::fabric::Viewport::operator== |
( |
const Viewport & |
rhs | ) |
const |
|
inline |
- Returns
- true if the two viewports are identical.
- Version
- 1.0
Definition at line 79 of file viewport.h.
References h, w, x, and y.
void eq::fabric::Viewport::unite |
( |
const Viewport & |
rhs | ) |
|
|
inline |
The documentation for this class was generated from the following file: