Table of Contents

Method GetSpacerRectangles

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetSpacerRectangles(out RectD, out RectD)

Calculates and retrieves the bounding rectangles for the left-top and right-bottom spacer elements based on the current thumb bounds and orientation.

public virtual void GetSpacerRectangles(out RectD leftTop, out RectD rightBottom)

Parameters

leftTop RectD

When this method returns, contains the bounding rectangle for the left-top spacer element. The dimensions and position are calculated based on the thumb's bounds and the current orientation.

rightBottom RectD

When this method returns, contains the bounding rectangle for the right-bottom spacer element. The dimensions and position are calculated based on the thumb's bounds and the current orientation.

Remarks

The method adjusts the spacer rectangles' dimensions and positions depending on whether the layout is horizontal or vertical. The spacers' sizes are determined as a percentage of the thumb's dimensions, and their positions are aligned relative to the thumb's center.