C# 클래스 LayoutFarm.HtmlBoxes.CssBox

Represents a CSS Box of text or replaced elements.
The Box can contains other boxes, that's the way that the CSS Tree is composed. To know more about boxes visit CSS spec: http://www.w3.org/TR/CSS21/box.html
파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
__aa_dbugId int
dbugMark1 int
dbugMark2 int

Private Properties

프로퍼티 타입 설명
AddLineBox void
CalculateMinimumWidth float
CalculateMinimumWidthAndWidestRun void
DirectSetBorderWidth void
EvaluateSpec void
FindContainerForAbsoluteBox CssBox
FindContainerForCenteredBox CssBox
FindContainerForFixedBox CssBox
GetFirstLineBox CssLineBox
GetGlobalLocationRelativeToRoot CssBox
GetHeightAfterMarginBottomCollapse float
GetLastLineBox CssLineBox
GetLatestCachedMinWidth float
GetLineBoxBackwardIter IEnumerable
GetLineBoxIter IEnumerable
GetNextNode CssBox
GetPrevNode CssBox
GetSplitInfo void
OffsetLocalTop void
PaintBackground void
PaintDecoration void
ReEvaluateComputedValues void
RecalculateMargin float
RecalculatePadding float
ResetLineBoxes void
ResetTextFlags void
SetCssBoxFromContainerAvailableWidth void
SetCssBoxHeight void
SetCssBoxWidth void
SetHeightToZero void
TransplateDisplayOutsideInside void
UnsafeGetChildren CssBoxCollection
UnsafeGetLinkedNode LinkedListNode
UnsafeGetRunList List
UnsafeGetTextBuffer char[]
UnsafeSetNodes void
UpdateIfHigher void
ValidateComputeValues void
dbugBeforeSetHeight void
dbugBeforeSetWidth void
dbugChangeSiblingOrder void
dbugCopyTextContent string

공개 메소드들

메소드 설명
AddNewAnonInline ( CssBox parent ) : CssBox
AppendChild ( CssBox box ) : void
AppendToAbsoluteLayer ( CssBox box ) : void

append box to this element's absolute layer

ChangeDisplayType ( CssBox box, CssDisplay newdisplay ) : void
Clear ( ) : void
CssBox ( BoxSpec spec, RootGraphic rootgfx ) : System
CssBox ( BoxSpec spec, RootGraphic rootgfx, CssDisplay displayType ) : System
CustomContentHitTest ( float x, float y, CssBoxHitChain hitChain ) : bool
CustomRecomputedValue ( CssBox containingBlock ) : void
GetAbsoluteChildBoxBackwardIter ( ) : IEnumerable
GetAbsoluteChildBoxIter ( ) : IEnumerable
GetChildBoxIter ( ) : IEnumerable
GetEmHeight ( ) : float

Gets the height of the font in the specified units

GetFirstChild ( ) : CssBox
GetGlobalLocation ( float &globalX, float &globalY ) : CssBox
GetRunIter ( ) : IEnumerable
GetTopRootCssBox ( ) : CssBox
InsertChild ( CssBox beforeBox, CssBox box ) : void
InvalidateComputeValue ( CssBox box ) : void
InvalidateGraphics ( ) : void
InvalidateGraphics ( Rectangle clientArea ) : void
IsPointInArea ( float x, float y ) : bool
MeasureRunsSize ( LayoutVisitor lay ) : void

Assigns words its width and height

Paint ( PaintVisitor p ) : void
Paint ( PaintVisitor p, RectangleF r ) : void
PerformLayout ( LayoutVisitor lay ) : void

Measures the bounds of box and children, recursively.
Performs layout of the DOM structure creating lines by set bounds restrictions.

ReEvaluateFont ( IFonts iFonts, float parentFontSize ) : void
RemoveChild ( CssBox box ) : void
SetAsBrBox ( CssBox box ) : void
SetController ( object controller ) : void
SetExpectedSize ( float expectedW, float expectedH ) : void
SetLocation ( float localX, float localY ) : void

set location relative to container box

SetRowSpanAndColSpan ( int rowSpan, int colSpan ) : void
SetViewport ( int viewportX, int viewportY ) : void
SetVisualHeight ( float height ) : void
SetVisualSize ( float width, float height ) : void

