#include <view_geometry.h>

Public Member Functions

 ViewGeometry ()
 
 ViewGeometry (const StyleCascade &style)
 
Rectf border_box () const
 
Rectf content_box () const
 
Pointf content_pos () const
 
Sizef content_size () const
 
Rectf margin_box () const
 
Rectf padding_box () const
 

Static Public Member Functions

static ViewGeometry from_border_box (const StyleCascade &style, const Rectf &box)
 
static ViewGeometry from_content_box (const StyleCascade &style, const Rectf &box)
 
static ViewGeometry from_margin_box (const StyleCascade &style, const Rectf &box)
 
static ViewGeometry from_padding_box (const StyleCascade &style, const Rectf &box)
 

Public Attributes

float border_bottom = 0.0f
 
float border_left = 0.0f
 
float border_right = 0.0f
 
float border_top = 0.0f
 
float content_height = 0.0f
 
float content_width = 0.0f
 
float content_x = 0.0f
 
float content_y = 0.0f
 
float margin_bottom = 0.0f
 
float margin_left = 0.0f
 
float margin_right = 0.0f
 
float margin_top = 0.0f
 
float padding_bottom = 0.0f
 
float padding_left = 0.0f
 
float padding_right = 0.0f
 
float padding_top = 0.0f
 

Constructor & Destructor Documentation

uicore::ViewGeometry::ViewGeometry ( )
inline
uicore::ViewGeometry::ViewGeometry ( const StyleCascade style)

Member Function Documentation

Rectf uicore::ViewGeometry::border_box ( ) const
Rectf uicore::ViewGeometry::content_box ( ) const
Pointf uicore::ViewGeometry::content_pos ( ) const
Sizef uicore::ViewGeometry::content_size ( ) const
static ViewGeometry uicore::ViewGeometry::from_border_box ( const StyleCascade style,
const Rectf box 
)
static
static ViewGeometry uicore::ViewGeometry::from_content_box ( const StyleCascade style,
const Rectf box 
)
static
static ViewGeometry uicore::ViewGeometry::from_margin_box ( const StyleCascade style,
const Rectf box 
)
static
static ViewGeometry uicore::ViewGeometry::from_padding_box ( const StyleCascade style,
const Rectf box 
)
static
Rectf uicore::ViewGeometry::margin_box ( ) const
Rectf uicore::ViewGeometry::padding_box ( ) const

Member Data Documentation

float uicore::ViewGeometry::border_bottom = 0.0f
float uicore::ViewGeometry::border_left = 0.0f
float uicore::ViewGeometry::border_right = 0.0f
float uicore::ViewGeometry::border_top = 0.0f
float uicore::ViewGeometry::content_height = 0.0f
float uicore::ViewGeometry::content_width = 0.0f
float uicore::ViewGeometry::content_x = 0.0f
float uicore::ViewGeometry::content_y = 0.0f
float uicore::ViewGeometry::margin_bottom = 0.0f
float uicore::ViewGeometry::margin_left = 0.0f
float uicore::ViewGeometry::margin_right = 0.0f
float uicore::ViewGeometry::margin_top = 0.0f
float uicore::ViewGeometry::padding_bottom = 0.0f
float uicore::ViewGeometry::padding_left = 0.0f
float uicore::ViewGeometry::padding_right = 0.0f
float uicore::ViewGeometry::padding_top = 0.0f

The documentation for this class was generated from the following file: