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 36 of file viewport.h.
eq::fabric::Viewport::Viewport |
( |
| ) |
|
|
inline |
Construct a full fractional viewport.
- Version
- 1.0
Definition at line 42 of file viewport.h.
eq::fabric::Viewport::Viewport |
( |
const float |
x_, |
|
|
const float |
y_, |
|
|
const float |
w_, |
|
|
const float |
h_ |
|
) |
| |
|
inlineexplicit |
Construct a fractional viewport with default values.
- Version
- 1.0
Definition at line 45 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 50 of file viewport.h.
float eq::fabric::Viewport::getArea |
( |
| ) |
const |
|
inline |
- Returns
- the area of this viewport.
- Version
- 1.0
Definition at line 111 of file viewport.h.
References h.
float eq::fabric::Viewport::getXEnd |
( |
| ) |
const |
|
inline |
- Returns
- the X end position.
- Version
- 1.0
Definition at line 114 of file viewport.h.
References w.
Referenced by unite().
float eq::fabric::Viewport::getYEnd |
( |
| ) |
const |
|
inline |
- Returns
- the Y end position.
- Version
- 1.0
Definition at line 117 of file viewport.h.
References h.
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 108 of file viewport.h.
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 100 of file viewport.h.
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 90 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 81 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: