The viewport of a document. These are typically used to resolve % which are relative to the "screen".
Public Member Functions | |
Viewport () | |
Viewport (float w, float h) | |
void | Update (float w, float h) |
Public Member Functions inherited from Css.ScreenRegion | |
virtual bool | Contains (float x, float y) |
True if this region contains the given x/y point assuming an infinitely long ray on the z axis. More... | |
Properties | |
float | Width [get, set] |
float | Height [get, set] |
float | Diagonal [get] |
Properties inherited from Css.ScreenRegion | |
virtual float | ScreenMinX [get] |
virtual float | ScreenMinY [get] |
virtual float | ScreenMaxX [get] |
virtual float | ScreenMaxY [get] |
Private Member Functions | |
void | Recalculate () |
Private Attributes | |
float | _Width |
float | _Height |
float | _Diagonal |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
private |
|
private |
|
private |
|
get |
|
getset |
|
getset |