webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | List of all members
WebCore::BorderEdge Class Reference

#include <BorderEdge.h>

Public Types

enum  BorderEdgeFlag {
  TopBorderEdge = 1 << BSTop, RightBorderEdge = 1 << BSRight, BottomBorderEdge = 1 << BSBottom, LeftBorderEdge = 1 << BSLeft,
  AllBorderEdges = TopBorderEdge | BottomBorderEdge | LeftBorderEdge | RightBorderEdge
}
 

Public Member Functions

 BorderEdge ()=default
 
 BorderEdge (float edgeWidth, Color edgeColor, EBorderStyle edgeStyle, bool edgeIsTransparent, bool edgeIsPresent, float devicePixelRatio)
 
EBorderStyle style () const
 
const Colorcolor () const
 
bool isTransparent () const
 
bool isPresent () const
 
bool hasVisibleColorAndStyle () const
 
bool shouldRender () const
 
bool presentButInvisible () const
 
float widthForPainting () const
 
void getDoubleBorderStripeWidths (LayoutUnit &outerWidth, LayoutUnit &innerWidth) const
 
bool obscuresBackgroundEdge (float scale) const
 
bool obscuresBackground () const
 

Static Public Member Functions

static void getBorderEdgeInfo (BorderEdge edges[], const RenderStyle &, float deviceScaleFactor, bool includeLogicalLeftEdge=true, bool includeLogicalRightEdge=true)
 

Member Enumeration Documentation

◆ BorderEdgeFlag

Enumerator
TopBorderEdge 
RightBorderEdge 
BottomBorderEdge 
LeftBorderEdge 
AllBorderEdges 

Constructor & Destructor Documentation

◆ BorderEdge() [1/2]

WebCore::BorderEdge::BorderEdge ( )
default

◆ BorderEdge() [2/2]

WebCore::BorderEdge::BorderEdge ( float  edgeWidth,
Color  edgeColor,
EBorderStyle  edgeStyle,
bool  edgeIsTransparent,
bool  edgeIsPresent,
float  devicePixelRatio 
)

Member Function Documentation

◆ color()

const Color& WebCore::BorderEdge::color ( ) const
inline

◆ getBorderEdgeInfo()

void WebCore::BorderEdge::getBorderEdgeInfo ( BorderEdge  edges[],
const RenderStyle style,
float  deviceScaleFactor,
bool  includeLogicalLeftEdge = true,
bool  includeLogicalRightEdge = true 
)
static

◆ getDoubleBorderStripeWidths()

void WebCore::BorderEdge::getDoubleBorderStripeWidths ( LayoutUnit outerWidth,
LayoutUnit innerWidth 
) const

◆ hasVisibleColorAndStyle()

bool WebCore::BorderEdge::hasVisibleColorAndStyle ( ) const
inline

◆ isPresent()

bool WebCore::BorderEdge::isPresent ( ) const
inline

◆ isTransparent()

bool WebCore::BorderEdge::isTransparent ( ) const
inline

◆ obscuresBackground()

bool WebCore::BorderEdge::obscuresBackground ( ) const

◆ obscuresBackgroundEdge()

bool WebCore::BorderEdge::obscuresBackgroundEdge ( float  scale) const

◆ presentButInvisible()

bool WebCore::BorderEdge::presentButInvisible ( ) const
inline

◆ shouldRender()

bool WebCore::BorderEdge::shouldRender ( ) const
inline

◆ style()

EBorderStyle WebCore::BorderEdge::style ( ) const
inline

◆ widthForPainting()

float WebCore::BorderEdge::widthForPainting ( ) const
inline

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