An application hooks the displayCallback to draw the items in the list. If the items in the list have different sizes, an application should hook the
measureCallback to specify the height of each individual item in the list. If all items have the same height, the
itemHeight resource can be used to specify the height in pixels.
The applicationDrawnStates resource allows for the specification of visuals for any of the emphasis states in the list, such as selection emphasis or cursored emphasis. Applications can choose to allow the drawn list to provide these emphasis visuals. In the following code, a list of
CgFontStructs is added to a drawn list, and each font name in the list is drawn with the font that it describes.