set presentation (visual) size width,height

SetVisualWidth ( float width ) : void
ToString ( ) : string
UnsafeGetBoxSpec ( CssBox box ) : BoxSpec
UnsafeGetController ( CssBox box ) : object
UnsafeSetContentRuns ( CssBox box, List runs, bool isAllWhitespace ) : void
UnsafeSetParent ( CssBox box, CssBox parent ) : void
UnsafeSetTextBuffer ( CssBox box, char textBuffer ) : void
UpdateMarginTopCollapse ( CssBox upperSibling ) : float

Gets the result of collapsing the vertical margins of the two boxes

dbugPaint ( PaintVisitor p, RectangleF r ) : void

보호된 메소드들

메소드 설명
GetGlobalLocationImpl ( float &globalX, float &globalY ) : CssBox
PaintImp ( PaintVisitor p ) : void
PerformContentLayout ( LayoutVisitor lay ) : void

Measures the bounds of box and children, recursively.
Performs layout of the DOM structure creating lines by set bounds restrictions.

SetAsCustomCssBox ( CssBox box ) : void

비공개 메소드들

메소드 설명
AddLineBox ( CssLineBox linebox ) : void
CalculateMinimumWidth ( int calculationEpisode ) : float

Gets the minimum width that the box can be. *** The box can be as thin as the longest word plus padding

CalculateMinimumWidthAndWidestRun ( CssBox box, float &maxWidth, CssRun &maxWidthRun ) : void
DirectSetBorderWidth ( CssSide side, float w ) : void
EvaluateSpec ( BoxSpec spec ) : void
FindContainerForAbsoluteBox ( ) : CssBox
FindContainerForCenteredBox ( ) : CssBox
FindContainerForFixedBox ( ) : CssBox
GetFirstLineBox ( ) : CssLineBox
GetGlobalLocationRelativeToRoot ( float &globalX, float &globalY ) : CssBox
GetHeightAfterMarginBottomCollapse ( CssBox containerBox ) : float

Gets the result of collapsing the vertical margins of the two boxes

GetLastLineBox ( ) : CssLineBox
GetLatestCachedMinWidth ( CssBox targetBox ) : float

GetLineBoxBackwardIter ( ) : IEnumerable
GetLineBoxIter ( ) : IEnumerable
GetNextNode ( ) : CssBox
GetPrevNode ( ) : CssBox
GetSplitInfo ( CssBox box, CssLineBox lineBox, bool &isFirstLine, bool &isLastLine ) : void
OffsetLocalTop ( float dy ) : void
PaintBackground ( PaintVisitor p, RectangleF rect, bool isFirst, bool isLast ) : void

Paints the background of the box

PaintDecoration ( Canvas g, RectangleF rectangle, bool isFirst, bool isLast ) : void
ReEvaluateComputedValues ( IFonts iFonts, CssBox containingBlock ) : void

evaluate computed value

RecalculateMargin ( CssLength margin, float cbWidth ) : float

recalculate margin

RecalculatePadding ( CssLength padding, float cbWidth ) : float

recalculate padding

ResetLineBoxes ( ) : void
ResetTextFlags ( ) : void
SetCssBoxFromContainerAvailableWidth ( float containerClientWidth ) : void
SetCssBoxHeight ( float height ) : void
SetCssBoxWidth ( float width ) : void

set box width related to its boxsizing model and recalcualte visual width

SetHeightToZero ( ) : void
TransplateDisplayOutsideInside ( CssDisplay cssDisplay, CssDisplayOutside &outside, CssDisplayInside &inside ) : void
UnsafeGetChildren ( CssBox box ) : CssBoxCollection
UnsafeGetLinkedNode ( CssBox box ) : LinkedListNode
UnsafeGetRunList ( CssBox box ) : List
UnsafeGetTextBuffer ( CssBox box ) : char[]
UnsafeSetNodes ( CssBox childNode, CssBox parent, LinkedListNode linkNode ) : void
UpdateIfHigher ( CssBox box, float newHeight ) : void
ValidateComputeValues ( CssBox box ) : void
dbugBeforeSetHeight ( float height ) : void
dbugBeforeSetWidth ( float width ) : void
dbugChangeSiblingOrder ( int siblingIndex ) : void
dbugCopyTextContent ( ) : string

