Class CompositionInterop
Namespace: VelloSharp.Composition
Assembly: VelloSharp.Composition.dll
public static class CompositionInterop
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
ComputePlotArea(double, double)
public static PlotArea ComputePlotArea(double width, double height)
Parameters
width double
height double
Returns
MeasureLabel(string, float)
public static LabelMetrics MeasureLabel(string text, float fontSize = 14)
Parameters
text string
fontSize float
Returns
MeasureLabel(ReadOnlySpan<char>, float)
public static LabelMetrics MeasureLabel(ReadOnlySpan<char> text, float fontSize = 14)
Parameters
text ReadOnlySpan<char>
fontSize float
Returns
SolveDockLayout(ReadOnlySpan<DockLayoutChild>, in DockLayoutOptions, in LayoutSize, Span<LayoutRect>)
public static int SolveDockLayout(ReadOnlySpan<DockLayoutChild> children, in DockLayoutOptions options, in LayoutSize available, Span<LayoutRect> results)
Parameters
children ReadOnlySpan<DockLayoutChild>
options DockLayoutOptions
available LayoutSize
results Span<LayoutRect>
Returns
SolveGridLayout(ReadOnlySpan<GridTrack>, ReadOnlySpan<GridTrack>, ReadOnlySpan<GridLayoutChild>, in GridLayoutOptions, in LayoutSize, Span<LayoutRect>)
public static int SolveGridLayout(ReadOnlySpan<GridTrack> columns, ReadOnlySpan<GridTrack> rows, ReadOnlySpan<GridLayoutChild> children, in GridLayoutOptions options, in LayoutSize available, Span<LayoutRect> results)
Parameters
columns ReadOnlySpan<GridTrack>
rows ReadOnlySpan<GridTrack>
children ReadOnlySpan<GridLayoutChild>
options GridLayoutOptions
available LayoutSize
results Span<LayoutRect>
Returns
SolveLinearLayout(ReadOnlySpan<LinearLayoutChild>, double, double, Span<LinearLayoutResult>)
public static int SolveLinearLayout(ReadOnlySpan<CompositionInterop.LinearLayoutChild> children, double available, double spacing, Span<CompositionInterop.LinearLayoutResult> results)
Parameters
children ReadOnlySpan<CompositionInterop.LinearLayoutChild>
available double
spacing double
results Span<CompositionInterop.LinearLayoutResult>
Returns
SolveStackLayout(ReadOnlySpan<StackLayoutChild>, in StackLayoutOptions, in LayoutSize, Span<LayoutRect>)
public static int SolveStackLayout(ReadOnlySpan<StackLayoutChild> children, in StackLayoutOptions options, in LayoutSize available, Span<LayoutRect> results)
Parameters
children ReadOnlySpan<StackLayoutChild>
options StackLayoutOptions
available LayoutSize
results Span<LayoutRect>
Returns
SolveWrapLayout(ReadOnlySpan<WrapLayoutChild>, in WrapLayoutOptions, in LayoutSize, Span<LayoutRect>, Span<WrapLayoutLine>)
public static WrapLayoutSolveResult SolveWrapLayout(ReadOnlySpan<WrapLayoutChild> children, in WrapLayoutOptions options, in LayoutSize available, Span<LayoutRect> layoutBuffer, Span<WrapLayoutLine> lineBuffer)
Parameters
children ReadOnlySpan<WrapLayoutChild>
options WrapLayoutOptions
available LayoutSize
layoutBuffer Span<LayoutRect>
lineBuffer Span<WrapLayoutLine>