Class ScrollBarDrawable
Implements scrollbar drawing.
public class ScrollBarDrawable : BaseDrawable, IBaseObject, IBaseDrawable
- Inheritance
-
ScrollBarDrawable
- Implements
Fields
- ArrowMargin
Gets or sets distance (in dips) between arrow button and arrow.
- Background
Gets or sets background element.
- DefaultArrowsVisible
Indicates whether arrows are visible by default in the scroll bar.
- DefaultInvisibleArrowMargin
Represents the default margin for an invisible arrow in coordinate units.
- DefaultThumbCornerRadius
Gets or sets the default corner radius for a scroll bar thumb. This value is used when DefaultUseThumbRoundCorners is set to true.
- DefaultUseThumbRoundCorners
Gets or sets a value indicating whether scroll bar thumb should use rounded corners by default.
- DownArrow
Gets or sets down arrow element.
- DownButton
Gets or sets down button element.
- LeftArrow
Gets or sets primitive painter for the left arrow.
- LeftButton
Gets or sets left button element.
- MinArrowSize
Represents the minimum size, in dips, for an arrow.
- MinThumbSize
Gets or sets minimal scrollbar thumb size in dips.
- RightArrow
Gets or sets primitive painter for the right arrow.
- RightButton
Gets or sets right button element.
- Thumb
Gets or sets scroll thumb element.
- ThumbMargin
Gets or sets distance (in dips) between thumb and scrollbar bounds.
- UpArrow
Gets or sets up arrow element.
- UpButton
Gets or sets up button element.
- UseArrowSizeForThumb
Gets or sets whether to use arrow width as the thumb width for the vertical scrollbar and arrow height as the thumb height for the horizontal scrollbar.
Properties
- ArrowsVisible
Gets or sets a value indicating whether arrows are visible in the scroll bar. If this property is not set, DefaultArrowsVisible is used in order to determine whether arrows are visible.
- Bounds
Gets or sets destination rectangle where to draw the object.
- EndArrowState
Gets or sets the visual state of the end arrow in a control. This property doesn't invalidate the control.
- EndButtonState
Gets or sets the visual state of the end button. This property doesn't invalidate the control.
- IsVertical
Gets of sets whether scrollbar is vertical.
- Metrics
Gets or sets scrollbar metrics.
- Position
Gets or sets scrollbar information.
- StartArrowState
Gets or sets the visual state of the start arrow in a control. This property doesn't invalidate the control.
- StartButtonState
Gets or sets the visual state of the start button. This property doesn't invalidate the control.
- ThumbCornerRadius
Gets or sets the corner radius for a scroll bar thumb. If this property is not set, DefaultThumbCornerRadius is used. This value is used when UseThumbRoundCorners is set to true.
- ThumbState
Gets or sets the visual state of the thumb. This property doesn't invalidate the control.
- UseThumbRoundCorners
Gets or sets a value indicating whether scroll bar thumb should use rounded corners. If this property is not set, DefaultUseThumbRoundCorners is used.
Methods
- GetLayoutRectangles(float)
Performs layout of the drawable children and returns calculated bound of the different parts of the drawable.
- GetRealArrowSize(float, MetricsInfo)
Calculates the actual size of the arrow button for the scrollbar, considering the control's scale factor, margins, and bounds.
- GetRealMetrics(AbstractControl)
Gets real scrollbar metrics. If Metrics is not specified, returns DefaultMetrics(AbstractControl).
- GetTrackRect(ref EnumArray<HitTestResult, RectD>)
Calculates the rectangle representing the scroll bar track, based on the specified scale factor.
- GetVisibleEndArrow(VisualControlState)
Gets end arrow with the specified visual state.
- GetVisibleEndButton(VisualControlState)
Gets end button with the specified visual state.
- GetVisibleStartArrow(VisualControlState)
Gets start arrow with the specified visual state.
- GetVisibleStartButton(VisualControlState)
Gets start button with the specified visual state.
- HitTest(EnumArray<HitTestResult, RectD>, PointD)
Returns one of ScrollBarDrawable.HitTestResult constants.
- OnDraw(AbstractControl, Graphics)
Performs custom drawing operations for the specified control.
- SetPosition(ScrollBarInfo)
Sets value of the Position. Implemented for the convenience.