메소드 상세

AddNewAnonInline() 공개 정적인 메소드

public static AddNewAnonInline ( CssBox parent ) : CssBox
parent CssBox
리턴 CssBox

AppendChild() 공개 메소드

public AppendChild ( CssBox box ) : void
box CssBox
리턴 void

AppendToAbsoluteLayer() 공개 메소드

append box to this element's absolute layer
public AppendToAbsoluteLayer ( CssBox box ) : void
box CssBox
리턴 void

ChangeDisplayType() 공개 정적인 메소드

public static ChangeDisplayType ( CssBox box, CssDisplay newdisplay ) : void
box CssBox
newdisplay CssDisplay
리턴 void

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

CssBox() 공개 메소드

public CssBox ( BoxSpec spec, RootGraphic rootgfx ) : System
spec LayoutFarm.Css.BoxSpec
rootgfx RootGraphic
리턴 System

CssBox() 공개 메소드

public CssBox ( BoxSpec spec, RootGraphic rootgfx, CssDisplay displayType ) : System
spec LayoutFarm.Css.BoxSpec
rootgfx RootGraphic
displayType CssDisplay
리턴 System

CustomContentHitTest() 공개 메소드

public CustomContentHitTest ( float x, float y, CssBoxHitChain hitChain ) : bool
x float
y float
hitChain CssBoxHitChain
리턴 bool

CustomRecomputedValue() 공개 메소드

public CustomRecomputedValue ( CssBox containingBlock ) : void
containingBlock CssBox
리턴 void

GetAbsoluteChildBoxBackwardIter() 공개 메소드

public GetAbsoluteChildBoxBackwardIter ( ) : IEnumerable
리턴 IEnumerable

GetAbsoluteChildBoxIter() 공개 메소드

public GetAbsoluteChildBoxIter ( ) : IEnumerable
리턴 IEnumerable

GetChildBoxIter() 공개 메소드

public GetChildBoxIter ( ) : IEnumerable
리턴 IEnumerable

GetEmHeight() 공개 메소드

Gets the height of the font in the specified units
public GetEmHeight ( ) : float
리턴 float

GetFirstChild() 공개 메소드

public GetFirstChild ( ) : CssBox
리턴 CssBox

GetGlobalLocation() 공개 메소드

public GetGlobalLocation ( float &globalX, float &globalY ) : CssBox
globalX float
globalY float
리턴 CssBox

GetGlobalLocationImpl() 보호된 메소드

protected GetGlobalLocationImpl ( float &globalX, float &globalY ) : CssBox
globalX float
globalY float
리턴 CssBox

GetRunIter() 공개 메소드

public GetRunIter ( ) : IEnumerable
리턴 IEnumerable

GetTopRootCssBox() 공개 메소드

public GetTopRootCssBox ( ) : CssBox
리턴 CssBox

InsertChild() 공개 메소드

public InsertChild ( CssBox beforeBox, CssBox box ) : void
beforeBox CssBox
box CssBox
리턴 void

InvalidateComputeValue() 공개 정적인 메소드

public static InvalidateComputeValue ( CssBox box ) : void
box CssBox
리턴 void

InvalidateGraphics() 공개 메소드

public InvalidateGraphics ( ) : void
리턴 void

InvalidateGraphics() 공개 메소드

public InvalidateGraphics ( Rectangle clientArea ) : void
clientArea PixelFarm.Drawing.Rectangle
리턴 void

IsPointInArea() 공개 메소드

public IsPointInArea ( float x, float y ) : bool
x float
y float
리턴 bool

MeasureRunsSize() 공개 메소드

Assigns words its width and height
public MeasureRunsSize ( LayoutVisitor lay ) : void
lay LayoutVisitor
리턴 void

Paint() 공개 메소드

public Paint ( PaintVisitor p ) : void
p PaintVisitor
리턴 void

Paint() 공개 메소드

