Css.RoundedCorners Class Reference

Detailed Description

Represents the set of round corners for a particular border.

Public Member Functions

 RoundedCorners (BorderProperty border)
 
void SetCorner (ref RoundCorner corner, RoundCornerPosition position, float radius)
 Sets a round corner to this border. More...
 
void PreLayout ()
 Called right before round corners are about to be layed out. More...
 
void Layout (Color colour, LayoutBox box, Renderman renderer, int i)
 Renders and performs a layout of the round corners. More...
 
void ClearCorners ()
 
void RenderCorners (LayoutBox box, Renderman renderer)
 Renders round corners. More...
 

Public Attributes

RoundCorner TopLeft
 A rounded corner in the top left, if any. More...
 
RoundCorner TopRight
 A rounded corner in the top right, if any. More...
 
BorderProperty Border
 The parent border this set belongs to. More...
 
RoundCorner BottomLeft
 A rounded corner in the bottom left, if any. More...
 
ComputedStyle Computed
 The computed style of the parent element. More...
 
RoundCorner BottomRight
 A rounded corner in the bottom right, if any. More...
 
RoundBorderInverseProperty InverseBorder
 The inverse fragment renderer for this set. More...
 

Properties

float TopLeftRadius [get]
 Top left radius. More...
 
float TopRightRadius [get]
 Top right radius. More...
 
float BottomRightRadius [get]
 Bottom right radius. More...
 
float BottomLeftRadius [get]
 Bottom left radius. More...
 

Constructor & Destructor Documentation

Css.RoundedCorners.RoundedCorners ( BorderProperty  border)
inline

Member Function Documentation

void Css.RoundedCorners.ClearCorners ( )
inline
void Css.RoundedCorners.Layout ( Color  colour,
LayoutBox  box,
Renderman  renderer,
int  i 
)
inline

Renders and performs a layout of the round corners.

void Css.RoundedCorners.PreLayout ( )
inline

Called right before round corners are about to be layed out.

void Css.RoundedCorners.RenderCorners ( LayoutBox  box,
Renderman  renderer 
)
inline

Renders round corners.

void Css.RoundedCorners.SetCorner ( ref RoundCorner  corner,
RoundCornerPosition  position,
float  radius 
)
inline

Sets a round corner to this border.

Parameters
cornerThe property that it's going onto or coming from.
positionThe type of corner that it is.
radiusThe border radius.

Member Data Documentation

BorderProperty Css.RoundedCorners.Border

The parent border this set belongs to.

RoundCorner Css.RoundedCorners.BottomLeft

A rounded corner in the bottom left, if any.

RoundCorner Css.RoundedCorners.BottomRight

A rounded corner in the bottom right, if any.

ComputedStyle Css.RoundedCorners.Computed

The computed style of the parent element.

RoundBorderInverseProperty Css.RoundedCorners.InverseBorder

The inverse fragment renderer for this set.

RoundCorner Css.RoundedCorners.TopLeft

A rounded corner in the top left, if any.

RoundCorner Css.RoundedCorners.TopRight

A rounded corner in the top right, if any.

Property Documentation

float Css.RoundedCorners.BottomLeftRadius
get

Bottom left radius.

float Css.RoundedCorners.BottomRightRadius
get

Bottom right radius.

float Css.RoundedCorners.TopLeftRadius
get

Top left radius.

float Css.RoundedCorners.TopRightRadius
get

Top right radius.