XUISourceListRenderer
Description
Source lists often look different on different platforms. Largely this is because there is
no standard source list control. To cope with this, XUISourceList
outsources its
appearance to a Renderer. A renderer is a class that implements this interface.
It exposes methods that are called by XUISourceList
to alter its appearance.
Several example renderers are included with XUI.
Methods
Name | Parameters | Returns |
---|---|---|
Constructor | owner As XUISourceList |
|
Owner | XUISourceList |
|
RenderBackground | g As Graphics , row As Integer |
|
RenderItem | item As XUISourceListItem , g As Graphics , hoveringOverRow As Boolean , isSelected As Boolean , draggingOverRow As Boolean |
|
RowHeight | Integer |
Method Descriptions
Constructor(owner As XUISourceList)
owner
is the XUISourceList
that owns this renderer.
Owner() As XUISourceList The source list this renderer operates on.
RenderBackground(g As Graphics, row As Integer) Draw the background for the specified row. The row may be empty.
RenderItem(item As XUISourceListItem, g As Graphics, hoveringOverRow As Boolean, isSelected As Boolean, draggingOverRow As Boolean)
Renders item
to the passed graphics context. The context is the entire row the item occupies.
RowHeight() As Integer The height of a row in the source list.