public Paint ( PaintVisitor p, RectangleF r ) : void
p PaintVisitor
r PixelFarm.Drawing.RectangleF
리턴 void

PaintImp() 보호된 메소드

protected PaintImp ( PaintVisitor p ) : void
p PaintVisitor
리턴 void

PerformContentLayout() 보호된 메소드

Measures the bounds of box and children, recursively.
Performs layout of the DOM structure creating lines by set bounds restrictions.
protected PerformContentLayout ( LayoutVisitor lay ) : void
lay LayoutVisitor
리턴 void

PerformLayout() 공개 메소드

Measures the bounds of box and children, recursively.
Performs layout of the DOM structure creating lines by set bounds restrictions.
public PerformLayout ( LayoutVisitor lay ) : void
lay LayoutVisitor
리턴 void

ReEvaluateFont() 공개 메소드

public ReEvaluateFont ( IFonts iFonts, float parentFontSize ) : void
iFonts IFonts
parentFontSize float
리턴 void

RemoveChild() 공개 메소드

public RemoveChild ( CssBox box ) : void
box CssBox
리턴 void

SetAsBrBox() 공개 정적인 메소드

public static SetAsBrBox ( CssBox box ) : void
box CssBox
리턴 void

SetAsCustomCssBox() 보호된 정적인 메소드

protected static SetAsCustomCssBox ( CssBox box ) : void
box CssBox
리턴 void

SetController() 공개 메소드

public SetController ( object controller ) : void
controller object
리턴 void

SetExpectedSize() 공개 메소드

public SetExpectedSize ( float expectedW, float expectedH ) : void
expectedW float
expectedH float
리턴 void

SetLocation() 공개 메소드

set location relative to container box
public SetLocation ( float localX, float localY ) : void
localX float
localY float
리턴 void

SetRowSpanAndColSpan() 공개 메소드

public SetRowSpanAndColSpan ( int rowSpan, int colSpan ) : void
rowSpan int
colSpan int
리턴 void

SetViewport() 공개 메소드

public SetViewport ( int viewportX, int viewportY ) : void
viewportX int
viewportY int
리턴 void

SetVisualHeight() 공개 메소드

public SetVisualHeight ( float height ) : void
height float
리턴 void

SetVisualSize() 공개 메소드

set presentation (visual) size width,height
public SetVisualSize ( float width, float height ) : void
width float
height float
리턴 void

SetVisualWidth() 공개 메소드

public SetVisualWidth ( float width ) : void
width float
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

UnsafeGetBoxSpec() 공개 정적인 메소드

public static UnsafeGetBoxSpec ( CssBox box ) : BoxSpec
box CssBox
리턴 LayoutFarm.Css.BoxSpec

UnsafeGetController() 공개 정적인 메소드

public static UnsafeGetController ( CssBox box ) : object
box CssBox
리턴 object

UnsafeSetContentRuns() 공개 정적인 메소드

public static UnsafeSetContentRuns ( CssBox box, List runs, bool isAllWhitespace ) : void
box CssBox
runs List
isAllWhitespace bool
리턴 void

UnsafeSetParent() 공개 정적인 메소드

public static UnsafeSetParent ( CssBox box, CssBox parent ) : void
box CssBox
parent CssBox
리턴 void

UnsafeSetTextBuffer() 공개 정적인 메소드

public static UnsafeSetTextBuffer ( CssBox box, char textBuffer ) : void
box CssBox
textBuffer char
리턴 void

UpdateMarginTopCollapse() 공개 메소드

Gets the result of collapsing the vertical margins of the two boxes
public UpdateMarginTopCollapse ( CssBox upperSibling ) : float
upperSibling CssBox the previous box under the same parent
리턴 float

dbugPaint() 공개 메소드

public dbugPaint ( PaintVisitor p, RectangleF r ) : void
p PaintVisitor
r PixelFarm.Drawing.RectangleF
리턴 void

프로퍼티 상세

__aa_dbugId 공개적으로 프로퍼티

public int __aa_dbugId
리턴 int

dbugMark1 공개적으로 프로퍼티

public int dbugMark1
리턴 int

dbugMark2 공개적으로 프로퍼티

public int dbugMark2
리턴 int