Detailed Description

The viewport of a document. These are typically used to resolve % which are relative to the "screen".

Inheritance diagram for Css.Viewport:
Css.ScreenRegion

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
 

Constructor & Destructor Documentation

Css.Viewport.Viewport ( )
inline
Css.Viewport.Viewport ( float  w,
float  h 
)
inline

Member Function Documentation

void Css.Viewport.Recalculate ( )
inlineprivate
void Css.Viewport.Update ( float  w,
float  h 
)
inline

Member Data Documentation

float Css.Viewport._Diagonal
private
float Css.Viewport._Height
private
float Css.Viewport._Width
private

Property Documentation

float Css.Viewport.Diagonal
get
float Css.Viewport.Height
getset
float Css.Viewport.Width
getset